Hi,
I have a query that contains 2 different clauses. One for term query and one for prefix query. I want to know if there's a way for each of the tokens of the match field in the document I'm searching, to match just once against each of the clauses.
For example if I have a document that has a match field containing: "mary smith" and I'm searching for the name "mary m smith" both the term query and the prefix query would match against "mary". I need to find a way to match each token of the name I sent with a different token of the name in the document. In the example there shouldn't be a match because "mary" and "smith" found" a match but "m" didn't because the only possible match being a prefix was "mary" but this token already had a match.
Thanks and regards,