Re: Error while trying to load JSON

2012-03-19 Thread Chris Hostetter
: Ok, so my issue is that it must be a flat structure. Why isn't the JSON : parser able to deconstruct the object into a flatter structure for indexing? : Shouldn't it be able to take any valid JSON structure? Becuase no one has contributed code to do it? In general accepting any arbitrary JSON

Re: Error while trying to load JSON

2012-03-16 Thread Pulkit Singhal
It seems that you are using the bbyopen data. If have made up your mind on using the JSON data then simply store it in ElasticSearch instead of Solr as they do take any valid JSON structure. Otherwise, you can download the xml archive from bbyopen and prepare a schema: Here are some generic instru

Re: Error while trying to load JSON

2012-03-16 Thread Erick Erickson
bq: Shouldn't it be able to take any valid JSON structure? No, that was never the intent. The intent here was just to provide a JSON-compatible format for indexing data for those who don't like/want to use XML or SolrJ or Solr doesn't index arbitrary XML either. And I have a hard time imaginin

Re: Error while trying to load JSON

2012-03-16 Thread Chambeda
Ok, so my issue is that it must be a flat structure. Why isn't the JSON parser able to deconstruct the object into a flatter structure for indexing? Shouldn't it be able to take any valid JSON structure? -- View this message in context: http://lucene.472066.n3.nabble.com/Error-while-trying-to-lo

Re: Error while trying to load JSON

2012-03-16 Thread Erick Erickson
I don't believe Solr indexes arbitrary JSON, just as it does not index arbitrary XML. You need the input to be quite specific to how Solr expects the data, it's a relatively flat structure. There is an example in /solr/example/exampledocs/books.json that will give you an idea of the expected format