lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Sokolov <soko...@ifactory.com>
Subject Re: different results depending on result format
Date Thu, 21 Oct 2010 21:25:22 GMT
quick follow-up: I also notice that the query from solrj gets version=1, 
whereas the admin webapp puts version=2.2 on the query string, although 
this param doesn't seem to change the xml results at all.  Does this 
indicate an older version of solrj perhaps?

-Mike

On 10/21/2010 04:47 PM, Mike Sokolov wrote:
> I'm experiencing something really weird: I get different results 
> depending on whether I specify wt=javabin, and retrieve using SolrJ, 
> or wt=xml.  I spent quite a while staring at query params to make sure 
> everything else is the same, and they do seem to be.  At first I 
> thought the problem related to the javabin format change that has been 
> talked about recently, but I am using solr 1.4.0 and solrj 1.4.0.
>
> Notice in the two entries that the wt param is different and the hits 
> result count is different.
>
> Oct 21, 2010 4:22:19 PM org.apache.solr.core.SolrCore execute
> INFO: [bopp.ba] webapp=/solr path=/select/ 
> params={wt=xml&rows=20&start=0&facet=true&facet.field=ref_taxid_ms&q=*:*&fl=uri,meta_ss&version=1}

> hits=261 status=0 QTime=1
> Oct 21, 2010 4:22:28 PM org.apache.solr.core.SolrCore execute
> INFO: [bopp.ba] webapp=/solr path=/select 
> params={wt=javabin&rows=20&start=0&facet=true&facet.field=ref_taxid_ms&q=*:*&fl=uri,meta_ss&version=1}

> hits=57 status=0 QTime=0
>
>
> The xml format results seem to be the correct ones. So one thought I 
> had is that I could somehow fall back to using xml format in solrj, 
> but I tried SolrQuery.set('wt','xml') and that didn't have the desired 
> effect (I get '&wt=javabin&wt=javabin' in the log - ie the param is 
> repeated, but still javabin).
>
>
> Am I crazy? Is this a known issue?
>
> Thanks for any suggestions
>

Mime
View raw message