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/09/27 23:04:16 UTC

[jira] Resolved: (SOLR-1468) Solrj bug when using facet.missing

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

Yonik Seeley resolved SOLR-1468.
--------------------------------

    Resolution: Fixed

I just committed a patch for this... thanks for the bug report!

> Solrj bug when using facet.missing
> ----------------------------------
>
>                 Key: SOLR-1468
>                 URL: https://issues.apache.org/jira/browse/SOLR-1468
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 1.3
>            Reporter: Tomasz Wrobel
>            Assignee: Yonik Seeley
>             Fix For: 1.4
>
>
> Setting queryParams.setMissing("true") or queryParams.set(FacetParams.FACET_MISSING, "true") in Solrj query parameters object results in an exception:
> ...
> Caused by: org.apache.solr.common.SolrException: parsing error
>     at org.apache.solr.client.solrj.impl.XMLResponseParser.processResponse(XMLResponseParser.java:139)
>     at org.apache.solr.client.solrj.impl.XMLResponseParser.processResponse(XMLResponseParser.java:100)
>     at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:385)
>     at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183)
>     at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90)
>     ... 37 more
> Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,788]
> Message: requires 'name' attribute: int
>     at org.apache.solr.client.solrj.impl.XMLResponseParser.readNamedList(XMLResponseParser.java:231)
>     at org.apache.solr.client.solrj.impl.XMLResponseParser.readNamedList(XMLResponseParser.java:236)
>     at org.apache.solr.client.solrj.impl.XMLResponseParser.readNamedList(XMLResponseParser.java:236)
>     at org.apache.solr.client.solrj.impl.XMLResponseParser.readNamedList(XMLResponseParser.java:236)
>     at org.apache.solr.client.solrj.impl.XMLResponseParser.processResponse(XMLResponseParser.java:124)
>     ... 41 more
> When "facet.missing" parameter is set to "true" Solr is returning response containing "int" element with no "name", which possibly causes the Solrj parsing problem. Sample server response may look like:
> <lst name="genre">
>     <int name="rock">5559</int>
>     <int name="soul">5547</int>
>     <int name="punk">5412</int>
>     <int>0</int>
> </lst>

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