Is it possible to fetch multiple keyword value based on single value?

Our mapping type for accountNumber is Keyword and Text , We have not applied any tokenizer. But whenever client search for accountNumber they search with all country code [12345, +2312345, + 3412345] .Is it possible to search only with [12345] and fetch all the records along with country code?

You should be able to accomplish this with a regex query. Note the warning about performance. It would generally be better if you created a field with 12345 and another with country code, which would simplify your query and avoid the potential performance impact of regexp.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.