lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Frese <>
Subject Query parser problem, using fuzzy search
Date Mon, 29 Jan 2018 16:32:34 GMT
Hello everybody,

how can I formulate a fuzzy query that works for an arbitrary string, 
resp. is there a formal syntax definition somewhere?

I already found by by hand, that


Is read by the parser, but the fuzzyness seems to get lost. So I write


Now if val contain spaces and other special characters, I can escape them:

field:my\ val~2

But now I'm stuck with the term AND:


Note that I do not want a boolean expression here, but I want to match 
the string AND! But the parser complains:

" Cannot parse 'field:AND~2': 
Encountered \" <AND> \"AND \"\" at line 1, column 4.\nWas expecting one 
of:\n    <BAREOPER> ...\n    \"(\" ...\n    \"*\" ...\n    <QUOTED> 
...\n    <TERM> ...\n    <PREFIXTERM> ...\n    <WILDTERM> ...\n 
<REGEXPTERM> ...\n    \"[\" ...\n    \"{\" ...\n    <LPARAMS> ...\n 
\"filter(\" ...\n    <NUMBER> ...\n    ",

Thanks for any hints and help.

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

View raw message