What tool are you using? A browser (or curl) should not add color to JSON docs...
But there is an highlighting feature in Elasticsearch which will produce something you can display. See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 6 mars 2014 à 06:50, robin thakur <[email protected]> a écrit : Hi, I want to highlight the text in my response which I am enter in my elastic search. e.g.- i am writing this http://localhost:9200/productindex/_search?q=armani in URL and in response i got the json object which contains armani. what I want to change color of armani to yellow or orange in the response text so that it is easy to see which text i am searching. Is there any way to do this thanks -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/658eb895-df85-4a19-8c36-f3936beba4b6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/07EFA6D8-D576-4618-BA75-A02BEC66E8EA%40pilato.fr. For more options, visit https://groups.google.com/groups/opt_out.
