Emmanuel,
I have the index creation working. About searching though,
the user will have to supply the similarity class. There is no way of knowing
what similarity was use to build an index and Similarities must be kept the
same between indexing and searching or results are undefined. The query had to
be told. Do you want to have a similarity setter in FullTextQueryImpl or an
overloaded constructor.
When we created the index, each entity could have its own
similarity. If this is the case the similarity will have to be identified by
entity. To do this we will have to build a MultiSearcher instead of a
MultiReader. The Similarity can only be set on Searchables. I don’t think
this is a big issue, it’s not that big or difficult of a change to make.
Thoughts?
John G.