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

Erick Erickson resolved SOLR-5387.
----------------------------------

    Resolution: Not A Problem

Please raise questions like this on the user's list before raising a JIRA to 
see if it's a real bug or just a misunderstanding on your part.

In this case, the code is functioning as expected. MultiTerm analysis chains 
may NOT break incoming tokens up into more than one token. In this case, 
anything with an @ symbol is broken up into more than one term due to the 
StandardTokenizer, which is an illegal condition for multiterm queries.

> Multi-Term analyser not working
> -------------------------------
>
>                 Key: SOLR-5387
>                 URL: https://issues.apache.org/jira/browse/SOLR-5387
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Claire Chan
>             Fix For: 4.5
>
>
> I tried the solr 4.5 example schema modifed by changing a field, say, 'manu' 
> to the following fieldType:
> <fieldType name="text_general_mt" class="solr.TextField" 
> positionIncrementGap="100">
> ...
>       <analyzer type="query">
>         <tokenizer class="solr.StandardTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>       </analyzer>
>       <analyzer type="multiterm">
>         <tokenizer class="solr.StandardTokenizerFactory"/>
>         <filter class="solr.LowerCaseFilterFactory"/>
>       </analyzer>
>     </fieldType>
> After indexing a document with manu value [email protected], 
> the following search throw an Exception:
> manu:(european@unio*)
> The exception:
> analyzer returned too many terms for multiTerm term: european@unio
> org.apache.solr.common.SolrException: analyzer returned too many terms for 
> multiTerm term: european@unio
>         at 
> org.apache.solr.schema.TextField.analyzeMultiTerm(TextField.java:157)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.analyzeIfMultitermTermText(SolrQueryParserBase.java:936)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.getPrefixQuery(SolrQueryParserBase.java:981)
>         at 
> org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:746)
>         at org.apache.solr.parser.QueryParser.Term(QueryParser.java:300)
>         at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:186)
>         at org.apache.solr.parser.QueryParser.Query(QueryParser.java:108)
> I thought I did exactly as instructed by various MultiTerm-blogs & 
> Wiki-Pages. So please take a look if this is a bug.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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

Reply via email to