Class SearchabilityV2Request

java.lang.Object
io.constructor.client.SearchabilityV2Request

public class SearchabilityV2Request extends Object
Constructor.io Searchability V2 Request.

This request class is used for single v2 searchability configuration operations (GET/PATCH/DELETE /v2/searchabilities/{name}).

  • Constructor Details

    • SearchabilityV2Request

      public SearchabilityV2Request(SearchabilityV2 searchability, String name, String section)
      Creates a searchability v2 request
      Parameters:
      searchability - the searchability configuration to be created/updated
      name - the name of the searchability field
      section - the section to which the searchability belongs
    • SearchabilityV2Request

      public SearchabilityV2Request(SearchabilityV2 searchability, String name)
      Creates a searchability v2 request with default section "Products"
      Parameters:
      searchability - the searchability configuration to be created/updated
      name - the name of the searchability field
    • SearchabilityV2Request

      public SearchabilityV2Request(String name, String section)
      Creates a searchability v2 request for GET/DELETE operations (no body needed)
      Parameters:
      name - the name of the searchability field
      section - the section to which the searchability belongs
    • SearchabilityV2Request

      public SearchabilityV2Request(String name)
      Creates a searchability v2 request for GET/DELETE operations with default section
      Parameters:
      name - the name of the searchability field
  • Method Details

    • getSearchability

      public SearchabilityV2 getSearchability()
      Returns:
      the searchability configuration
    • setSearchability

      public void setSearchability(SearchabilityV2 searchability)
      Parameters:
      searchability - the searchability configuration to set
    • getName

      public String getName()
      Returns:
      the name of the searchability field
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getSection

      public String getSection()
      Returns:
      the section
    • setSection

      public void setSection(String section)
      Parameters:
      section - the section to set
    • getSkipRebuild

      public Boolean getSkipRebuild()
      Returns:
      whether to skip index rebuild
    • setSkipRebuild

      public void setSkipRebuild(Boolean skipRebuild)
      Parameters:
      skipRebuild - whether to skip index rebuild