lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lior Barnea <Bar...@3i-mind.com>
Subject RE: Custom tokens creation in Lucene/Solr
Date Sun, 04 Sep 2011 14:07:21 GMT
I can add the metadata to a token's payload BUT there is not guarantee that other filters wont
mess/delete the payload or the token itself in the analyzer chain... 

-----Original Message-----
From: Saar Carmi [mailto:saarcarmi@gmail.com] 
Sent: Sunday, September 04, 2011 5:00 PM
To: java-user@lucene.apache.org
Subject: Re: Custom tokens creation in Lucene/Solr

Have you tried to look at Payloads ?

Saar

On Sun, Sep 4, 2011 at 10:45 AM, Lior Barnea <Barnea@3i-mind.com> wrote:

> Hi all,
>
> I want to add user created tokens to a text field at index time, I 
> want to pass some metadata to a custom filter I wrote that adds tokens 
> to the tokenstream.
>
> I tried to add the metadata to the text and strip it with a custom 
> tokenizer but I didn't find a good way to pass it to my filter (which 
> has to run last, cause I don't want and other filters working on my custom tokens).
>
> (Working with Lucene 3.0.3 / Solr 3.3.0)
>
> Any ideas ?
>
> Best regards,
> Lior Barnea,
> 3i-MIND.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message