incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bykov <m.by...@gmail.com>
Subject Re: couchdb-lucene Fast-Vector-Highlighter
Date Tue, 10 Jul 2012 15:06:18 GMT
2012/7/7 Robert Newson <rnewson@apache.org>:
>
> 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.
>

Robert,

Thank you!

M.





> 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
>



-- 
М.

http://diglossa.ru
xmpp://m.bykov@jabber.ru

Mime
View raw message