: However, when I get the value of the field from a Solr query, I get the
: original sentence ("some sentence like this") which is not what I want (in
: this particular case).

the stored field is allways the original stored value -- analysis is only 
used for producing the indexed terms.

: For now, i ended up creating a custom updateprocessor and configured it in
: solrconfig.xml, but I would still like to know if there's a way through the
: SOLR API to get the actual indexed value (like the way the SOLR api does it)

an updateprocessor is definiltey the "right" way to go about a problem 
like this.

Solr actually doesn't have an efficient way to get the indexed values for 
a document, the very nature of hte indexed values is that they are an 
*inverted* index -- it's efficient to go from indexed term -> doc, not the 
other way arround.

The caveat to this is that things like the FieldCache and UnInvertedField 
can be used internally for fast lookup of indexed terms but they have 
heavy initialization cost to build up these data structures for each 
newSearcher.

Bottom line: an updateprocessor (or generating this value in your indexing 
code) is the way to go.

-Hoss

Reply via email to