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, scorerpublic RandomSimilarity(Random random)
public Similarity get(String field)
PerFieldSimilarityWrapperSimilarity for scoring a field.get in class PerFieldSimilarityWrapperCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.