lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadav Har'El" <...@math.technion.ac.il>
Subject Re: Payloads
Date Thu, 18 Jan 2007 16:01:15 GMT
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message