[jira] Commented: (LUCENE-1731) Allow ConstantScoreQuery to use custom rewrite method if using for highlighting

2009-07-10 Thread Ashley Sole (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12729557#action_12729557
 ] 

Ashley Sole commented on LUCENE-1731:
-

Hi Mark,

Yeah i was aware the of the addition made but am i correct in saying this is 
only supported by the Solr highlighter (i.e. the usePhraseHighlighting 
params, etc)? ... Maybe i'm missing the point but i couldn't get any queries 
based on a TermsFilter to work with the lucene highlighter



 Allow ConstantScoreQuery to use custom rewrite method if using for 
 highlighting
 ---

 Key: LUCENE-1731
 URL: https://issues.apache.org/jira/browse/LUCENE-1731
 Project: Lucene - Java
  Issue Type: Improvement
  Components: contrib/highlighter
Affects Versions: 2.4, 2.4.1
Reporter: Ashley Sole
Priority: Minor

 I'd like to submit a patch for ConstantScoreQuery which simply contains a 
 setter method to state whether it is being used for highlighting or not. 
 If it is being used for highlighting, then the rewrite method can take each 
 of the terms in the filter and create a BooleanQuery to return (if the number 
 of terms in the filter are less than 1024), otherwise it simply uses the old 
 rewrite method.
 This allows you to highlight upto 1024 terms when using a ConstantScoreQuery, 
 which since it is a filter, will currently not be highlighted.
 The idea for this came from Mark Millers article Bringing the Highlighter 
 back to Wildcard Queries in Solr 1.4, I would just like to make it available 
 in core lucene

-- 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org



[jira] Commented: (LUCENE-1731) Allow ConstantScoreQuery to use custom rewrite method if using for highlighting

2009-07-08 Thread Mark Miller (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12729034#action_12729034
 ] 

Mark Miller commented on LUCENE-1731:
-

Hey Ashley,

This was added to the SpanScorer Scorer for the Highlighter a while back as 
part of resolving that Solr issue. Hopefully I will have to time to make it the 
default by 2.9's release, but its there as an option now if you use the 
SpanScorer.

The issue was:   LUCENE-1425 - Add ConstantScore highlighting support 
to SpanScorer

 Allow ConstantScoreQuery to use custom rewrite method if using for 
 highlighting
 ---

 Key: LUCENE-1731
 URL: https://issues.apache.org/jira/browse/LUCENE-1731
 Project: Lucene - Java
  Issue Type: Improvement
  Components: contrib/highlighter
Affects Versions: 2.4, 2.4.1
Reporter: Ashley Sole
Priority: Minor

 I'd like to submit a patch for ConstantScoreQuery which simply contains a 
 setter method to state whether it is being used for highlighting or not. 
 If it is being used for highlighting, then the rewrite method can take each 
 of the terms in the filter and create a BooleanQuery to return (if the number 
 of terms in the filter are less than 1024), otherwise it simply uses the old 
 rewrite method.
 This allows you to highlight upto 1024 terms when using a ConstantScoreQuery, 
 which since it is a filter, will currently not be highlighted.
 The idea for this came from Mark Millers article Bringing the Highlighter 
 back to Wildcard Queries in Solr 1.4, I would just like to make it available 
 in core lucene

-- 
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org