Finding all occurrences of a phrase or sentence


(Charles Thompson) #1

Hello all,

I need help from a high level perspective (or a link to documentation) how I can find occurrences of a block of sentences in all documents indexed. For example: Say a specific version of the entire Bible in indexed in Elasticsearch together with about a 100 blog post writing commentary and quoting parts of this same Bible. How can I finding the linkages using Elasticsearch considering that a blog post may quote from different sections of the Bible. My guess is using a custom analyzer. Thanks


(Ed) #2

You probably want to do a query string search based on the text that you want to search for.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html

Highlights will tell you where in the document field the data was found
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.