lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2003) Highlighter has problems when you use StandardAnalyzer with LUCENE_29 or simplier StopFilter with stopWordsPosIncr mode switched on
Date Thu, 22 Oct 2009 20:10:59 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768853#action_12768853
] 

Mark Miller commented on LUCENE-2003:
-------------------------------------

Hmm - well now you have me worried - never seen you be wrong.

I just tried a test like that and it appeared to work though.

Ah - I should have looked closer at the MultiPhraseQuery code - it is wrong - just happens
to work.

You only need to add to the slop the largest inc, because the SpanQuery slop is the dist allowed
between *each* span.

So thats why it works - it finds 3 the first time, doesn't add any more for the rest, but
3 is enough. I'll fix.

> Highlighter has problems when you use StandardAnalyzer with LUCENE_29 or simplier StopFilter
with stopWordsPosIncr mode switched on
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2003
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2003
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.9, 3.0
>            Reporter: Uwe Schindler
>            Assignee: Michael McCandless
>             Fix For: 2.9.1, 3.0
>
>         Attachments: LUCENE-2003.patch
>
>
> This is a followup on LUCENE-1987:
> If you set in HighligterTest the constant static final Version TEST_VERSION = Version.LUCENE_24
to LUCENE_29 or LUCENE_CURRENT, the test testSimpleQueryScorerPhraseHighlighting fails. Please
note, that currently (before LUCENE-2002 is fixed), you must also set the QueryParser to respect
posIncr.

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


Mime
View raw message