elasticsearch - How to see the analyzed data that was indexed? -
how see analyzed data stored after index something.
i know can search see this
http://localhost:9200/local_products_fr/fields/_search/
but want see actual data not _source
something when call _analyzer
http://localhost:9200/local_products_fr/_analyze?text=<p>my <b>super</b> text</p>&analyzer=analyzer_fr { "tokens": [ { "token": "my", "start_offset": 3, "end_offset": 5, "type": "<alphanum>", "position": 0 }, { "token": "b", "start_offset": 7, "end_offset": 8, "type": "<alphanum>", "position": 1 }, { "token": "sup", "start_offset": 9, "end_offset": 14, "type": "<alphanum>", "position": 2 }, { "token": "b", "start_offset": 16, "end_offset": 17, "type": "<alphanum>", "position": 3 }, { "token": "text", "start_offset": 19, "end_offset": 23, "type": "<alphanum>", "position": 4 } ] }
i use inverted index field per document
{ "query": { "bool": { "must": [{ "term": { "_id": { "value": "2" } } }] } }, "script_fields": { "terms": { "script": "doc['product.name'].values" } } }
hope works you
Comments
Post a Comment