Ok a little bit of deleting lines from the json file led me to realize that Solr isn't happy with the following: "offers": [ { "url": "", "text": "On Sale", "id": "OS" } ], But as to why? Or what to do to remedy this ... I have no clue :(
- Pulkit On Mon, Sep 19, 2011 at 2:45 PM, Pulkit Singhal <pulkitsing...@gmail.com> wrote: > Hello, > > I am running a simple test after reading: > http://wiki.apache.org/solr/UpdateJSON > > I am only using one object from a large json file to test and see if > the indexing works: > curl 'http://localhost:8983/solr/update/json?commit=true' > --data-binary @productSample.json -H 'Content-type:application/json' > > The data is from bbyopen.com, I've attached the one single object that > I'm testing with. > > The indexing process fails with: > Sep 19, 2011 2:37:54 PM org.apache.solr.common.SolrException log > SEVERE: org.apache.solr.common.SolrException: invalid key: url [1701] > at org.apache.solr.handler.JsonLoader.parseDoc(JsonLoader.java:355) > > I thought that any json attributes that did not have a mapping in the > schema.xml file would simply not get indexed. > (a) Is this not true? > > But this error made me retry after adding url to schema.xml file: > <field name="url" type="string" indexed="false" stored="true"/> > I retried after a restart but I still keep getting the same error! > (b) Can someone wise perhaps point me in the right direction for > troubleshooting this issue? > > Thank You! > - Pulkit >