[ 
https://issues.apache.org/jira/browse/LUCENE-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Elschot updated LUCENE-1093:
---------------------------------

    Attachment: SpanFirst20071219.patch

This 20071219 patch adds a private flag and a constructor for this flag to 
SpanFirstQuery. The flag indicates whether the start of the resulting Spans 
should be zero or default to the start of the given spans.

ant -Dtestcase='Test*Span*' test-core
passes independent of whether or not this flag is set by default, so some more  
tests are needed.


> SpanFirstQuery modification to aid term boosting based on position.
> -------------------------------------------------------------------
>
>                 Key: LUCENE-1093
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1093
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Query/Scoring
>            Reporter: Peter Keegan
>         Attachments: SpanFirst20071219.patch
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to