Class Query.Builder

java.lang.Object
com.yahoo.search.Query.Builder
Enclosing class:
Query

public static class Query.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setRequest

      public Query.Builder setRequest(String query)
    • setRequest

      public Query.Builder setRequest(com.yahoo.container.jdisc.HttpRequest request)
    • getRequest

      public com.yahoo.container.jdisc.HttpRequest getRequest()
    • setRequestMap

      public Query.Builder setRequestMap(Map<String,String> requestMap)
      Sets the request mao to use explicitly. If not set, the request map will be getRequest().propertyMap()
    • getRequestMap

      public Map<String,String> getRequestMap()
    • setQueryProfile

      public Query.Builder setQueryProfile(CompiledQueryProfile queryProfile)
    • getQueryProfile

      public CompiledQueryProfile getQueryProfile()
      Returns the query profile of this query, or null if none.
    • setEmbedder

      public Query.Builder setEmbedder(com.yahoo.language.process.Embedder embedder)
    • setEmbedders

      public Query.Builder setEmbedders(Map<String,com.yahoo.language.process.Embedder> embedders)
    • getEmbedder

      public com.yahoo.language.process.Embedder getEmbedder()
    • getEmbedders

      public Map<String,com.yahoo.language.process.Embedder> getEmbedders()
    • setZoneInfo

      public Query.Builder setZoneInfo(ai.vespa.cloud.ZoneInfo zoneInfo)
    • getZoneInfo

      public ai.vespa.cloud.ZoneInfo getZoneInfo()
    • setSchemaInfo

      public Query.Builder setSchemaInfo(SchemaInfo schemaInfo)
    • getSchemaInfo

      public SchemaInfo getSchemaInfo()
    • build

      public Query build()
      Creates a new query from this builder. No properties are required to before calling this.