These might be obvious, but:

* I assume you did a Solr commit command after indexing, right?

* If you are using the fieldtype definitions from the default
schema.xml, then your "string" fields are not being analyzed, which
means you should expect search results only if you enter the entire,
exact value of one of the Message-ID or Date fields in your query. Is
that your intention?

And yes, your analysis of "stored" seems correct. Stored fields are
those whose values you need back at query time, and indexed fields are
those you can do queries on. For a few complications, see
http://wiki.apache.org/solr/FieldOptionsByUseCase

On Fri, Jan 23, 2009 at 8:04 PM, Johnny X <jonathanwel...@gmail.com> wrote:
>
> I've indexed my XML using the below in the schema:
>
>   <field name="Message-ID" type="string" indexed="true" stored="true"
> required="true"/>
>   <field name="Date" type="string" indexed="false" stored="true"/>
>   <field name="From" type="string" indexed="false" stored="true"/>
>   <field name="To" type="string" indexed="false" stored="true"/>
>   <field name="Subject" type="string" indexed="false" stored="true"/>
>   <field name="Mime-Version" type="string" indexed="false" stored="true"/>
>   <field name="Content-Type" type="string" indexed="false" stored="true"/>
>   <field name="Content-Transfer-Encoding" type="string" indexed="false"
> stored="true"/>
>   <field name="X-From" type="string" indexed="false" stored="true"/>
>   <field name="X-To" type="string" indexed="false" stored="true"/>
>   <field name="X-cc" type="string" indexed="false" stored="true"/>
>   <field name="X-bcc" type="string" indexed="false" stored="true"/>
>   <field name="X-Folder" type="string" indexed="false" stored="true"/>
>   <field name="X-Origin" type="string" indexed="false" stored="true"/>
>   <field name="X-FileName" type="string" indexed="false" stored="true"/>
>   <field name="Content" type="string" indexed="true" stored="true"/>
>
>  <uniqueKey>Message-ID</uniqueKey>
>
> However searching via the Message-ID or Content fields returns 0. Using Luke
> I can still see these fields are stored however.
>
> Out of interest, by setting the other fields to just "stored=true", can they
> be returned in a query as part of a search?
>
>
> Cheers.
> --
> View this message in context: 
> http://www.nabble.com/Results-not-appearing-tp21637069p21637069.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to