You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2022. It is now read-only.
* Get the value of <b>deprecated</b> {@code facetFilters} parameter.
363
+
*
364
+
* @deprecated Use {@link Query#getFilters()} instead.
365
+
*/
356
366
publicJSONArraygetFacetFilters() {
357
367
try {
358
368
Stringvalue = get(KEY_FACET_FILTERS);
@@ -368,10 +378,23 @@ public JSONArray getFacetFilters() {
368
378
369
379
privatestaticfinalStringKEY_FILTERS = "filters";
370
380
381
+
/**
382
+
* Filter the query with numeric, facet or/and tag filters.
383
+
* <p>
384
+
* The syntax is a SQL like syntax, you can use the OR and AND keywords. The syntax for the underlying numeric, facet and tag filters is the same than in the other filters:
385
+
* {@code available=1 AND (category:Book OR NOT category:Ebook) AND _tags:public date: 1441745506 TO 1441755506 AND inStock > 0 AND author:"John Doe"}
386
+
*
387
+
* @param filters a string following the given syntax.
388
+
* @return the {@link Query} for chaining.
389
+
*/
371
390
public@NonNullQuerysetFilters(Stringfilters) {
372
391
returnset(KEY_FILTERS, filters);
373
392
}
374
393
394
+
/**
395
+
* Get the numeric, facet or/and tag filters for this Query.
0 commit comments