rnewson / couchdb-lucene

Enables full-text searching of CouchDB documents using Lucene
Apache License 2.0
769 stars 145 forks source link

Highlighting terms with wildcards #217

Open DTalpas opened 9 years ago

DTalpas commented 9 years ago

When I run a search, I look for the exact term, and any terms that contain that term (term OR (wiildcard)term OR term(wildcard) OR (wildcard)term(wildcard)).

Highlighting only works on exact matches, for example if a result comes back that hit on (wildcard)term, there is nothing in the highlights object to reflect the match.

I was wondering if there exists a configuration in the fast-vector-highlighter plugin, or cdb-lucene that could enable such highlighting

Thank you!

rnewson commented 9 years ago

hm, good question, I don't know. If you're interested, https://lucene.apache.org/core/4_10_2/highlighter/org/apache/lucene/search/vectorhighlight/package-summary.html