@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Facet extends Object implements Serializable, Cloneable, StructuredPojo
Information about a document attribute or field. You can use document attributes as facets.
For example, the document attribute or facet "Department" includes the values "HR", "Engineering", and "Accounting". You can display these values in the search results so that documents can be searched by department.
You can display up to 10 facet values per facet for a query. If you want to increase this limit, contact Support.
Constructor and Description |
---|
Facet() |
Modifier and Type | Method and Description |
---|---|
Facet |
clone() |
boolean |
equals(Object obj) |
String |
getDocumentAttributeKey()
The unique key for the document attribute.
|
List<Facet> |
getFacets()
An array of document attributes that are nested facets within a facet.
|
Integer |
getMaxResults()
Maximum number of facet values per facet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocumentAttributeKey(String documentAttributeKey)
The unique key for the document attribute.
|
void |
setFacets(Collection<Facet> facets)
An array of document attributes that are nested facets within a facet.
|
void |
setMaxResults(Integer maxResults)
Maximum number of facet values per facet.
|
String |
toString()
Returns a string representation of this object.
|
Facet |
withDocumentAttributeKey(String documentAttributeKey)
The unique key for the document attribute.
|
Facet |
withFacets(Collection<Facet> facets)
An array of document attributes that are nested facets within a facet.
|
Facet |
withFacets(Facet... facets)
An array of document attributes that are nested facets within a facet.
|
Facet |
withMaxResults(Integer maxResults)
Maximum number of facet values per facet.
|
public void setDocumentAttributeKey(String documentAttributeKey)
The unique key for the document attribute.
documentAttributeKey
- The unique key for the document attribute.public String getDocumentAttributeKey()
The unique key for the document attribute.
public Facet withDocumentAttributeKey(String documentAttributeKey)
The unique key for the document attribute.
documentAttributeKey
- The unique key for the document attribute.public List<Facet> getFacets()
An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
public void setFacets(Collection<Facet> facets)
An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
facets
- An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
public Facet withFacets(Facet... facets)
An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
NOTE: This method appends the values to the existing list (if any). Use
setFacets(java.util.Collection)
or withFacets(java.util.Collection)
if you want to override the
existing values.
facets
- An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
public Facet withFacets(Collection<Facet> facets)
An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
facets
- An array of document attributes that are nested facets within a facet.
For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.
You can only have one nested facet within a facet. If you want to increase this limit, contact Support.
public void setMaxResults(Integer maxResults)
Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.
maxResults
- Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet
values to less than 10. If you want to increase the default, contact Support.public Integer getMaxResults()
Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.
public Facet withMaxResults(Integer maxResults)
Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.
maxResults
- Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet
values to less than 10. If you want to increase the default, contact Support.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.