We have multi value field - "name". We would like to highlight those values
in anther field - "text". For example, for the values:
"name" : ["name1", "name2", "name3", "name4"]
"text" : "name1 is a friend of name2"
we would like to get the result:
highlight: {
text : [name1 is a friend of name2 ]
}
You mean you want the terms highlighted in one field to come from the
contents of another field rather than the query? If so, then Elasticsearch
doesn't support that already but you could write a custom highlighter to do
that.
We have multi value field - "name". We would like to highlight those
values in anther field - "text". For example, for the values:
"name" : ["name1", "name2", "name3", "name4"]
"text" : "name1 is a friend of name2"
we would like to get the result:
highlight: {
text : [name1 is a friend of name2 ]
}
I have another question:
Is it possible in highlight_query (I'm using version 0.90.9) to use few
highlight tags? For example I want to highlight "text" field with
for one sub query and with for another sub query?
On Tuesday, December 31, 2013 4:42:20 PM UTC+2, Nikolas Everett wrote:
You mean you want the terms highlighted in one field to come from the
contents of another field rather than the query? If so, then Elasticsearch
doesn't support that already but you could write a custom highlighter to do
that.
Nik
On Tue, Dec 31, 2013 at 9:40 AM, mayap <maya.p...@gmail.com <javascript:>>wrote:
Hi All,
We have multi value field - "name". We would like to highlight those
values in anther field - "text". For example, for the values:
"name" : ["name1", "name2", "name3", "name4"]
"text" : "name1 is a friend of name2"
we would like to get the result:
highlight: {
text : [name1 is a friend of name2 ]
}
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.