Display found text


(Igor Olikh) #1

Hi!

I'm beginning to learn ElasticSearch and Nest (.NET). After brief tests I
understand how to index data, to search and my question now is how to
display the found text for a user?
I search in large documents and I want to show to users only one paragraph
where the text was found.

Thank you in advance,
Igor

--
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.


(David Pilato) #2

Have a look at highlight feature. It should help.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 10 sept. 2013 à 14:59, Igor Olikh igoro1975@gmail.com a écrit :

Hi!

I'm beginning to learn ElasticSearch and Nest (.NET). After brief tests I understand how to index data, to search and my question now is how to display the found text for a user?
I search in large documents and I want to show to users only one paragraph where the text was found.

Thank you in advance,
Igor

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.


(Igor Olikh) #3

Thank you, David. I'll check it.

On Tuesday, September 10, 2013 4:05:16 PM UTC+3, David Pilato wrote:

Have a look at highlight feature. It should help.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 10 sept. 2013 à 14:59, Igor Olikh <igor...@gmail.com <javascript:>> a
écrit :

Hi!

I'm beginning to learn ElasticSearch and Nest (.NET). After brief tests I
understand how to index data, to search and my question now is how to
display the found text for a user?
I search in large documents and I want to show to users only one paragraph
where the text was found.

Thank you in advance,
Igor

--
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 elasticsearc...@googlegroups.com <javascript:>.
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.


(system) #4