Check Datatypes
Edit pageCheck All Types
Section titled “Check All Types”Index Datatypes
Section titled “Index Datatypes”PUT /test/types/~notmet
{ "positive": { "_type": "positive", "_value": 123456 }, "integer": { "_type": "integer", "_value": 123456 }, "floating": { "_type": "floating", "_value": 123456 }, "boolean": { "_type": "boolean", "_value": true }, "keyword": { "_type": "keyword", "_value": "true" }, "text": { "_type": "text", "_value": "this field is text" }, "date": { "_type": "date", "_value": "2019-05-17" }, "datetime": { "_type": "datetime", "_value": "2019-05-17T10:12:12.123" }, "time": { "_type": "time", "_value": "10:12:12.123" }, "timedelta": { "_type": "timedelta", "_value": "+10:12:12.123" }, "uuid": { "_type": "uuid", "_value": "22214800-78c7-11e9-b7d0-e5256ff63dab" } }Check Datatypes
Section titled “Check Datatypes”GET /test/types/Info Datatypes
Section titled “Info Datatypes”INFO /test/types/~notmetSearch Datatypes
Section titled “Search Datatypes”SEARCH /test/types/
{ "_query": { "_and": [ { "positive": 123456 }, { "integer": 123456 }, { "floating": 123456 }, { "boolean": true }, { "keyword": "true" }, { "text": "this field is text" }, { "text": "field" }, { "date": "2019-05-17" }, { "datetime": "2019-05-17T10:12:12.123" }, { "time": "10:12:12.123" }, { "timedelta": "+10:12:12.123" }, { "uuid": "22214800-78c7-11e9-b7d0-e5256ff63dab" } ] }}Search Datatypes by range
Section titled “Search Datatypes by range”SEARCH /test/types/
{ "_query": { "_and": [ { "positive": { "_in": { "_range": { "_from": 100000, "_to": 200000 } } } }, { "integer": { "_in": { "_range": { "_from": 100000, "_to": 200000 } } } }, { "floating": { "_in": { "_range": { "_from": 100000, "_to": 200000 } } } }, { "date": { "_in": { "_range": { "_from": "2019-05-01", "_to": "2019-05-31" } } } }, { "datetime": { "_in": { "_range": { "_from": "2019-05-17T00:00:00", "_to": "2019-05-17T23:59:59" } } } }, { "time": { "_in": { "_range": { "_from": "10:00:00", "_to": "11:00:00" } } } }, { "timedelta": { "_in": { "_range": { "_from": "+10:00:00", "_to": "+11:00:00" } } } } ] }}Search Datatypes by a near miss
Section titled “Search Datatypes by a near miss”SEARCH /test/types/
{ "_query": { "_and": [ { "integer": 123457 } ] }}Search Datatypes out of range
Section titled “Search Datatypes out of range”SEARCH /test/types/
{ "_query": { "_and": [ { "date": { "_in": { "_range": { "_from": "2018-01-01", "_to": "2018-12-31" } } } } ] }}