lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Kulkarni <>
Subject setting different similarity in config (.alg) file at indexing
Date Wed, 05 Sep 2012 12:58:21 GMT

For Lucene core 4.0. BETA, under the search.similarities help page it says
the following
"To change Similarity<>,
one must do so for both indexing and searching, and the changes must happen
before either of these actions take place."
How do I set a different similarity measure while indexing using the alg
I know we can use the IndexWriterConfig's setSimilarity using code but am
not sure what to use in the config file.

 I want to use a different similarity measure for search.

Thank you.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message