Fetching part of content in full content search in a field

i have a field which has multiline data. i want to fetch a part of hit.
eg: field:"this is elasticsearch. it is based on lucene."
now if i exactsearch on this field for "lucene"
then it should show me "it is based on lucene"

thank you in advance.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

See http://www.elasticsearch.org/guide/reference/api/search/highlighting/

On 13 July 2013 21:12, dsbahree@gmail.com wrote:

i have a field which has multiline data. i want to fetch a part of hit.
eg: field:"this is elasticsearch. it is based on lucene."
now if i exactsearch on this field for "lucene"
then it should show me "it is based on lucene"

thank you in advance.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.