Highlight in child table


(senthil prabhu) #1

Hi,
I am searching with highlight in child table but i am not
getting the result for highlight. I here mentioned the query for
searching with highlight.

Qurey:

curl -XGET 'http://localhost:9200/dbp11/metadata/search' -d
'{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,
"highlight" : { "tags_schema" : "styled" ,"pre_tags" : [ " <a href=
"#hl-
-focus"> <span id="high-_-light" style="background-
color: #FFFF00; color: red;">" ] ,"post_tags" : [ "</
span>" ] ,"fields" : {"field1" : {"fragment_size" :
1500,"number_of_fragments" : 1000 } } }, "explain" : false,"fields" :
["field1","field2" ] }'

Result:

{"took":0,"_shards":{"total":5,"successful":5,"failed":0},"hits":
{"total":1,"max_score":0.625,"hits":
[{"_index":"dbp11","_type":"metadata","_id":"4c-M7ySjRi-
ZVNMIJTnq9Q","_score":0.625,"fields":
{"field1":"arul","filed2":"kumar"},"highlight":{"m_enddoc":null}}]
}}

Questions:
Is it possible to highlight in child table, if yes means please give
me a sample?


(Shay Banon) #2

No, highlighting on a child doc (or fetching its content) is still not
supported.

On Mon, Jan 3, 2011 at 12:48 PM, senthil prabhu senthilsebi@gmail.comwrote:

Hi,
I am searching with highlight in child table but i am not
getting the result for highlight. I here mentioned the query for
searching with highlight.

Qurey:

curl -XGET 'http://localhost:9200/dbp11/metadata/search' -d
'{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,
"highlight" : { "tags_schema" : "styled" ,"pre_tags" : [ " <a href=
"#hl-
-focus"> <span id="high-_-light" style="background-
color: #FFFF00; color: red;">" ] ,"post_tags" : [ "</
span>" ] ,"fields" : {"field1" : {"fragment_size" :
1500,"number_of_fragments" : 1000 } } }, "explain" : false,"fields" :
["field1","field2" ] }'

Result:

{"took":0,"_shards":{"total":5,"successful":5,"failed":0},"hits":
{"total":1,"max_score":0.625,"hits":
[{"_index":"dbp11","_type":"metadata","_id":"4c-M7ySjRi-
ZVNMIJTnq9Q","_score":0.625,"fields":
{"field1":"arul","filed2":"kumar"},"highlight":{"m_enddoc":null}}]
}}

Questions:
Is it possible to highlight in child table, if yes means please give
me a sample?


(senthil prabhu) #3

thank you...

            can i expect this (highlighting on a child doc or

fetching its content) feature in next release...

On Jan 3, 3:50 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

No, highlighting on a child doc (or fetching its content) is still not
supported.

On Mon, Jan 3, 2011 at 12:48 PM, senthil prabhu senthils...@gmail.comwrote:

Hi,
I am searching with highlight in child table but i am not
getting the result for highlight. I here mentioned the query for
searching with highlight.

Qurey:

curl -XGET 'http://localhost:9200/dbp11/metadata/search'-d
'{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,
"highlight" : { "tags_schema" : "styled" ,"pre_tags" : [ " <a href=
"#hl-
-focus"> <span id="high-_-light" style="background-
color: #FFFF00; color: red;">" ] ,"post_tags" : [ "</
span>" ] ,"fields" : {"field1" : {"fragment_size" :
1500,"number_of_fragments" : 1000 } } }, "explain" : false,"fields" :
["field1","field2" ] }'

Result:

{"took":0,"_shards":{"total":5,"successful":5,"failed":0},"hits":
{"total":1,"max_score":0.625,"hits":
[{"_index":"dbp11","_type":"metadata","_id":"4c-M7ySjRi-
ZVNMIJTnq9Q","_score":0.625,"fields":
{"field1":"arul","filed2":"kumar"},"highlight":{"m_enddoc":null}}]
}}

Questions:
Is it possible to highlight in child table, if yes means please give
me a sample?


(Shay Banon) #4

Chances for it getting to the next release are low.

On Mon, Jan 3, 2011 at 2:29 PM, senthil prabhu senthilsebi@gmail.comwrote:

thank you...

           can i expect this (highlighting on a child doc or

fetching its content) feature in next release...

On Jan 3, 3:50 pm, Shay Banon shay.ba...@elasticsearch.com wrote:

No, highlighting on a child doc (or fetching its content) is still not
supported.

On Mon, Jan 3, 2011 at 12:48 PM, senthil prabhu <senthils...@gmail.com
wrote:

Hi,
I am searching with highlight in child table but i am not
getting the result for highlight. I here mentioned the query for
searching with highlight.

Qurey:

curl -XGET 'http://localhost:9200/dbp11/metadata/search'-d
'{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,
"highlight" : { "tags_schema" : "styled" ,"pre_tags" : [ " <a href=
"#hl-
-focus"> <span id="high-_-light" style="background-
color: #FFFF00; color: red;">" ] ,"post_tags" : [ "</
span>" ] ,"fields" : {"field1" : {"fragment_size" :
1500,"number_of_fragments" : 1000 } } }, "explain" : false,"fields" :
["field1","field2" ] }'

Result:

{"took":0,"_shards":{"total":5,"successful":5,"failed":0},"hits":
{"total":1,"max_score":0.625,"hits":
[{"_index":"dbp11","_type":"metadata","_id":"4c-M7ySjRi-
ZVNMIJTnq9Q","_score":0.625,"fields":
{"field1":"arul","filed2":"kumar"},"highlight":{"m_enddoc":null}}]
}}

Questions:
Is it possible to highlight in child table, if yes means please give
me a sample?


(system) #5