Thanks for the quick response. Follow-up newbie question: If the fields are not stored, how is the server able to search for them after a restart? Where does it get the data to be searched?
Example: "bob" (firstname) is indexed but not stored. After initial indexing, I query for "firstname:(bob)" and I get my document back. But if I restart the server, where does the server go to retrieve information that will allow me to query for "bob" once again? It would seem that "bob" got stored someplace if I can query on it after a restart. My untrained mind thinks that searching for "firstname:(bob)" (after a restart) will fail, but that searching for "recordid:(12345)" (in my original example) will succeed since it was indexed+stored. (stored + indexed makes total sense to me; it's the indexed but NOT stored that I can't get my head around). Thanks! On Mon, Jun 30, 2014 at 5:05 PM, Shawn Heisey-4 [via Lucene] < ml-node+s472066n4144894...@n3.nabble.com> wrote: > > Hello All, (warning: newbie question) > > > > In our schema.xml we have defined many fields such as: > > <field name="firstname" type="string" indexed="true" stored="false" /> > > > > Other fields are defined as this: > > <field name="recordid" type="long" indexed="true" stored="true" /> > > > > Q: If my server is restarted/ rebooted, will I still be able to search > for > > documents using the "firstname" field? Or will my records need to be > > re-indexed before I can search by first name? > > It seems that after a re-boot, I can search for the "stored='true'" > fields > > but not the "stored='false'" fields. > > > > Am I interpreting this correctly? or am I missing something? > > Fields that are not stored simply mean that they will not be returned in > search results. If they are indexed, then you will be able to search on > those fields. > > This should be the case before or after a restart. > > Thanks, > Shawn > > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://lucene.472066.n3.nabble.com/Indexing-non-stored-fields-tp4144893p4144894.html > To unsubscribe from Indexing non-stored fields, click here > <http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4144893&code=ZGFka2luZEBnbWFpbC5jb218NDE0NDg5M3wtMTcwMzcxNzM5Mg==> > . > NAML > <http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- /*----------------------- * Tomas at Home * dadk...@gmail.com * ---------------------*/ -- View this message in context: http://lucene.472066.n3.nabble.com/Indexing-non-stored-fields-tp4144893p4144895.html Sent from the Solr - User mailing list archive at Nabble.com.