I need to test if certain documents match a query before actually indexing them. How would you do this? One of the possibilities I’m thinking of is running a plain lucene index on memory (ramdisk?) and follow a index -> test query -> delete loop for every new document I have before sending it to the actual Solr server.
Can anyone think of a better solution for this problem?
Thanks a lot.
Update:
Looks like this could be a good starting point: http://www.lucenetutorial.com/lucene-in-5-minutes.html
Since Solr allows transactions / commits you can actually index them and before you do commit do state a delete query which removes all non matching documents.