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

        Peter Keegan created issue -
        Paul Elschot made changes -
        Field Original Value New Value
        Attachment SpanFirst20071219.patch [ 12371963 ]
        Peter Keegan made changes -
        Attachment TestBasics20071227.patch [ 12372270 ]
        Paul Elschot made changes -
        Lucene Fields [New] [New, Patch Available]
        Priority Major [ 3 ] Minor [ 4 ]
        Mark Thomas made changes -
        Workflow jira [ 12419547 ] Default workflow, editable Closed status [ 12562669 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12562669 ] jira [ 12583606 ]
        Peter Keegan made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development