You can use QueryWrapperFilter to exclude some documents from the result set such as
Filter filter = new QueryWrapperFilter(new QueryParser("ID", analyzer).Parse("sampleid")); or Filter filter = new QueryWrapperFilter(new TermQuery(new Term("ID","sampleid"))); depending on ID field is indexed as "analyzed" or not. DIGY -----Original Message----- From: Trevor Watson [mailto:twat...@datassimilate.com] Sent: Thursday, November 10, 2011 6:52 PM To: lucene-net-user@lucene.apache.org Subject: [Lucene.Net] Excluding search results 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 ----- Checked by AVG - www.avg.com Version: 2012.0.1869 / Virus Database: 2092/4608 - Release Date: 11/10/11