Lucene - Core
  1. Lucene - Core
  2. LUCENE-1093

SpanFirstQuery modification to aid term boosting based on position.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core/query/scoring
    • Labels:
      None
    • Lucene Fields:
      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

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Keegan
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development