You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2012/09/18 10:45:08 UTC

[jira] [Reopened] (JCR-3428) Partial search terms are no longer highlighted in the excerpts

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

Alex Parvulescu reopened JCR-3428:
----------------------------------


The fix can't be backported to the 2.4 branch - the tests don't pass.
Most likely this is a change in the lucene apis.

There are 2 options now:

 #1: the trunk keeps the rewrite behavior to CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE and the 2.4 branch switches to SCORING_BOOLEAN_QUERY_REWRITE so the excerpt tests pass

OR

 #2: both use the SCORING_BOOLEAN_QUERY_REWRITE even thought it is not considered the best option in all the cases:
{{Note that typically such scores are meaningless to the user, and require non-trivial CPU to compute, so it's almost always better to use CONSTANT_SCORE_AUTO_REWRITE_DEFAULT instead.}} [0]

My vote is with keeping things consistent: #2


[0] http://svn.apache.org/viewvc/lucene/java/tags/lucene_3_0_3/src/java/org/apache/lucene/search/MultiTermQuery.java?revision=1040994&view=markup#l127

                
> Partial search terms are no longer highlighted in the excerpts 
> ---------------------------------------------------------------
>
>                 Key: JCR-3428
>                 URL: https://issues.apache.org/jira/browse/JCR-3428
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.4.3, 2.5.1
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>             Fix For: 2.6
>
>
> It seems that the highlighting behavior has changed after the lucene 3.0.3 upgrade.
> This slipped unnoticed until now, and it affects the current code (using lucene 3.6) as well.
> Before for partial search terms the highlighter would highlight the entire matching term, now it fails to do so.
> Example, for the content: {{lorem ipsum dolor sit amet}} searching for {{ipsu*}} would have to highlight the entire matching term {{ipsum}}, and currently it does not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira