Class MultiQuery

java.lang.Object
org.zvec.binding.MultiQuery
All Implemented Interfaces:
AutoCloseable

public class MultiQuery extends Object implements AutoCloseable
High-level wrapper for zvec_multi_query_t.

Combines multiple SubQuery instances (e.g., vector + FTS) and supports re-ranking strategies such as RRF and weighted fusion.

  • Constructor Details

    • MultiQuery

      public MultiQuery()
  • Method Details

    • addSubQuery

      public void addSubQuery(SubQuery subQuery)
      Add a sub-query. The sub-query is copied; caller retains ownership.
    • getSubQueryCount

      public long getSubQueryCount()
    • setTopk

      public void setTopk(int topk)
    • getTopk

      public int getTopk()
    • setFilter

      public void setFilter(String filter)
    • getFilter

      public String getFilter()
    • setIncludeVector

      public void setIncludeVector(boolean include)
    • getIncludeVector

      public boolean getIncludeVector()
    • setOutputFields

      public void setOutputFields(String[] fields)
      Set the scalar fields to return.
      Parameters:
      fields - field names; null returns all fields, an empty array returns only the primary key / system columns
    • setRerankRrf

      public void setRerankRrf(int rankConstant)
      Enable reciprocal rank fusion (RRF) re-ranking.
    • setRerankWeighted

      public void setRerankWeighted(double[] weights)
      Enable weighted fusion re-ranking.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • destroy

      public void destroy()