Yes, you'll need to enable term vectors, add
{"termvector":"with_positions_offsets"} to the your "add" call or tweak the
defaults object for the index for all fields.
B.
On 6 Jul 2012, at 18:52, Michael Bykov wrote:
> Hi,
>
> I add in pom.file
>
> <dependency>
> <groupId>org.apache.lucene</groupId>
> <artifactId>lucene-highlighter</artifactId>
> <version>3.6.0</version>
> </dependency>
>
> restarted mvn,
>
> and CL works as usual great, and I got an "highlights" field in
> results, but it is empty.
>
> with
> http://localhost:5984/lucene/_fti/_design/lucene/by_title?q=some&highlights=1
>
> I've got correct results with "highlights":{"default":[]}, ...
>
> May be I have missed something to make highliter work?
>
> I have latest CL, couchdb-lucene-0.9.0-SNAPSHOT
>
>
> --
> М.
>
> http://diglossa.ru
> xmpp://[email protected]