{ "id" : "978-1423103349", "cat" : ["book","paperback"], "name" : "The Sea of Monsters", "author" : "Rick Riordan", "series_t" : "Percy Jackson and the Olympians", "sequence_i" : 2, "genre_s" : "fantasy", "inStock" : true, "price" : 6.49, "pages_i" : 304 }
We have uploaded the books.json from exampledocs in the example folder of solr. In schema.xml we have included the following field: <field name="genre_s" type="string" indexed="true" stored="true"/> But when we try to query the JSON on genre field by querying "fantasy" we get the following result. PFA the screenshot of our result. *Salonee Rege* USC Viterbi School of Engineering University of Southern California Master of Computer Science - Student Computer Science - B.E salon...@usc.edu *||* *619-709-6756* On Tue, Oct 27, 2015 at 11:22 AM, Salonee Rege <salon...@usc.edu> wrote: > Hello > > *Salonee Rege* > USC Viterbi School of Engineering > University of Southern California > Master of Computer Science - Student > Computer Science - B.E > salon...@usc.edu *||* *619-709-6756 <619-709-6756>* > > > > On Tue, Oct 27, 2015 at 11:06 AM, Sameer Maggon <sam...@measuredsearch.com > > wrote: > >> Hi Salonee, >> >> I believe you missed adding the query screenshot? >> >> Sameer. >> >> On Tue, Oct 27, 2015 at 10:57 AM, Salonee Rege <salon...@usc.edu> wrote: >> >> > Please find attached the following books.json which is in the >> example-docs >> > file for your reference. And a screenshot of querying it on the field >> > fantasy for genre key. >> > Thanks for the help. >> > >> > >> > *Salonee Rege* >> > USC Viterbi School of Engineering >> > University of Southern California >> > Master of Computer Science - Student >> > Computer Science - B.E >> > salon...@usc.edu *||* *619-709-6756 <619-709-6756>* >> > >> > >> > >> > On Tue, Oct 27, 2015 at 10:47 AM, Rallavagu <rallav...@gmail.com> >> wrote: >> > >> >> Could you please share your query? You could use "wt=json" query >> >> parameter to receive JSON formatted results if that is what you are >> looking >> >> for. >> >> >> >> On 10/27/15 10:44 AM, Salonee Rege wrote: >> >> >> >>> Hello, >> >>> We are trying to query the books.json that we have posted to solr. >> >>> But when we try to specfically query it on genre it does not return a >> >>> complete json with valid key-value pairs. Kindly help. >> >>> >> >>> /Salonee Rege/ >> >>> USC Viterbi School of Engineering >> >>> University of Southern California >> >>> Master of Computer Science - Student >> >>> Computer Science - B.E >> >>> salon...@usc.edu <mailto:salon...@usc.edu> _||_ _619-709-6756_ >> >>> _ >> >>> _ >> >>> _ >> >>> _ >> >>> >> >> >> > >> >> >> -- >> *Sameer Maggon* >> Measured Search >> c: 310.344.7266 >> www.measuredsearch.com <http://measuredsearch.com> >> > >