public class RandomSimilarity extends PerFieldSimilarityWrapper
The choices are 'sticky', so the selected algorithm is always used for the same field.
Similarity.SimScorer
Constructor and Description |
---|
RandomSimilarity(Random random) |
Modifier and Type | Method and Description |
---|---|
Similarity |
get(String field)
Returns a
Similarity for scoring a field. |
String |
toString() |
computeNorm, scorer
public RandomSimilarity(Random random)
public Similarity get(String field)
PerFieldSimilarityWrapper
Similarity
for scoring a field.get
in class PerFieldSimilarityWrapper
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.