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

SpanFirstQuery modification to aid term boosting based on position.

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • core/query/scoring
    • None
    • New, Patch Available

    Description

      This is a request for a modification to SpanFirstQuery that would allow term boosting based on a term's distance from the beginning of the document.

      This modification to SpanFirstQuery would be that the Spans returned by SpanFirstQuery.getSpans() must always return 0 from its start() method. Then the slop passed to sloppyFreq(slop) would be the distance from the beginning of the indexed field to the end of the Spans of the SpanQuery passed to SpanFirstQuery.

      Here is the discussion behind this issue:
      http://www.nabble.com/Can-I-do-boosting-based-on-term-postions--to11939423.html#a11939423

      Attachments

        1. SpanFirst20071219.patch
          4 kB
          Paul Elschot
        2. TestBasics20071227.patch
          3 kB
          Peter Keegan

        Activity

          People

            Unassigned Unassigned
            pkeegan Peter Keegan
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: