lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-5538) FastVectorHighlighter fails with booleans of phrases
Date Wed, 19 Mar 2014 01:39:45 GMT

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

Robert Muir updated LUCENE-5538:
--------------------------------

    Attachment: LUCENE-5538.patch

Here's a patch I'm testing (all tests seem to pass, but I will see if i can add some better
ones).

FieldTermStack is ordered by position, but the current code doesn't really handle position
increments of 0 (synonyms). In this case when we reach a dead-end (nextMap == null), we keep
looking as long as the incoming position is the same until we find a match.

> FastVectorHighlighter fails with booleans of phrases
> ----------------------------------------------------
>
>                 Key: LUCENE-5538
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5538
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/highlighter
>            Reporter: Robert Muir
>         Attachments: LUCENE-5538.patch, LUCENE-5538_test.patch
>
>
> in some situations a query of (P1 OR PQ) returns no results, even though individually,
both P1 or P2 by themselves will highlight correctly..



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message