Re: fuzzy search and distance tilde
Greg Huber <[email protected]> Wed, 14 Aug 2024 09:44:38 +0100
| Newsgroups | gmane.comp.jakarta.lucene.user |
|---|---|
| Message-ID | <[email protected]> |
OK thanks, I do catch the exception and give a response.
I do a stopword check, but the fuzzy search syntax seems way more
complex as it does not like query statements SELECT AND etc.
if (!EnglishAnalyzer.ENGLISH_STOP_WORDS_SET.contains(term)
|| terms.length == 1) {
}
....As we all know, hacks often start with exceptions from fishing.
There have been alot of fishing queries as of late.
On 13/08/2024 20:08, Mikhail Khludnev wrote:
> On Sun, Aug 11, 2024 at 11:38 AM Greg Huber<[email protected]> wrote:
>
>
>> Is there a
>> way to escape these or configure lecene just to return no results rather
>> than an exception.
>>
> I don't think Lucene can handle it since the query parser and index
> searcher are separate components, which are wired by some code.
> I suppose it's up to custom code around
> org.events.business.search.operations.SearchOperation.doRun(SearchOperation.java:202)
>
>