I have an existing index which was created with DefaultSimilarity. I
want to update the index to use my own Similarity class (need to change
the lengthNorm). I wrote a quick script which creates a new index,
calls setSimilarity(new MySimilarity) for that indexes IndexWriter, and
then calls writer.addIndexes(Directory[] dirList) where dirList contains
my previously existing index.
Initially, I had anticipated that doing this would updated the
Similarity as part of the add process. But after running some tests,
this does not appear to be the case.
Is there some way I can update the Similarity on an index without having
to query out each document, and re-indexing in a new index?
Thanks,
Shane
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org