Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5387

Multi-Term analyser not working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Description

      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 european@union.de,
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Claire Chan Claire Chan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: