public class FilterBasedFacetRequest extends FacetRequest implements Iterable<Map.Entry<String,Query>>
Queries.
Each query that is added to this request will generate a hit count that would occur if this query were applied to the
QueryRequest. This hit count will be the bucket count in the returned facet response.
| Modifier and Type | Class and Description |
|---|---|
static class |
FilterBasedFacetRequest.LabeledFilter |
FacetRequest.SortByDEFAULT_MAX_MEMORY_USAGE, DEFAULT_PRIMARY_SORT, DEFAULT_SAMPLE_MODE, DEFAULT_SECONDARY_SORT, DEFAULT_SORT_BY| Constructor and Description |
|---|
FilterBasedFacetRequest() |
FilterBasedFacetRequest(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String label,
Query filter)
Request that a Bucket for
filter will be returned. |
protected int |
addParameters(StringBuilder buffer,
int index) |
boolean |
equals(Object other) |
Collection<Query> |
filters()
Get the filters for this FilterBasedFacetRequest.
|
Query |
getFilter(String label) |
Map<String,Query> |
getFilters() |
int |
hashCode() |
boolean |
isFacetFinder()
true if the facet finder can replace this FacetRequest with a suggested FacetRequest. |
Iterator<Map.Entry<String,Query>> |
iterator()
Get an iterator over all filters.
|
void |
setFacetFinder(boolean value)
Set if FacetFinder is allowed to provide a suggestion for this FacetRequest.
|
void |
setFilters(Map<String,Query> value) |
static FacetRequest |
valueOf(String value)
Parse a FacetRequest from a string.
|
addName, addParameter, clone, getBucketComparator, getDistributedMaxBuckets, getDistributedMinBucketCount, getField, getFieldExpression, getMaxBuckets, getMaxMemoryUsage, getMinBucketCount, getName, getPrimarySortOrder, getRawDistributedMaxBuckets, getRawDistributedMinBucketCount, getRawMaxBuckets, getRawMinBucketCount, getSecondarySortOrder, getShallowMode, getSortBy, isCalculateStatistics, isFacetTokens, setCalculateStatistics, setDefaults, setDistributedMaxBuckets, setDistributedMaxBuckets, setDistributedMinBucketCount, setDistributedMinBucketCount, setFacetTokens, setField, setFieldExpression, setMaxBuckets, setMaxBuckets, setMaxMemoryUsage, setMinBucketCount, setMinBucketCount, setName, setPrimarySortOrder, setSecondarySortOrder, setShallowMode, setSortOrder, setSortOrder, setSortOrder, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic FilterBasedFacetRequest()
public FilterBasedFacetRequest(String name)
public final boolean isFacetFinder()
true if the facet finder can replace this FacetRequest with a suggested FacetRequest.
This will replace a FacetRequest for a numeric field with a RangeFacetRequest when facet finder runs.
isFacetFinder in class FacetRequestpublic final void setFacetFinder(boolean value)
setFacetFinder in class FacetRequestpublic Collection<Query> filters()
protected int addParameters(StringBuilder buffer, int index)
addParameters in class FacetRequestpublic int hashCode()
hashCode in class FacetRequestpublic boolean equals(Object other)
equals in class FacetRequestpublic static FacetRequest valueOf(String value)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.