On Mon, May 9, 2011 at 5:07 AM, solrfan <a2701...@jnxjn.com> wrote: > Hi, I would like to write my own filter. I try to use the following class: > But this is a problem for me. The one-to-one mapping. I want to map a given > Token, for example "a" to three Tokens "a1", "a2", "a3". I want to do a > one-to-one mapping to "b" -> "c" too, and I want to have the possibility to > remove a Token "d" -> "". > > How can I do this, when the "next" methods returns only one Token, not a > collection?
Buffer them internally. Look at SynonymFilter.java, it does exactly this. Tom > > > Thanks! > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Custom-filter-development-tp2918459p2918459.html > Sent from the Solr - User mailing list archive at Nabble.com. >