Highlighting Problem


(Pravin) #1

Hi,

I am new to ES... I wants to highlight only matched text withing searched query.

curl -XGET 'http://localhost:9200/inde/type/_search' -d '

{
"highlight" : {
"fields" : {
"number" : {}
}
},
"query" : {
"field" : {
"number" : {"query":"A06"}
}
}

}'

I wants a result should be like this eg. P09A06123.

Can you please help me on this?


(system) #2