Query.Builder (Google App Engine API for Java)

com.google.appengine.api.search

Class Query.Builder

  • java.lang.Object
    • com.google.appengine.api.search.Query.Builder
  • Enclosing class:
    Query


    public static class Query.Builder
    extends java.lang.Object
    A builder which constructs Query objects.
    • Method Detail

      • setOptions

        public Query.Builder setOptions(QueryOptions options)
        Sets the query options.
        Parameters:
        options - the QueryOptions to apply to the search results
        Returns:
        this builder
      • setFacetOptions

        public Query.Builder setFacetOptions(FacetOptions options)
        Sets the facet options.
        Parameters:
        options - the FacetOptions to apply to the facet results
        Returns:
        this builder
      • setEnableFacetDiscovery

        public Query.Builder setEnableFacetDiscovery(boolean value)
        Sets enable facet discovery flag.
        Returns:
        this builder
      • addReturnFacet

        public Query.Builder addReturnFacet(FacetRequest facet)
        Requests a facet to be returned with search results. The facet will be included in the result regardless of the number of values it has.
        Parameters:
        facet - the FacetRequest to be added to return facets.
        Return