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:[email protected]] Sent: Sunday, September 04, 2011 5:00 PM To: [email protected] 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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
