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.
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.
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
For completeness sake I should mention that I maintain a fourth highlighter
that also supports multi term queries but it is a plugin:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.