Class LatentVectorQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- ai.preferred.cerebro.index.search.structure.LatentVectorQuery
-
public class LatentVectorQuery extends org.apache.lucene.search.Query
A Query that matches Documents by the hashcode produced by their latent vector.
-
-
Constructor Summary
Constructors Constructor Description LatentVectorQuery(double[] vec, LocalitySensitiveHash lsh)
LatentVectorQuery(double[] vec, LocalitySensitiveHash lsh, org.apache.lucene.index.TermContext states)
LatentVectorQuery(double[] vec, org.apache.lucene.index.Term t)
LatentVectorQuery(double[] vec, org.apache.lucene.index.Term t, org.apache.lucene.index.TermContext states)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores, float boost)
boolean
equals(java.lang.Object other)
org.apache.lucene.index.Term
getTerm()
double[]
getVec()
int
hashCode()
java.lang.String
toString(java.lang.String field)
-
-
-
Constructor Detail
-
LatentVectorQuery
public LatentVectorQuery(double[] vec, LocalitySensitiveHash lsh)
-
LatentVectorQuery
public LatentVectorQuery(double[] vec, org.apache.lucene.index.Term t)
-
LatentVectorQuery
public LatentVectorQuery(double[] vec, LocalitySensitiveHash lsh, org.apache.lucene.index.TermContext states)
-
LatentVectorQuery
public LatentVectorQuery(double[] vec, org.apache.lucene.index.Term t, org.apache.lucene.index.TermContext states)
-
-
Method Detail
-
getTerm
public org.apache.lucene.index.Term getTerm()
-
getVec
public double[] getVec()
-
toString
public java.lang.String toString(java.lang.String field)
- Specified by:
toString
in classorg.apache.lucene.search.Query
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
createWeight
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores, float boost) throws java.io.IOException
- Overrides:
createWeight
in classorg.apache.lucene.search.Query
- Throws:
java.io.IOException
-
-