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

Koji Sekiguchi updated SOLR-1268:
---------------------------------

    Attachment: SOLR-1268-0_fragsize.patch

{quote}
I have noticed an exception is thrown when using fragSize = 0 (wich should 
return the whole field highlighted):
"fragCharSize(0) is too small. It must be 18 or higher. 
java.lang.IllegalArgumentException: fragCharSize(0) is too small. It must be 18 
or higher"
{quote}

Thanks, Marc.
Solr 1.4 uses NullFragmenter that highlights whole content when you set 
fragsize to 0. But FVH doesn't have such feature because of using different 
algorithm.
In the attached patch, Solr sets fragsize to Integer.MAX_VALUE if user trys to 
set 0 when FVH is used. This prevents runtime error.
I think it is necessary in Solr level because Solr automatically switch to use 
FVH when the highlighting field is termVectors/termPositions/termOffsets are 
all true unless hl.useHighlighter set to true.

> Incorporate Lucene's FastVectorHighlighter
> ------------------------------------------
>
>                 Key: SOLR-1268
>                 URL: https://issues.apache.org/jira/browse/SOLR-1268
>             Project: Solr
>          Issue Type: New Feature
>          Components: highlighter
>            Reporter: Koji Sekiguchi
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: SOLR-1268-0_fragsize.patch, SOLR-1268.patch, 
> SOLR-1268.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to