-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultiMatch with empty string on function score #477
Comments
The default for conditionless queries is to fallback to an empty query (effectivily a match_all) The master has a construct that allows you to control what to fallback to: qq.Conditionless(c=>c
.Query(cq=>cq.MultiMatch(mm => mm.OnFields(f=>f.Country, f=>f.FloatValue).Query("")))
.Fallback(fq=>fq.MatchAll())
) |
An empty query object give me QueryParsingException (query malformed) on ES (still on ES 0.90.8). Thanks! |
Closed too quickly perhaps Here's a ponder: If the query inside functionscore is conditionless should the functionscore itself become conditionless or do a match_all? Im inclined to say the first because thats how all the other conditionless queries bubble up. Love your thoughts on this @andreabalducci PS: I see you use If you want to return a subset of your document while still mapping the result into .Source(s=>s.Include(p=>p.Content)) |
I'm switching from my function score fork, the old behaviour was For a LOB make sense, if you are Google Search maybe not.. I think is a business driven choice. |
Thanks for the |
I'm upgrading from my old fork to the master and I've found that the MultiMatch with empty query produces
instead of
Is that right and we have to check the query string to change our QueryDescriptor or the multimatch should fallback on match_all ?
The text was updated successfully, but these errors were encountered: