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

Grant Ingersoll commented on SOLR-1309:
---------------------------------------

I added:
{quote}
<field name="namePhonetic" type="phonetic" indexed="true" stored="false"/>
{quote}
to the example, along with copyField.  I then re-indexed and then did:
{quote}
http://localhost:8983/solr/select/?q=namePhonetic:555&debugQuery=true
{quote}

But didn't get any exceptions, although the parsed query is indeed empty, so I 
think this is fixed in trunk.

> Exception thrown by debugging component after phonetic filter parses numeric 
> query, BUG?
> ----------------------------------------------------------------------------------------
>
>                 Key: SOLR-1309
>                 URL: https://issues.apache.org/jira/browse/SOLR-1309
>             Project: Solr
>          Issue Type: Bug
>          Components: Analysis
>    Affects Versions: 1.3
>         Environment: Redhat 5.3 Enterprise x64.   (latest)  running Ludid 
> Imagination 1.30 release 
>            Reporter: Robert Petersen
>            Priority: Minor
>             Fix For: 1.4
>
>
> It certainly looks like a bug - definitely in QueryParsing.toString() and 
> perhaps with the phonetic filter for producing a zero length term?  Please do 
> open a bug and target to v1.4
> -Yonik
> Here is my bug description:
> Exception thrown by debugging component when query hits phonetic filter 
> factory with a numeric term no matter what kind of phonetic filter is 
> selected.  I am reposting with this new subject line thinking this is a 
> potential issue which possibly needs addressing in future releases and should 
> be submitted as a BUG?    It must be getting an empty field object from the 
> phonetic filter factory for numeric terms or something similar.
> Jul 23, 2009 2:58:17 PM org.apache.solr.core.SolrCore execute
> INFO: [10017] webapp=/solr path=/select/ 
> params={debugQuery=true&rows=10&start=0&q=((((allDoublemetaphone:"2343")^0.5)))}
>  hits=6873 status=500 QTime=3 
> Jul 23, 2009 2:58:17 PM org.apache.solr.common.SolrException log
> SEVERE: java.lang.RuntimeException: java.lang.IllegalArgumentException: name 
> and value cannot both be empty
>       at org.apache.solr.search.QueryParsing.toString(QueryParsing.java:470)
>       at 
> org.apache.solr.util.SolrPluginUtils.doStandardDebug(SolrPluginUtils.java:399)
>       at 
> org.apache.solr.handler.component.DebugComponent.process(DebugComponent.java:54)
>       at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:177)
>       at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>       at org.apache.solr.core.SolrCore.execute(SolrCore.java:1205)
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:303)
>       at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>       at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>       at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>       at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.IllegalArgumentException: name and value cannot both be 
> empty
>       at org.apache.lucene.document.Field.<init>(Field.java:277)
>       at org.apache.lucene.document.Field.<init>(Field.java:251)
>       at 
> org.apache.solr.search.QueryParsing.writeFieldVal(QueryParsing.java:307)
>       at org.apache.solr.search.QueryParsing.toString(QueryParsing.java:320)
>       at org.apache.solr.search.QueryParsing.toString(QueryParsing.java:467)
>       ... 19 more

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