lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Parks" <davidpark...@yahoo.com>
Subject Bug? JSON output changes when switching to solr cloud
Date Mon, 22 Apr 2013 03:16:08 GMT
We just took an installation of 4.1 which was working fine and changed it to
run as solr cloud. We encountered the most incredibly bizarre apparent bug:

In the JSON output, a colon ':' changed to a comma ',', which of course
broke the JSON parser.  I'm guessing I should file this as a bug, but it was
so odd I thought I'd post here before doing so. Demo below:

Here is a query on our previous single-server instance:

Query:
----------
http://10.1.3.28:8081/solr/select?q=book&fl=score%2Cid%2Cunique_catalog_name
&start=0&rows=50&wt=json&group=true&group.field=unique_catalog_name&group.li
mit=50

Response:
-------------
{"responseHeader":{"status":0,"QTime":15714,"params":{"fl":"score,id,unique_
catalog_name","start":"0","q":"book","group.limit":"50","group.field":"uniqu
e_catalog_name","group":"true","wt":"json","rows":"50"}},"grouped":{"unique_
catalog_name":{"matches":106711214,"groups":[{"groupValue":"ls:2653","doclis
t":{"numFound":103981882,"start":0,"maxScore":4.7039795,"docs":[{"id":"10055
02088784","score":4.7039795},{"id":"1005500291075","score":4.7039795},{"id":
"1000810546074","score":4.7039795},{"id":"1000611003270","score":4.7039795},

Note this part:
------------------
      {"unique_catalog_name":{"matches":



Now we run that same query on a server that was derived from the same build,
just configuration changes to run it in distributed "solr cloud" mode.

Query:
---------
http://10.1.3.18:8081/solr/select?q=book&fl=score%2Cid%2Cunique_catalog_name
&start=0&rows=50&wt=json&group=true&group.field=unique_catalog_name&group.li
mit=50

Response:
-------------{"responseHeader":{"status":0,"QTime":8855,"params":{"fl":"scor
e,id,unique_catalog_name","start":"0","q":"book","group.limit":"50","group.f
ield":"unique_catalog_name","group":"true","wt":"json","rows":"50"}},"groupe
d":["unique_catalog_name",{"matches":106711214,"groups":[{"groupValue":"ls:2
653","doclist":{"numFound":103981882,"start":0,"maxScore":4.7042913,"docs":[
{"id":"1005502088784","score":4.7042913},{"id":"1000611003270","score":4.704
2913},{"id":"1005500291075","score":4.703668},{"id":"1000810546074","score":
4.703668},

Note how it's changed:
----------------------------
      "unique_catalog_name",{"matches":





Mime
View raw message