milk911
November 1, 2019, 12:59pm
1
Hi all!
I have a record in index, that contains some spec characters " ", "/", "-":
{
"documentData" :
{
"refNo" : "8652 / 58996-3",
"status" : "Rejected",
}
}
How should I do query_string search if I have only "8652589963" value?
Thanks!
"query_string": {
"query": "(documentData.refNo: /86525[\/ -]8996[\/ -]3/)"
} - it doesn't work.
milk911
November 19, 2019, 2:42pm
2
I answer myself:
"query_string": {
"query": "xmlData.refNo.keyword:/8[\.\-\\\/ ]*6[\.\-\\\/ ]*5[\.\-\\\/ ]*2[\.\-\\\/ ]*5[\.\-\\\/ ]*8[\.\-\\\/ ]*9[\.\-\\\/ ]*9[\.\-\\\/ ]*6[\.\-\\\/ ]3[\.\-\\\/ ] /"
}
system
(system)
Closed
December 17, 2019, 2:43pm
3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.