Class DenseVectorQuery

java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.vectors.DenseVectorQuery
Direct Known Subclasses:
DenseVectorQuery.Bytes, DenseVectorQuery.Floats

public abstract class DenseVectorQuery extends org.apache.lucene.search.Query
Exact knn query. Will iterate and score all documents that have the provided dense vector field in the index.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(org.apache.lucene.search.QueryVisitor queryVisitor)
     

    Methods inherited from class org.apache.lucene.search.Query

    classHash, createWeight, equals, hashCode, rewrite, rewrite, sameClassAs, toString, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • field

      protected final String field
  • Constructor Details

    • DenseVectorQuery

      public DenseVectorQuery(String field)
  • Method Details

    • visit

      public void visit(org.apache.lucene.search.QueryVisitor queryVisitor)
      Specified by:
      visit in class org.apache.lucene.search.Query