Re: indexed and stored fields don't appear in the response

2015-02-10 Thread Erick Erickson
You're confusing indexing and storing. You can _search_ on anything where indexed="true", thus your q=bizid: 2380505101 query returns documents (I'm assuming) works. That has nothing to do with what's returned in your documents. For seeing a field in your documents for which you've set stored="tr

Re: indexed and stored fields don't appear in the response

2015-02-09 Thread Sandy Ding
Thanks for Anshum & Gora's suggestion. I haven't set default fl in solrconfig.xml and the documents do contain tagid and bizid field(I've tried both q=*:* and q=bizid:2380505101). I'll look into the reindex possibility that Gora mentioned. 2015-02-09 18:37 GMT+08:00 Gora Mohanty : > On 9 February

Re: indexed and stored fields don't appear in the response

2015-02-09 Thread Gora Mohanty
On 9 February 2015 at 15:50, Anshum Gupta wrote: > Common reasons for that would be > 1. Your default fl in solrconfig is set to id, _version_. Can you try > explicitly mentioning fl=id,tagid,bizid in the request? Also, it'd be good > to look at your solrconfig.xml. > 2. Chances are, those documen

Re: indexed and stored fields don't appear in the response

2015-02-09 Thread Anshum Gupta
Common reasons for that would be 1. Your default fl in solrconfig is set to id, _version_. Can you try explicitly mentioning fl=id,tagid,bizid in the request? Also, it'd be good to look at your solrconfig.xml. 2. Chances are, those documents do not contain those fields to begin with. Both bizid and

Re: indexed and stored fields don't appear in the response

2015-02-09 Thread Sandy Ding
Sorry about the error, I have copied the wrong schema file :( The schema.xml file is actually as follows: The command curl "http://localhost:8983/solr/pa_info/select? q=bizid:2380505101&rows=10 " will get the following response:

Re: indexed and stored fields don't appear in the response

2015-02-09 Thread Anshum Gupta
What happens? You seem to be getting back the stored fields for the top 10 documents. What do you want/think should happen? On Mon, Feb 9, 2015 at 12:56 AM, Sandy Ding wrote: > Part of my schema is as follows: > > > required="true" multiValued="false" docValues="true" /> > requir

Re: indexed and stored fields don't appear in the response

2015-02-09 Thread Gora Mohanty
On 9 February 2015 at 14:26, Sandy Ding wrote: > Part of my schema is as follows: > > > required="true" multiValued="false" docValues="true" /> > required="false" multiValued="true" docValues="true"/> > > When I issue the following command, > > curl "http://localhost:8983/solr/