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

Ahmet Arslan updated SOLR-3193:
-------------------------------

    Attachment: SOLR-3193.patch

Changing the field to multivalued causes exception again. Simplified patch 
demonstrates problem.  

{noformat}
Caused by: org.apache.lucene.search.highlight.InvalidTokenOffsetsException: 
Token ® exceeds length of provided text sized 1 offsetAtt.startOffset() = 31558 
offsetAtt.endOffset() = 31559
{noformat}

Here is the type 
{code:xml}
<fieldType name="dcx_text" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
        <!-- Enable leading wildcard queries: maxPosAsterisk="1" 
maxPosQuestion="0": Enable and optimize queries with a single leading 
asterisk-->
        <filter class="solr.ReversedWildcardFilterFactory" withOriginal="true" 
maxPosAsterisk="1" maxPosQuestion="0"
                minTrailing="2" maxFractionAsterisk="0"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>
{code}

There must be something multiValued field position increment gap and offset 
attribute in ReversedWildcardFilterFactory.

> highligting on an unindexed field throws InvalidTokenOffsetsException
> ---------------------------------------------------------------------
>
>                 Key: SOLR-3193
>                 URL: https://issues.apache.org/jira/browse/SOLR-3193
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter
>    Affects Versions: 3.6
>            Reporter: Ahmet Arslan
>            Priority: Minor
>         Attachments: SOLR-3193.patch, SOLR-3193.patch, SOLR-3193.patch
>
>
> When highlighting is requested on an un-indexed field (for the second time), 
> InvalidTokenOffsetsException is thrown.
> http://lucene.472066.n3.nabble.com/search-highlight-InvalidTokenOffsetsException-in-Solr-3-5-td3560997.html#a3793593



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to