There's no way you can do this within the scope of text analysis I would say.
You would be better off preparing a separate field within your indexing code, or, if you don't have this option, you could do it in an UpdateProcessor, perhaps the ScriptUpdateProcessor might be of use - basically, prepare an additional field in your update processor chain that contains everything you want to highlight upon. Note, update processors are called *before* fields are stored, so as far as the index is concerned, your new field is just one single non-multivalued field. Upayavira On Tue, Mar 19, 2013, at 01:03 PM, chamara wrote: > Thanks for your reply. Sorry i forgot to mention that the it is using the > text field and it is stored = true. and i am getting back highlighted > snippets as well. It is just that I need a longer fragment.(What i need > is > something like when i copy the fields to text to make sure it does not > add > them as multivalues and concatenate it to achieve my requirement. Is > there a > better way to do this? > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/SOLRCloud-dynamic-teaser-hit-highlighting-tp4048930p4048937.html > Sent from the Solr - User mailing list archive at Nabble.com.