He is referring to the org.apache.lucene.search.Filter classes. Michael,
I did a search too and I could not really find any useful tutorials on the subject. You can take a look at how this is implemented in the Spatial Solr Plugin by the JTeam http://www.jteam.nl/news/spatialsolr.html Their code, I believe, uses the bits() method which has been deprecated in Lucene 2.9 and removed in 3.0. The getDocIdSet() method returns a BitSet object which you can prepare from org.apache.lucene.util.OpenBitSet I think there is probably some example in the new version (2nd Edition) of the *Lucene In Action *book on how to do something similar. You should check it out from the Manning Early Access Program page. http://www.manning.com/hatcher3/ You should also check out the Solr 1.5 source code for how some of the Lucene Filter classes are designed. On Sat, Apr 10, 2010 at 5:23 AM, MitchK <mitc...@web.de> wrote: > > Hi Michael, > > do you mean a TokenFilter like StopWordFilter? > > If you like, you could post some code, so one can help you. > It's really easy to develop some TokenFilters, if you have a look at > already > implemented ones. > > Kind regards > - Mitch > -- > View this message in context: > http://n3.nabble.com/Tutorials-for-developing-filter-plugins-tp706874p709897.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- "Good Enough" is not good enough. To give anything less than your best is to sacrifice the gift. Quality First. Measure Twice. Cut Once. http://www.israelekpo.com/