You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to do a CommonTermsQuery against multiple fields. One field would determine if the term is common and the others would be ORed together. Something like:
{"common": {"body": {"high_freq_operator": "and","fields": ["title","body"],"query": "nelly the elephant not as a cartoon",}}}
Add support for matching multiple fields to the common term query. Like this:
{ "common": {
"body": {
"high_freq_operator": "and",
"fields": ["title", "body"],
"query": "nelly the elephant not as a cartoon",
}
} }
The extra fields come from the "fields" array and the name of the object
containing the query denotes the field from which the common-ness is
derived.
WIP needs:
1. A review on the funky syntax for adding the fields. Feals bolted on
because it is.
2. Gotta get the multi match query to use it.
3. Docs. Including a working rest example.
4. More tests!?
Closeselastic#5024
I'd like to be able to do a CommonTermsQuery against multiple fields. One field would determine if the term is common and the others would be ORed together. Something like:
would become something like:
This bug has a Lucene twin: https://issues.apache.org/jira/browse/LUCENE-5435
The text was updated successfully, but these errors were encountered: