Hi Gora, The problem I am finding is that the copyField directive sends the original value to the new field type. The field type then munges the index until it's completely different (original -> some sentence this like, index -> true), but the stored value is still the original sentence.
When I facet on this field, I get the actual "true"/"false" value in the index (which is what i want) and not the stored value "some sentence like this". 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). So in other words, I want to pull a document out of Solr with the indexed value of one of the fields ("true") and not the stored value "some sentence like this"). I understand that Faceting does this for me, but I don't just want the # of docs that are 'true', but I want the actual document with its field set to "true". 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) or to change the stored value and set it equal to the indexed value (for example, after the stop word filter, the index becomes the original sentence minus the stop words and the stored value remains the same. Is there a way to change the stored value to the be same as the indexed value?). Thanks, Christian On Thu, Jul 7, 2011 at 1:05 PM, Gora Mohanty <g...@mimirtech.com> wrote: > On Thu, Jul 7, 2011 at 3:35 AM, Christian <engr...@gmail.com> wrote: > [...] > > This is great for finding all things with or without profanity (as > separate > > queries), but I would like to get the value as part of a the query and > let > > the consumer of the call decide what to do with the data. > > > > Is there a way to do this w/o having to instantiate a > KeepWordFilterFactory > > in the Java class that is responsible for inserting the document into > Solr? > > For example, I know that I can do this in Java code during the insert, > but I > > would rather get the indexed value (the one that shows up when faceting). > > > > Please let me know if this is not clear. > > Not sure that I follow what you are after: > * If you are using this field as part of faceting, the facet values should > be > what you are after. > * In the general case, if you want to retrieve the actual value, you should > have both indexed=true, and stored=true. > > Regards, > Gora >