Package io.constructor.client
Class SearchabilityV2Request
java.lang.Object
io.constructor.client.SearchabilityV2Request
Constructor.io Searchability V2 Request.
This request class is used for single v2 searchability configuration operations (GET/PATCH/DELETE /v2/searchabilities/{name}).
-
Constructor Summary
ConstructorsConstructorDescriptionSearchabilityV2Request(SearchabilityV2 searchability, String name) Creates a searchability v2 request with default section "Products"SearchabilityV2Request(SearchabilityV2 searchability, String name, String section) Creates a searchability v2 requestSearchabilityV2Request(String name) Creates a searchability v2 request for GET/DELETE operations with default sectionSearchabilityV2Request(String name, String section) Creates a searchability v2 request for GET/DELETE operations (no body needed) -
Method Summary
Modifier and TypeMethodDescriptiongetName()voidvoidsetSearchability(SearchabilityV2 searchability) voidsetSection(String section) voidsetSkipRebuild(Boolean skipRebuild)
-
Constructor Details
-
SearchabilityV2Request
Creates a searchability v2 request- Parameters:
searchability- the searchability configuration to be created/updatedname- the name of the searchability fieldsection- the section to which the searchability belongs
-
SearchabilityV2Request
Creates a searchability v2 request with default section "Products"- Parameters:
searchability- the searchability configuration to be created/updatedname- the name of the searchability field
-
SearchabilityV2Request
Creates a searchability v2 request for GET/DELETE operations (no body needed)- Parameters:
name- the name of the searchability fieldsection- the section to which the searchability belongs
-
SearchabilityV2Request
Creates a searchability v2 request for GET/DELETE operations with default section- Parameters:
name- the name of the searchability field
-
-
Method Details
-
getSearchability
- Returns:
- the searchability configuration
-
setSearchability
- Parameters:
searchability- the searchability configuration to set
-
getName
- Returns:
- the name of the searchability field
-
setName
- Parameters:
name- the name to set
-
getSection
- Returns:
- the section
-
setSection
- Parameters:
section- the section to set
-
getSkipRebuild
- Returns:
- whether to skip index rebuild
-
setSkipRebuild
- Parameters:
skipRebuild- whether to skip index rebuild
-