By browsing on this website you are agreeing to our 'Terms & Conditions' and the 'Privacy Policy' in regards to your rights and personal data handling.
Lazy query initializer containing array of all suggestions for executed query.
Example
Lazy<SuggestionQueryResult> suggestLazy = session
.query(Employee.class)
.suggestLazy();
SuggestionQueryResult suggest = suggestLazy.getValue(); // query will be executed here
String[] suggestions = suggest.getSuggestions();
ToFacetsLazy
public Lazy<FacetResults> toFacetsLazy(List<Facet> facets);
public Lazy<FacetResults> toFacetsLazy(List<Facet> facets, int start);
public Lazy<FacetResults> toFacetsLazy(List<Facet> facets, int start, Integer pageSize);
public Lazy<FacetResults> toFacetsLazy(String facetSetupDoc);
public Lazy<FacetResults> toFacetsLazy(String facetSetupDoc, int start);
public Lazy<FacetResults> toFacetsLazy(String facetSetupDoc, int start, Integer pageSize);
Lazy query initializer containing Facet query results with query Duration and list of Results - one entry for each term/range as specified in [FacetSetup] document or passed in parameters.
Example
QEmployee e = QEmployee.employee;
Lazy<FacetResults> facetsLazy = session
.query(Camera.class, "Camera/Costs")
.toFacetsLazy("facets/CameraFacets");
FacetResults facets = facetsLazy.getValue(); // query will be executed here
Map<String, FacetResult> results = facets.getResults();