Hello,
The highlighting feature does not seem to work when I use Fuzzy Like
This query. I'm not sure if the way I constructed the query is correct
or not. Please point out to me what I'm missing in order for the
highlighting feature to work?
Using "query_string" the highlighting works --> https://gist.github.com/1065424
Using "flt" the highlighting is not working --> https://gist.github.com/1065403
Following are the mapping or articles and
{
"articles": {
"properties": {
"tags": {
"index": "not_analyzed",
"type": "string"
},
"id": {
"type": "string"
},
"content": {
"store": "yes",
"type": "string"
},
"dtmPosted": {
"format": "yyyy-MM-dd HH:mm:ss",
"type": "date"
},
"title": {
"store": "yes",
"type": "string"
},
"classId": {
"type": "string"
},
"postedBy": {
"index": "not_analyzed",
"type": "string"
},
"url": {
"index": "not_analyzed",
"store": "yes",
"type": "string"
}
}
}
}
{
"adverts": {
"properties": {
"id": {
"type": "string"
},
"content": {
"store": "yes",
"type": "string"
},
"dtmPosted": {
"format": "yyyy-MM-dd HH:mm:ss",
"type": "date"
},
"title": {
"store": "yes",
"type": "string"
},
"price": {
"store": "yes",
"null_value": 0,
"type": "double"
},
"keywords": {
"index_name": "keyword",
"type": "string"
},
"classId": {
"type": "string"
},
"postedBy": {
"index": "not_analyzed",
"type": "string"
},
"categories": {
"index": "not_analyzed",
"store": "yes",
"type": "string"
},
"currency": {
"index": "not_analyzed",
"store": "yes",
"type": "string"
}
}
}
}
THank you
Raul