Artem Lukanin created LUCENE-5051:
-------------------------------------

             Summary: Incorrect abbreviation synonyms treating in 
WordDelimiterFilter
                 Key: LUCENE-5051
                 URL: https://issues.apache.org/jira/browse/LUCENE-5051
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: 4.3, 4.3.1
            Reporter: Artem Lukanin


If there are 2 abbreviation synonyms in the stream, they are not treated as 
synonyms after splitting by dots in WordDelimiterFilter.

Correct treatment:
before and after WordDelimiterFilter:
<code><pre>
   tokens: wi fi wireles network
positions:  1  2    1       2
</pre></code>

Incorrect treatment:
before WordDelimiterFilter:
<code><pre>
   tokens: wi.fi. wireles.network.
positions:   1           1
</pre></code>
after WordDelimiterFilter:
<code><pre>
   tokens: wi fi wireles network
positions:  1  2    3       4
</pre></code>

but should be:
<code><pre>
   tokens: wi fi wireles network
positions:  1  2    1       2
</pre></code>

See a patch for Solr 4.3.1 configs, which demonstrates the bug if "wi.fi. 
router" is analyzed in name_syn field.

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to