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

Add Boosting Function Term Query and Some Payload Query refactorings

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9
    • Component/s: None
    • Labels:
      None

      Description

      Similar to the BoostingTermQuery, the BoostingFunctionTermQuery is a SpanTermQuery, but the difference is the payload score for a doc is not the average of all the payloads, but applies a function to them instead. BoostingTermQuery becomes a BoostingFunctionTermQuery with an AveragePayloadFunction applied to it.

      Also add marker interface to indicate PayloadQuery types. Refactor Similarity.scorePayload to also take in the doc id.

        Attachments

        1. LUCENE-1790.patch
          10 kB
          Mark Miller
        2. LUCENE-1790.patch
          42 kB
          Grant Ingersoll
        3. LUCENE-1790.patch
          37 kB
          Grant Ingersoll
        4. LUCENE-1790.patch
          17 kB
          Grant Ingersoll
        5. LUCENE-1790-position.patch
          12 kB
          Grant Ingersoll

          Issue Links

            Activity

              People

              • Assignee:
                gsingers Grant Ingersoll
                Reporter:
                gsingers Grant Ingersoll
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: