You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nik Everett (JIRA)" <ji...@apache.org> on 2014/02/05 19:08:09 UTC

[jira] [Created] (LUCENE-5435) CommonTermsQuery should be able to query fields other than the one used as a source of commonness

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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org