You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Michael Bykov <m....@gmail.com> on 2012/07/06 19:52:30 UTC
couchdb-lucene Fast-Vector-Highlighter
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
Re: couchdb-lucene Fast-Vector-Highlighter
Posted by Michael Bykov <m....@gmail.com>.
2012/7/7 Robert Newson <rn...@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
Re: couchdb-lucene Fast-Vector-Highlighter
Posted by Robert Newson <rn...@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.
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