Skip to content

Commit

Permalink
chore: limit the flags available for simple query
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Oct 14, 2024
1 parent 791a21a commit d9ad643
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export const generateESQuery = <TDoc extends DocumentType>(
simple_query_string: {
fields: [getFieldName(p)],
query: p.query,
flags: 'FUZZY|NEAR|PHRASE|WHITESPACE',
...(p.boost && { boost: p.boost }),
},
};
Expand Down

0 comments on commit d9ad643

Please sign in to comment.