Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by YonikSeeley:
http://wiki.apache.org/solr/SolJSON

The comment on the change is:
update example

------------------------------------------------------------------------------
  Variations of the JSON format are supported for [wiki:SolPython Python] and 
[wiki:SolRuby Ruby].
  
  Example JSON output:
- 
http://localhost:8983/solr/select/?q=video&indent=on&highlight=true&highlightFields=name,features&wt=json
+ 
http://localhost:8983/solr/select/?q=video&indent=on&hl=true&hl.fl=name,features&facet=true&facet.field=cat&facet.mincount=1&wt=json
  {{{
  {
-  "header":{"qtime":0},
+  "responseHeader":{
+   "status":0,
+   "QTime":10,
+   "params":{
+       "wt":"json",
+       "facet":"true",
+       "hl.fl":"name,features",
+       "facet.mincount":"1",
+       "facet.field":"cat",
+       "indent":"on",
+       "hl":"true",
+       "q":"video"}},
   "response":{"numFound":3,"start":0,"docs":[
        {
         "id":"MA147LL/A",
@@ -22, +33 @@

         "price":399.0,
         "popularity":10,
         "inStock":true,
+        "timestamp":"2007-01-31T05:12:44.562Z",
         "cat":[
          "electronics",
          "music"],
@@ -41, +53 @@

         "price":479.95,
         "popularity":7,
         "inStock":false,
+        "timestamp":"2007-01-31T05:12:45.187Z",
         "cat":[
          "electronics",
          "graphics card"],
@@ -59, +72 @@

         "price":649.99,
         "popularity":7,
         "inStock":false,
+        "timestamp":"2007-01-31T05:12:45.203Z",
         "cat":[
          "electronics",
          "graphics card"],
@@ -69, +83 @@

          "dual DVI, HDTV, svideo, composite out",
          "OpenGL 2.0, DirectX 9.0"]}]
   },
+  "facet_counts":{
+   "facet_queries":{},
+   "facet_fields":{
+       "cat":[
+        "electronics",3,
+        "card",2,
+        "graphics",2,
+        "music",1]}},
   "highlighting":{
    "MA147LL/A":{
+       "name":["Apple 60 GB iPod with <em>Video</em> Playback Black"],
-       "features":["Stores up to 15,000 songs, 25,000 photos, or 150 hours of 
<em>video</em>"],
+       "features":["Stores up to 15,000 songs, 25,000 photos, or 150 hours of 
<em>video</em>"]},
-       "name":["Apple 60 GB iPod with <em>Video</em> Playback Black"]},
    "EN7800GTX/2DHTV/256M":{
        "features":["Dual DVI connectors, HDTV out, <em>video</em> input"]},
    "100-435805":{
        "name":["ATI Radeon X1900 XTX 512 MB PCIE <em>Video</em> Card"]}}
  }
+ 
  }}}
  
  == JSON specific parameters ==

Reply via email to