public class SchemaFacetRequest extends FacetRequest
FacetRequest.SortBy
DEFAULT_MAX_MEMORY_USAGE, DEFAULT_PRIMARY_SORT, DEFAULT_SAMPLE_MODE, DEFAULT_SECONDARY_SORT, DEFAULT_SORT_BY
Constructor and Description |
---|
SchemaFacetRequest() |
SchemaFacetRequest(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addSchemaField(String name)
Add a field to return schema field information.
|
boolean |
equals(Object other) |
String |
getField()
Get the field to request a facet for.
|
FieldExpression |
getFieldExpression()
Get the
FieldExpression to request a facet for. |
Set<String> |
getSchemaFields()
Get the schema fields being requested for this request.
|
List<SchemaField.Type> |
getSchemaTypes()
Get the allowed types for returned fields.
|
int |
hashCode() |
boolean |
isCountBuckets()
Get if buckets will be counted.
|
boolean |
isCountValues()
Get if buckets should include a value count in addition to a document count.
|
boolean |
isFacetFields()
true if buckets for facet fields should be returned. |
boolean |
isFacetFinder()
true if the facet finder can replace this FacetRequest with a suggested FacetRequest. |
boolean |
isIndexedFields()
true if buckets for indexed fields should be returned. |
boolean |
isRealTimeFields()
Get if real time fields are requested instead of regular fields.
|
boolean |
isSortFields()
true if buckets for sort fields should be returned. |
boolean |
isStoredFields()
true if buckets for stored fields should be returned. |
void |
setCountBuckets(boolean value)
Set if buckets will be counted.
|
void |
setCountValues(boolean value)
Set if buckets should include a value count in addition to a document count.
|
void |
setFacetFields(boolean value)
Set if facet fields should be returned.
|
void |
setFacetFinder(boolean value)
Set if FacetFinder is allowed to provide a suggestion for this FacetRequest.
|
void |
setField(String name)
Set the field to request a facet for.
|
void |
setFieldExpression(FieldExpression value)
Set the
FieldExpression to request a facet for. |
void |
setIndexedFields(boolean value)
Set if indexed fields should be returned.
|
void |
setRealTimeFields(boolean value)
Set if real time fields are requested instead of regular fields.
|
void |
setSchemaTypes(List<SchemaField.Type> value) |
void |
setSchemaTypes(SchemaField.Type... args) |
void |
setSortFields(boolean value)
Set if sort fields should be returned.
|
void |
setStoredFields(boolean value)
Set if stored fields should be returned.
|
addName, addParameter, addParameters, clone, getBucketComparator, getDistributedMaxBuckets, getDistributedMinBucketCount, getMaxBuckets, getMaxMemoryUsage, getMinBucketCount, getName, getPrimarySortOrder, getRawDistributedMaxBuckets, getRawDistributedMinBucketCount, getRawMaxBuckets, getRawMinBucketCount, getSecondarySortOrder, getShallowMode, getSortBy, isCalculateStatistics, isFacetTokens, setCalculateStatistics, setDefaults, setDistributedMaxBuckets, setDistributedMaxBuckets, setDistributedMinBucketCount, setDistributedMinBucketCount, setFacetTokens, setMaxBuckets, setMaxBuckets, setMaxMemoryUsage, setMinBucketCount, setMinBucketCount, setName, setPrimarySortOrder, setSecondarySortOrder, setShallowMode, setSortOrder, setSortOrder, setSortOrder, toString, valueOf
public SchemaFacetRequest()
public SchemaFacetRequest(String name)
public void setField(String name)
setField
in class FacetRequest
public String getField()
getField
in class FacetRequest
public FieldExpression getFieldExpression()
FacetRequest
FieldExpression
to request a facet for.getFieldExpression
in class FacetRequest
public void setFieldExpression(FieldExpression value)
FacetRequest
FieldExpression
to request a facet for.setFieldExpression
in class FacetRequest
public 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 FacetRequest
public void setFacetFinder(boolean value)
setFacetFinder
in class FacetRequest
public boolean isRealTimeFields()
public void setRealTimeFields(boolean value)
public List<SchemaField.Type> getSchemaTypes()
If empty, fields will be returned regardless of type.
public void setSchemaTypes(List<SchemaField.Type> value)
public void setSchemaTypes(SchemaField.Type... args)
public Set<String> getSchemaFields()
public void addSchemaField(String name)
If using this method, buckets will only be returned for the requested fields.
public boolean isStoredFields()
true
if buckets for stored fields should be returned.public void setStoredFields(boolean value)
public boolean isIndexedFields()
true
if buckets for indexed fields should be returned.public void setIndexedFields(boolean value)
public boolean isFacetFields()
true
if buckets for facet fields should be returned.public void setFacetFields(boolean value)
public boolean isSortFields()
true
if buckets for sort fields should be returned.public void setSortFields(boolean value)
public boolean isCountValues()
NOTE: when enabled, buckets will be returned as SchemaFieldBucket
, which will include a value count.
public void setCountValues(boolean value)
NOTE: when enabled, buckets will be returned as SchemaFieldBucket
, which will include a value count.
public boolean isCountBuckets()
NOTE: if buckets are not counted, the counts returned for the buckets will not be accurate. In this case, the existance of a bucket will indicate that the field is populated in 1 or more documents matching the query. This is useful for determining the minimal schema for the documents that match a query.
public void setCountBuckets(boolean value)
public int hashCode()
hashCode
in class FacetRequest
public boolean equals(Object other)
equals
in class FacetRequest
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.