jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Parvulescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3428) Partial search terms are no longer highlighted in the excerpts
Date Tue, 18 Sep 2012 09:19:08 GMT

    [ https://issues.apache.org/jira/browse/JCR-3428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457709#comment-13457709
] 

Alex Parvulescu commented on JCR-3428:
--------------------------------------

right, that makes sense.
So I'll backport with a different rewrite to 2.4.

As far as I see the different behavior comes from the different ConstantScoreQuery#extractTerms
implentation in lucene 3.0.3 vs 3.6/trunk:
In 3.0.3 it does nothing [0] and in 3.6/trunk it delegates to the wrapped query [1]


[0]
http://svn.apache.org/viewvc/lucene/java/tags/lucene_3_0_3/src/java/org/apache/lucene/search/ConstantScoreQuery.java?revision=1040994&view=markup#l47
[1]
http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/search/ConstantScoreQuery.java?revision=1386763&view=markup#l83
                
> 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

Mime
View raw message