POST /products/_bulk
{ "index":{ "_id":1 }}
{ "productID":"XHDK-A-1293-#fJ3","desc":"iPhone" }
{ "index":{ "_id":2 }}
{ "productID":"KDKE-B-9947-#kL5","desc":"iPad" }
{ "index":{ "_id":3 }}
{ "productID":"JODL-X-1937-#pV7","desc":"MBP" }
POST /products/_search
{
"query": {
"term": {
"desc": {
//"value": "iPhone"
"value": "iphone"
}
}
}
}
POST /products/_search
{
"query": {
"term": {
"productID.keyword": {
"value": "XHDK-A-1293-#fJ3"
//"value": "xhdk"
//"value": "xhdk-a-1293-#fj3"
}
}
}
}
POST _analyze
{
"analyzer": "standard",
"text": ["XHDK-A-1293-#fJ3"]
}