I was wondering if someone could help me with one issue. What would be
the best way to store document in a way that I could get original
document page number from elastic search? What happens now is I store
page number as field name in elastic search. Everything works well,
except one issue: highlighting. As you know in order for highlighting
to work, you have to supply field name, and in my case I'm not sure on
which page the result will be -> no way to supply field name.
So quickly what I'm trying to achieve:
I need to store document in elastic search, get corresponding page
number in results and have search hits highlighted.
not sure I fully understand where is your problem. Do you think you can
share more info about how you model your domain objects? For example: you
break the book by pages and index each page as a separated document into ES?
I was wondering if someone could help me with one issue. What would be
the best way to store document in a way that I could get original
document page number from elastic search? What happens now is I store
page number as field name in elastic search. Everything works well,
except one issue: highlighting. As you know in order for highlighting
to work, you have to supply field name, and in my case I'm not sure on
which page the result will be -> no way to supply field name.
So quickly what I'm trying to achieve:
I need to store document in elastic search, get corresponding page
number in results and have search hits highlighted.
Right now I create new document in elastic search for each book, and
then store separate pages in the document, with page number as field
name. Something like this:
not sure I fully understand where is your problem. Do you think you can
share more info about how you model your domain objects? For example: you
break the book by pages and index each page as a separated document into ES?
I was wondering if someone could help me with one issue. What would be
the best way to store document in a way that I could get original
document page number from elastic search? What happens now is I store
page number as field name in elastic search. Everything works well,
except one issue: highlighting. As you know in order for highlighting
to work, you have to supply field name, and in my case I'm not sure on
which page the result will be -> no way to supply field name.
So quickly what I'm trying to achieve:
I need to store document in elastic search, get corresponding page
number in results and have search hits highlighted.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.