How to use search query in case insesitive for keyword

(Ramesh Nagargoje) #1

Here is my search query used in python to find error count.

res ="qvs-data", timeout=50000, body={

return res['hits']['total']

I want to find error count for tag in case insensitive.
If tag is "pll_NOT_LOCKED" error count is 12
then for tag "PLL_NOT_LOCKED" error count should be 12

(Junaid) #2


For case insensitive searches, you need to enable add a lower case filter for your index analyser. All the documents will be indexed in lower case. You can than use lower case filter for search analyser or query directly using lower case.

You can refer to here for an example to add lower case filter to your analyser.

(system) #3

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