/** * Set the query from a string. This will not be parsed into a query tree until that tree is attempted accessed. * Note that setting this will clear the current query tree. Usually, this should <i>not</i> be modified - * changes to the query should be implemented as modifications on the query tree structure. * <p> * Passing null causes this to be set to an empty string. */ public void setQueryString(String queryString) { if (queryString == null) queryString=""; this.queryString = queryString; clearQueryTree(); }
/** * Sets the document selection criterion of the query. * * @param where the documents to select as a JSON string on the format specified in * <a href="https://docs.vespa.ai/documentation/reference/select-reference.html">the select reference doc</a> */ public void setWhereString(String where) { this.where = where; parent.getModel().setType(SELECT); // This replaces the current query parent.getModel().clearQueryTree(); }