You'd probably be better off attaching the IDs to the lucene documents -- crossing the boundary will be expensive.
>From there it is pretty easy to use BooleanQuery and attach the ID(s) you wish to filter as TermQueries with the BooleanClause.Occour.MUST_NOT flag. On Thu, Nov 10, 2011 at 11:51 AM, Trevor Watson <twat...@datassimilate.com> wrote: > We'd like to have the ability to exclude items from a search given the ID > (the ID is a link between a database for frequently updated information and > the index for searching). > > Optimally, it'd be great if we could just run the query vs the index AND the > database, but I haven't found anything for doing that (using SQLite). > > Would this be a custom Filter? I've dealt with custom analyzers in the > past, but that wouldn't be useful here. Is there an existing filter where > we can say "ignore these documents?" > > Thanks in advance. > > Trevor Watson >