OK I solved the problem. It turns out that I was connecting to the
server using its FQDN (rosen.ifactory.com). When, instead, I connect to
it using the name "rosen" (which maps to the same IP using the default
domain name configured in my resolver, ifactory.com), I get results back.
I am looking into the virtual hosts config in tomcat; it seems as if
there must indeed be another solr instance running; in fact I'm now
concerned there might be two solr instances running against the same
data folder. yargh.
-Mike
On 10/22/2010 09:05 AM, Mike Sokolov wrote:
Yes - I really only have the one solr instance. And I have plenty of
other cases where I am getting good results back via solrj. It's
really a mystery. Unfortunately I have to catch up on other stuff I
have been neglecting, but I'll follow up when I'm able to get a
solution...
-Mike
On 10/22/2010 06:58 AM, Savvas-Andreas Moysidis wrote:
strange..are you absolutely sure the two queries are directed to the
same
Solr instance? I'm running the same query from the admin page (which
specifies the xml format) and I get the exact same results as solrj.
On 21 October 2010 22:25, Mike Sokolov<soko...@ifactory.com> wrote:
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