Thanks Alex,

This processor truncates the fields during index (I just checked it), but I
need a different thing.
Let's say I have a content of 100 characters. I want whole of this field to
be indexed, but I want to store only the first 50 characters, which I will
use for highlighting. 
i.e: content="Hello world, have a nice day" . I want to index all these
terms, but store only "Hello world", so if I will search for "world" I will
get the document with highlighted term and when I will search for "nice" I
will still get the document but without highlighting. My problem is that the
stored fields takes too much disk space and I want to reduce it.
Is there a way to truncate or limit field length only for storing?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/limit-stored-field-size-tp4284356p4284362.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to