On Wed, Jul 2, 2014 at 6:47 AM, Tanguy Bernard <bernardtanguy1...@gmail.com>
wrote:

Hello
> Everything is on subject
> I have to use fuzzy for my fileds (title,content) and when I'm searching I
> want to see a part of the sentance where my keyword is.
>
> This, together, doesn't work:
> $params['body']['highlight']['fields'][$value]['fragment_size']=30;
> $params['body']['query']['fuzzy']=0.2;
>
> Have we a way to use highlight and fuzzy together or an other way
> equivalent ?
>
>
Usually its better to show a recreation with curl.  PHP isn't always
understood.

Vocabulary point: fuzzy, prefix, and regex queries are called "multi term
queries".

Anyway, there are three highlighters built in to Elasticsearch all of which
have different feature sets.  I'm not sure if the plain highlighter
supports multi term queries, but you can try the fast vector highlighter or
the postings highlighter which do support multi term queries.  See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html

For completeness sake I should mention that I maintain a fourth highlighter
that also supports multi term queries but it is a plugin:
https://github.com/wikimedia/search-highlighter

Nik

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAPmjWd02ok9w%2B9U47bdmT78JvxP%3D41kpPBpOyRCGmXH71J4a5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to