On Thu, Jan 18, 2007, Michael Busch wrote about "Re: Payloads": > As you pointed out it is still possible to have per-doc payloads. You > need an analyzer which adds just one Token with payload to a specific > field for each doc. I understand that this code would be quite ugly on > the app side. A more elegant solution might be LUCENE-580. With that > patch you are able to add pre-analyzed fields (i. e. TokenStreams) to a > Document without having to use an analyzer. You could use a TokenStream
Thanks, this sounds like a good idea. In fact, I could live with something even simpler: I want to be able to create a Field with a single token (with its payload). If I need more than one of these tokens with payloads, I can just add several fields with the same name (this should work, although the description of LUCENE-580 suggests that it might have a bug in this area). I'll add a comment about this use-case to LUCENE-580. -- Nadav Har'El | Thursday, Jan 18 2007, 28 Tevet 5767 IBM Haifa Research Lab |----------------------------------------- |If glory comes after death, I'm not in a http://nadav.harel.org.il |hurry. (Latin proverb) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]