Somehow relevant jira : https://issues.apache.org/jira/browse/SOLR-218



On Wednesday, December 11, 2013 2:15 AM, Furkan KAMACI <furkankam...@gmail.com> 
wrote:
Hi;

I've debugged edismax of Solr 4.5.1 and I see that line:

*case FUZZY: return super.getFuzzyQuery(field, val, flt);*

it calls that one:

* // called from parser*
*  protected Query getFuzzyQuery(String field, String termStr, float
minSimilarity) throws SyntaxError {*
*    termStr = analyzeIfMultitermTermText(field, termStr,
schema.getFieldType(field));*
*    Term t = new Term(field, termStr);*
*    return newFuzzyQuery(t, minSimilarity, getFuzzyPrefixLength());*
*  }*

and getFuzzyPrefixLength() returns that:

*int fuzzyPrefixLength = FuzzyQuery.defaultPrefixLength;*

FuzzyQuery.defaultPrefixLength is 0 and *fuzzyPrefixLength *variable's setter
is not called anywhere else and that variable's value is not changed.. Here
is a similar question:
http://grokbase.com/t/lucene/solr-user/11a7a1bkg1/fuzzy-prefix-length that
has no answer. If you can not find an answer I can fire a Jira and apply a
patch for it.

Thanks;
Furkan KAMACI



2013/12/11 Mhd Wrk <mhd...@gmail.com>

> Does edismax query parser support prefixlen (length of common (non-fuzzy)
> prefix)?
>
> Thanks
>

Reply via email to