Hello, I have a problem with highlighting, in the follow index:
curl -XPUT "http://$EL_IP:9200/docs" -d '{
"settings": {
"index": {
"number_of_shards": 5,
"number_of_replicas": 1,
"analysis": {
"analyzer": {
"main_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter": ["lowercase", "russian_morphology", "english_morphology"]
}
}
}
}
},
"mappings": {
"extern": {
"properties": {
"url" : { "type" : "string"},
"summary" : {
"type" : "attachment",
"analyzer": "snowball",
"fields" : {
"content": {"analyzer": "main_analyzer"},
"file" : {"store": "yes", "analyzer": "standard"},
"date" : {"store": "yes"},
"author" : {"store" : "yes"},
}
},
"last_processed" : { "type" : "date", "index" : "no" }
}
}
}
}'
not working highlighting with, the follow query:
{
"fields": [
"_id"
],
"query": {
"query_string": {
"query": "searchtext"
}
},
"highlight": {
"fields": {
"summary": {}
}
}
}
elastic return data without highlight. Anybody help.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.