|
Hi all! We normally do this by combining a match query with another query for the color using a boolean query. This is fine, but if "some text" consists of only stop words, then we will get no results. For example, if someone searches for: So does anyone have any recommendations for making such a query without using a Lucene query string? Or is that the best way to do this? Thanks!
-- |
|
Hi John,
This problem comes up quite a lot but unfortunately there isn't many options at this moment about what you can do. MatchQuery (the Query produced by the 'match' query type) currently has hardcoded behaviour for what to do when analysis strips all the terms from the input. However I have opened https://github.com/elasticsearch/elasticsearch/issues/2429 to change this so you can provide a flag of what to do in this situation.
-- On Thursday, November 22, 2012 5:37:48 AM UTC+13, John Daniels wrote:
|
|
This post has NOT been accepted by the mailing list yet.
Hi
i have a question why ZeroTermsQuery is added only in MatchQuery why it is not added in QueryStringQuery or in MultiMatchQuery. i am using MultiMatchQuery and i have the same problem. i can change it to MatchQuery because i have to add multiparty fields .or is there a way how i can add multiparty fields with MatchQuery thanks |
| Powered by Nabble | Edit this page |
