You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/10/15 02:32:14 UTC

[Solr Wiki] Update of "UpdateJSON" by JeyMichael

Dear Wiki user,

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

The "UpdateJSON" page has been changed by JeyMichael:
http://wiki.apache.org/solr/UpdateJSON?action=diff&rev1=10&rev2=11

  Note that we added "commit=true" to the URL so that the documents would be immediately searchable.
  
  You should now be able to query for the newly added documents:
- http://localhost:8983/solr/select?q=title:monsters&wt=json&indent=true
+ http://localhost:8983/solr/select?q=name:monsters&wt=json&indent=true
  {{{
  {
    "responseHeader":{
@@ -61, +61 @@

          "inStock":true,
          "price":6.49,
          "pages_i":304,
-         "title":[
+         "name":[
            "The Sea of Monsters"],
          "cat":["book","paperback"]}]
    }}