4

When performing a query on multiple fields which have different analyzers (stem, ngram, etc..), does elasticsearch perform specific analyzing on the query string for each field?

1 Answer 1

6

Yes it does, unless you specify an analyzer within your query. The query_string query gets translated to a bool or a dismax query depending on the use_dis_max parameter within your query. A different query will be generated for each field, and the search_analyzer related to each specific field will be used to analyze the query.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.