[ 
https://issues.apache.org/jira/browse/SOLR-1339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739681#action_12739681
 ] 

Yonik Seeley commented on SOLR-1339:
------------------------------------

I replaced many of the numeric fields in the test schema.xml with the trie 
variants to ferret out other possible bugs.

http://localhost:8983/solr/select?defType=dismax&q=foo&qf=popularity%20text

java.lang.NumberFormatException: For input string: "foo"
        at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:447)
        at java.lang.Integer.parseInt(Integer.java:497)
        at 
org.apache.solr.analysis.TrieTokenizerFactory.create(TrieTokenizerFactory.java:59)
        at 
org.apache.solr.analysis.TokenizerChain.tokenStream(TokenizerChain.java:65)
        at 
org.apache.solr.schema.IndexSchema$SolrIndexAnalyzer.tokenStream(IndexSchema.java:360)
        at 
org.apache.lucene.queryParser.QueryParser.getFieldQuery(QueryParser.java:528)
        at 
org.apache.solr.search.SolrQueryParser.getFieldQuery(SolrQueryParser.java:117)
        at 
org.apache.solr.util.SolrPluginUtils$DisjunctionMaxQueryParser.getFieldQuery(SolrPluginUtils.java:798)

Perhaps DisMax should catch parse exceptions and replace with a non-matching 
query?

> DisMax parser exception with Trie* fields
> -----------------------------------------
>
>                 Key: SOLR-1339
>                 URL: https://issues.apache.org/jira/browse/SOLR-1339
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>             Fix For: 1.4
>
>
> Trie* fields throw exceptions on invalid input - causes DisMax parser to fail.

-- 
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