Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5435

CommonTermsQuery should be able to query fields other than the one used as a source of commonness

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • New

    Description

      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.

      Attachments

        1. LUCENE-5435.patch
          11 kB
          Nik Everett

        Activity

          People

            Unassigned Unassigned
            nik9000@gmail.com Nik Everett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: