You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2009/08/06 03:51:14 UTC

[jira] Created: (SOLR-1341) Trie* fields don't work in Analysis.jsp

Trie* fields don't work in Analysis.jsp
---------------------------------------

                 Key: SOLR-1341
                 URL: https://issues.apache.org/jira/browse/SOLR-1341
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Yonik Seeley
             Fix For: 1.4


trie fields don't seem to work in the admin analysis page

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1341) Trie* fields don't work in Analysis.jsp

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739868#action_12739868 ] 

Yonik Seeley commented on SOLR-1341:
------------------------------------

Not sure what's causing the empty string yet...

Caused by: java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:468)
	at java.lang.Integer.parseInt(Integer.java:497)
	at org.apache.solr.analysis.TrieTokenizerFactory.create(TrieTokenizerFactory.java:59)
	at org.apache.jsp.admin.analysis_jsp.doAnalyzer(org.apache.jsp.admin.analysis_jsp:67)
	at org.apache.jsp.admin.analysis_jsp._jspService(org.apache.jsp.admin.analysis_jsp:684)


> Trie* fields don't work in Analysis.jsp
> ---------------------------------------
>
>                 Key: SOLR-1341
>                 URL: https://issues.apache.org/jira/browse/SOLR-1341
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>             Fix For: 1.4
>
>
> trie fields don't seem to work in the admin analysis page

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-1341) Trie* fields don't work in Analysis.jsp

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley resolved SOLR-1341.
--------------------------------

    Resolution: Fixed

Found it and committed - there was a bug in analysis.jsp that created the tokenstream again:

{code}
Index: src/webapp/web/admin/analysis.jsp
===================================================================
--- src/webapp/web/admin/analysis.jsp   (revision 801477)
+++ src/webapp/web/admin/analysis.jsp   (working copy)
@@ -199,7 +199,6 @@
        reader.reset();
        TokenStream tstream = tfac.create(reader);
        List<Token> tokens = getTokens(tstream);
-       tstream = tfac.create(reader);
        if (verbose) {
          writeHeader(out, tfac.getClass(), tfac.getArgs());
        }
{code}

> Trie* fields don't work in Analysis.jsp
> ---------------------------------------
>
>                 Key: SOLR-1341
>                 URL: https://issues.apache.org/jira/browse/SOLR-1341
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Yonik Seeley
>             Fix For: 1.4
>
>
> trie fields don't seem to work in the admin analysis page

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.