Home:ALL Converter>Disable regex in Lucene search

Disable regex in Lucene search

Ask Time:2022-08-11T20:19:26         Author:Alex

Json Formatter

How I could disable regex in Lucene search? My problem is when I search something like that 32/22-ЕКТ I cant't find anything. It's working just when I write in quotes like this "32/22-ЕКТ" or 32\/22-ЕКТ It's because slashes are used as beginning/end or a regex query in search field.

Author:Alex,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73320552/disable-regex-in-lucene-search
yy