Example usage for Java org.apache.lucene.document FeatureField fields, constructors, methods, implement or subclass
The text is from its open source code.
Query | newSaturationQuery(String fieldName, String featureName, float weight, float pivot) Return a new Query that will score documents as weight * S / (S + pivot) where S is the value of the static feature. |
Query | newSaturationQuery(String fieldName, String featureName, float weight, Float pivot) |
Query | newSaturationQuery(String fieldName, String featureName) Same as #newSaturationQuery(String,String,float,float) but 1f is used as a weight and a reasonably good default pivot value is computed based on index statistics and is approximately equal to the geometric mean of all values that exist in the index. |
TokenStream | tokenStream(Analyzer analyzer, TokenStream reuse) |