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-2874) Highlighting overlapping tokens outputs doubled words
Date Wed, 19 Jan 2011 11:40:44 GMT

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

Robert Muir updated LUCENE-2874:
--------------------------------

    Lucene Fields: [New, Patch Available]  (was: [New])
    Fix Version/s: 4.0
                   3.1
                   3.0.4
                   2.9.5
         Assignee: Robert Muir

> Highlighting overlapping tokens outputs doubled words
> -----------------------------------------------------
>
>                 Key: LUCENE-2874
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2874
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/highlighter
>    Affects Versions: 2.9.4
>            Reporter: Pierre Gossé
>            Assignee: Robert Muir
>             Fix For: 2.9.5, 3.0.4, 3.1, 4.0
>
>         Attachments: LUCENE-2874.patch
>
>
> If for the text "the fox did not jump" we generate following tokens :
> (the, 0, 0-3),({fox},0,0-7),(fox,1,4-7),(did,2,8-11),(not,3,12,15),(jump,4,16,18)
> If TermVector for field is stored WITH_OFFSETS and not WITH_POSITIONS_OFFSETS, highlighing
would output
> "the<em>the fox</em> did not jump"
> I join a patch with 2 additive JUnit tests and a fix of TokenSources class where token
ordering by offset did'nt manage well overlapping tokens.

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


Mime
View raw message