public class SimSearchUtils extends Object
| Constructor and Description |
|---|
SimSearchUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bruteForceFVRerank(List<org.apache.jackrabbit.oak.plugins.index.search.PropertyDefinition> sp,
org.apache.lucene.search.TopDocs docs,
org.apache.lucene.search.IndexSearcher indexSearcher) |
static org.apache.lucene.search.Query |
getSimilarityQuery(List<org.apache.jackrabbit.oak.plugins.index.search.PropertyDefinition> sp,
org.apache.lucene.index.IndexReader reader,
String queryString) |
static byte[] |
toByteArray(List<Double> values) |
static byte[] |
toByteArray(String value) |
static List<Double> |
toDoubles(byte[] array) |
static String |
toDoubleString(byte[] bytes) |
public static String toDoubleString(byte[] bytes)
public static byte[] toByteArray(String value)
public static org.apache.lucene.search.Query getSimilarityQuery(List<org.apache.jackrabbit.oak.plugins.index.search.PropertyDefinition> sp, org.apache.lucene.index.IndexReader reader, String queryString)
public static void bruteForceFVRerank(List<org.apache.jackrabbit.oak.plugins.index.search.PropertyDefinition> sp, org.apache.lucene.search.TopDocs docs, org.apache.lucene.search.IndexSearcher indexSearcher) throws IOException
IOExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.