public static interface Facet.Builder extends SdkPojo, CopyableBuilder<Facet.Builder,Facet>
| Modifier and Type | Method and Description |
|---|---|
Facet.Builder |
documentAttributeKey(String documentAttributeKey)
The unique key for the document attribute.
|
Facet.Builder |
facets(Collection<Facet> facets)
An array of document attributes that are nested facets within a facet.
|
Facet.Builder |
facets(Consumer<Facet.Builder>... facets)
An array of document attributes that are nested facets within a facet.
|
Facet.Builder |
facets(Facet... facets)
An array of document attributes that are nested facets within a facet.
|
Facet.Builder |
maxResults(Integer maxResults)
Maximum number of facet values per facet.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFacet.Builder documentAttributeKey(String documentAttributeKey)
The unique key for the document attribute.
documentAttributeKey - The unique key for the document attribute.Facet.Builder facets(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.
Facet.Builder facets(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.
Facet.Builder facets(Consumer<Facet.Builder>... 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.
This is a convenience method that creates an instance of theFacet.Builder avoiding the need to create one manually
via Facet.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #facets(List.
facets - a consumer that will call methods on
Facet.Builder#facets(java.util.Collection) Facet.Builder maxResults(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.Copyright © 2023. All rights reserved.