On Tue, Sep 11, 2012 at 7:03 PM,  <sy...@web.de> wrote:
> The purpose of stored="true" is to store the raw string data besides the 
> analyzed/transformed data for displaying purposes. This is fine for an 
> analyzed solr.TextField, but for an StrField both values are the same. So is 
> there any reason to apply stored="true" on a StrField as well?

You're over-thinking things a bit ;-)

if you want to search on it: index it
If you want to return it in search results: store it
Those are two orthogonal things (even for StrField).

Why?  Indexed means full-text inverted index: words (terms) point to
documents.  It's not easy/fast for a given document to find out what
terms point to it.  Stored fields are all stored together and can be
retrieved together given a document id.  Hence search finds lists of
document ids (via indexed fields), and can then return any of the
stored fields for those document ids.

-Yonik
http://lucidworks.com

Reply via email to