I am working on elastic-search v1.1.1 I faced a problem with search queries .I want to know How solve below obstacle
Here is my mapping
{
"token" : {
"type" : "string"
}
}
Data in indexed record is
{
token : "4r5etgg-kogignjj-jdjuty687-ofijfjfhf-kdjudyhd"
}
My search is
4r5etgg-kogignjj-jdjuty687-ofijfjfhf-kdjudyhd
I want exact match of the record ,which query I need to use to get exact match of the record can it be done
QueryBuilders.queryString() ?
I checked with queryString() ,then I finalized its not useful for exact match
Please suggest me
token:"4r5etgg-kogignjj-jdjuty687-ofijfjfhf-kdjudyhd"queryString()returns either4r5etggorkogignjjorjdjuty687orofijfjfhforkdjudyhdmatch. i want exact match like4r5etgg-kogignjj-jdjuty687-ofijfjfhf-kdjudyhd