You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by David Frese <da...@active-group.de> on 2018/02/01 12:01:26 UTC
Re: Query parser problem, using fuzzy search
Am 31.01.18 um 16:30 schrieb David Frese:
> Am 29.01.18 um 18:05 schrieb Erick Erickson:
>> Try searching with lowercase the word and. Somehow you have to allow
>> the parser to distinguish the two.
>
> Oh yeah, the biggest unsolved problem in the ~80 years history of
> programming languages... NOT ;-)
>
>> You _might_ be able to try "AND~2" (with quotes) to see if you can get
>> that through the parser. Kind of a hack, but....
>
> Well, the parser swallows that, but it's not a fuzzy search then anymore.
>
>> There's also a parameter (depending on the parser) about lowercasing
>> operators, so if and~2 doesn't work check thatl
>
> And if both appear?
>
> Well, thanks for your ideas - of course you are not the one to blame.
>
If anybody runs into the same problem, I found a possibility:
field:\AND~1
will find documents with field values similar to "AND".
--
David Frese
+49 7071 70896 75
Active Group GmbH
Hechinger Str. 12/1, 72072 Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 224404
Geschäftsführer: Dr. Michael Sperber