Nik Everett created LUCENE-5435:
-----------------------------------
Summary: CommonTermsQuery should be able to query fields other
than the one used as a source of commonness
Key: LUCENE-5435
URL: https://issues.apache.org/jira/browse/LUCENE-5435
Project: Lucene - Core
Issue Type: Improvement
Reporter: Nik Everett
Attachments: LUCENE-5435.patch
It'd be wonderful if I could use the "commonness" of one term, say the contents
of a document, to power a search across both the document and its title.
Continuing the metaphor, I'd like be able to build a query like this:
"the first"
that is rewritten into:
(title:the OR body:the) +(title:first OR body:first)
with the help of the CommonTermsQuery logic. Essentially, I'd like
CommonTermsQuery to soften the implicit AND for "the" into and OR because it is
common.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]