You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2013/04/03 11:19:15 UTC

[jira] [Updated] (LUCENE-4899) FastVectorHighlihgter fails with SIOOB if single phrase or term is > fragCharSize

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

Simon Willnauer updated LUCENE-4899:
------------------------------------

    Attachment: LUCENE-4899.patch

here is a patch but somebody with more FVH skills should look at this. At least there is a test that fails :)
                
> FastVectorHighlihgter fails with SIOOB if single phrase or term is > fragCharSize
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4899
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4899
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/highlighter
>    Affects Versions: 4.0, 4.1, 4.2, 3.6.2, 4.2.1
>            Reporter: Simon Willnauer
>             Fix For: 5.0, 4.3
>
>         Attachments: LUCENE-4899.patch
>
>
> This has been reported on several occasions like SOLR-4660 /  SOLR-4137 or on the ES mailing list https://groups.google.com/d/msg/elasticsearch/IdyMSPK5gao/nKZq8_NYWmgJ
> The reason is that the current code expects the fragCharSize > matchLength which is not necessarily true if you use phrases or if you have very long terms like URLs or so. I have a test that reproduces the issue and a fix as far as I can tell (me doesn't have much experience with the highlighter.

--
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

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