Although Solr uses XML format for document update and query, JSON is a
supported option.
To post documents in JSON, see:
http://wiki.apache.org/solr/UpdateJSON
To retrieve query results in JSON, see:
http://wiki.apache.org/solr/SolJSON
That works well for relatively flat data (each field has a simple value or
list of values), but less well if you have complex structure within an
individual field value (e.g., multi-level nesting of JSON for a single field
value.) For the latter, you would have to store the JSON as a string for
such a field.
-- Jack Krupansky
-----Original Message-----
From: rjain15
Sent: Tuesday, May 29, 2012 12:57 PM
To: solr-user@lucene.apache.org
Subject: MongoDB and Solr
Hi
I am building web app/mobile app, where users can update information
frequently and there is a search function to quick search the information
using different types of searches.
Most of the data is going to be posted in JSON Format and stored in JSON
format
I have a few questions on the architecture choices, I am relatively new to
Solr and MongoDB.
1. Should I use MongoDB to store the JSON documents, or does Solr natively
store the documents in the data directory
2. Does Solr require a specific schema for the JSON document.
Thanks
Rajesh
--
View this message in context:
http://lucene.472066.n3.nabble.com/MongoDB-and-Solr-tp3986637.html
Sent from the Solr - User mailing list archive at Nabble.com.