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="true", try appending &fl=* to your query. Or even specific fields as fl=bizid All fields will be returned in the &fl=* case that have stored="true", whether or not indexed="true" was set. The two concepts are entirely orthogonal. Best, Erick On Mon, Feb 9, 2015 at 10:09 PM, Sandy Ding <sandy.ding...@gmail.com> wrote: > 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 <g...@mimirtech.com>: > >> On 9 February 2015 at 15:50, Anshum Gupta <ans...@anshumgupta.net> 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 documents do not contain those fields to begin >> with. >> > Both bizid and and tagid aren't required fields and so those documents >> > might not even have those. What you've shared confuses me a bit. Does >> your >> > query contain q=bizid:2380505101 or q=*:* ? If you are querying for >> bizid, >> > the field (with that value) should be a part of the document and the >> > previous point should be the reason why you're seeing this behavior. >> >> One more possibility to consider is that if you change the schema, you >> would need to reload the Solr container, and reindex. >> >> Regards, >> Gora >>