incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: couchdb-lucene Fast-Vector-Highlighter
Date Sat, 07 Jul 2012 15:00:53 GMT

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://m.bykov@jabber.ru


Mime
View raw message