Hi,
I am not sure I understand your question correctly, but I will try to to provide some ideas depending on how I understood it.
You have a database with 500 000 books and out of these you selected 10. I am assuming this selection/search is not done via a Lucene query, otherwise you would already know that they match, right? Now you want to know if any of these 10 books matches a given Lucene query.
What you can do is build your Lucene query and then combine this query using a BooleanQuery with a set of TermQueries matching the entity ids. Each indexed document contains the entity id (use FullTextQuery.ID as field name). Run the BooleanQuery and see if you get a result.
Quote:
We want to take into account all Analyzers, Bridges etc. that are definied on entity Book.
Hibernate Search will do this automatically for you.
--Hardy