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 Jan Høydahl <ja...@cominvent.com> on 2013/04/02 23:25:37 UTC
Re: Add fuzzy to edismax specs?
Note that the "pf" field already parses this syntax as of 4.0, but then it is used as a phrase-slop value. You could probably use same parsing code for qf.
--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com
29. mars 2013 kl. 18:33 skrev Walter Underwood <wu...@wunderwood.org>:
> I've implemented this for the second time, so it is probably time to contribute it. I find it really useful.
>
> I've extended the query spec parser for edismax to also accept a tilde and to generate a FuzzyQuery. I used this at Netflix (on 1.3 with dismax), and re-implemented it for 3.3 here at Chegg. We've had it in production for nearly a year. I'll need to re-port this as part of our move to 4.x.
>
> Here is what the spec looks like. This expands to a fuzzy search on title with a similarity of 0.75, and so on.
>
> <str name="qf">title~0.75^4 long_title^4 title_stem^2 author~0.75</str>
>
> I'm not 100% sure I understand the spec parser in edismax, so I'd like some review when this is ready. I'd probably only do it for edismax.
>
> See: https://issues.apache.org/jira/browse/SOLR-629
>
> wunder
> --
> Walter Underwood
> wunder@wunderwood.org
> Search Guy, Chegg.com
>