This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_index": "person", | |
| "_id": "rcHRX5MBJ7dnwkKAHKZt", | |
| "_version": 1, | |
| "found": true, | |
| "took": 0, | |
| "term_vectors": { | |
| "name": { | |
| "terms": { | |
| "donald": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET person/_termvectors/rcHRX5MBJ7dnwkKAHKZt | |
| { | |
| "fields": ["name"], | |
| "field_statistics": false, | |
| "positions": false, | |
| "offsets": false | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tokens": [ | |
| { | |
| "token": "mickei", | |
| "start_offset": 0, | |
| "end_offset": 6, | |
| "type": "<ALPHANUM>", | |
| "position": 0 | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POST person/_analyze | |
| { | |
| "analyzer": "english", | |
| "text": "Mickey baking breads" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POST person/_doc | |
| { | |
| "name": "Donald Fauntleroy Duck", | |
| "email": "dONALD_the_DUCk@quackmail.com" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PUT person/_mapping | |
| { | |
| "properties": { | |
| "email": { | |
| "type": "keyword", | |
| "normalizer": "lowercase" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tokens": [ | |
| { | |
| "token": "mickey", | |
| "start_offset": 0, | |
| "end_offset": 6, | |
| "type": "<ALPHANUM>", | |
| "position": 0 | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| POST person/_analyze | |
| { | |
| "analyzer": "standard", | |
| "text": "Mickey!! MOUSE" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "hits": [ | |
| { | |
| "_index": "person", | |
| "_id": "1", | |
| "_score": 1.5408845, | |
| "_source": { | |
| "name": "Mickey Mouse", | |
| ... | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GET person/_search | |
| { | |
| "explain": true, | |
| "query": { | |
| "match": { | |
| "name": "Mickey Mouse" | |
| } | |
| } | |
| } |
NewerOlder