Hi Team, first post here and hope you guys can help me stop going round and round!
It's java code using elastic libs/methods
I'm trying to look for a string in a field - eg, ":21:test123blah" and expecting it to fail and hit my error messages, but instead I get some docs back, although none of them have my search string.
If, however, I search for just "test123blah" then it correctly returns the error message I've created indicating no matched records.
The JAVA code I have is:
matchquerybuilder test = querybuilders .matchQuery ("fieldarea", ":21:"+testref) BoolQueryBuilder matchQ = QueryBuilders.boolQuery(); matchQ.must(test);
I then send it to matchQ to a searchsourcebuilder.query and set that as the searchrequest.source - all of which is oretty standard I think... The query is with why I can't seem to use the ":21:" as part of the query correctly.
PS, also tried to double escape (//) the ":" chars, still to no avail
Thanks a bill for even looking at this!