Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] Commented: (LUCENE-1093) SpanFirstQuery modification to aid term boosting based on position.

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Dec 18, 2007, 9:00 PM

Post #1 of 2 (327 views)
Permalink
[jira] Commented: (LUCENE-1093) SpanFirstQuery modification to aid term boosting based on position.

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

Hoss Man commented on LUCENE-1093:
----------------------------------

NOTE: this should be an option, not a change to the default behavior (right now a SpanFirstQuery always returns Spans the same size as it's subquery ... changing this could radically affect the scores users get from existing queries.

API that seems like it would make the most sense is a new boolean getter/setter that defaults to false ... no idea what agood descriptive name for it would be.


(I too thought we added this a long time ago, i remember asking about it when i was writing unit tests for SpanQuery.explain)

> 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
>
> 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: java-dev-unsubscribe [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene


jira at apache

Dec 19, 2007, 4:59 AM

Post #2 of 2 (300 views)
Permalink
[jira] Commented: (LUCENE-1093) SpanFirstQuery modification to aid term boosting based on position. [In reply to]

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

Grant Ingersoll commented on LUCENE-1093:
-----------------------------------------

Another option would be to introduce something like SpanFrontWeightedQuery or something like that and leave SFQ alone.

> 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
>
> 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: java-dev-unsubscribe [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.