Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Elastic Path Search Profiles API

Search Profiles are configuration objects that control how search queries are executed. They provide a powerful way to customize search relevance, filtering, and ranking without requiring code changes, enabling merchandisers and business users to optimize the search experience.### How Search Profiles WorkA Search Profile defines:- **Which fields to search**: Select which product fields are included in search queries- **Field weights**: Assign relative importance to each field for relevance ranking- **Default filters**: Apply business rules that filter results for all searches- **Boost rules**: Promote or demote products based on specific conditions- **Match type**: Control how scores from multiple fields are combinedWhen a search request is made, the system uses the specified profile (or the default profile) to configure the search behavior.### Search Profile Components| Component | Description ||-------------------|-------------------------------------------------------------------------------------------|| `slug` | Unique identifier used to reference the profile in search requests || `fields` | List of fields to search with optional weights for relevance ranking || `filters` | Default filter expressions applied to all searches using this profile || `boosts` | Rules for promoting or demoting products based on conditions || `text_match_type` | How to combine scores when multiple fields match (`max_score`, `max_weight`, `sum_score`) |### Field WeightsField weights control how important each field is when ranking search results. Higher weights mean matches in that field contribute more to the relevance score. Weights must be in the range `[0, 15]`.**Example**: A profile with `name` (weight 10) and `description` (weight 5) will rank products with search term matches in the name higher than those with matches only in the description.### FiltersProfile filters enforce business rules that apply to all searches:- Ensure only live/published products appear in results- Restrict results to specific categories or channels- Hide products based on visibility settingsMultiple filters are combined with OR logic, then ANDed with any filters in the search request.### Boost RulesBoost rules allow you to promote or demote products in search results:- **Positive weights**: Push matching products to the top of results- **Negative weights**: Push matching products to the bottom (burying)- **Zero weight**: No effect on rankingRules are evaluated in weight order, and the first matching rule determines the product's boost.### Text Match Types| Type | Description ||--------------|----------------------------------------------------------------------------------------|| `max_score` | Uses the highest score from any single matching field. Prioritizes match quality. || `max_weight` | Uses the score from the highest-weighted matching field. Prioritizes field importance. || `sum_score` | Sums weighted scores from all matching fields. Rewards multi-field matches. |### Default ProfileEach store has a default search profile that is used when no profile is specified in the search request. You can set any profile as the default using the set default endpoint.### Use Cases- **A/B testing**: Create multiple profiles with different configurations to test search relevance- **Channel optimization**: Different profiles for web, mobile, and B2B channels- **Seasonal merchandising**: Profiles that boost seasonal or promotional products- **Customer segmentation**: Different ranking strategies for different customer tiers

Elastic Path Search Profiles API is one of 100 APIs that Elastic Path publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Search Profiles. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 6 operations across 3 paths, and defines 20 schemas. It is described by OpenAPI 3.1.0, at version 25.1126.6886238.

Requests are made against 2 base URLs: https://useast.api.elasticpath.com, https://euwest.api.elasticpath.com.

6 operations 3 paths 20 schemas 1 DELETE2 GET2 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
25.1126.6886238
Base URL
https://useast.api.elasticpath.com
Authentication
HTTP Bearer
License
Resource Areas
1

Authentication & Security 1

Elastic Path Search Profiles API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerToken). By default, every request must be authenticated.

Paths & Operations 6

Across 3 paths, the API surfaces 6 operations — 1 DELETE, 2 GET, 2 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Search Profiles 6

Search Profiles are configuration objects that control how search queries are executed. They provide a powerful way to customize search relevance, filtering, and ranking without r…

POST
/pcm/catalogs/search-profiles
Create search profile
createSearchProfile body → 201400500
GET
/pcm/catalogs/search-profiles
List search profiles
listSearchProfiles → 200400500
GET
/pcm/catalogs/search-profiles/{search_profile_id}
Get search profile
getSearchProfile 2 params → 200400404500
PUT
/pcm/catalogs/search-profiles/{search_profile_id}
Update search profile
updateSearchProfile 1 param body → 200400403404500
DELETE
/pcm/catalogs/search-profiles/{search_profile_id}
Delete search profile
deleteSearchProfile 1 param → 204400403500
POST
/pcm/catalogs/search-profiles/{search_profile_id}/default
Set search profile as default
setDefaultSearchProfile 1 param → 200400403404500

Schemas 20

The contract defines 20 schemas that model the data the API accepts and returns. The most detailed are SearchProfileAttributes (11 properties), SearchProfileUpdateAttributes (11 properties), TypoTolerance (10 properties), SearchProfile (4 properties). Each schema is shown below with its type and property counts.

SearchProfileAttributes
object
11 properties 4 required
SearchProfile
object
4 properties 4 required
Error
object
4 properties 2 required
ErrorResponse
object
1 property 1 required
SearchField
object
4 properties 1 required
ResourceOwner
string
The resource owner, either organization or store.
ListResponseMeta
object
1 property 1 required
SearchProfileResponse
object
1 property 1 required
SearchProfileCreateRequestData
object
2 properties 2 required
ListSearchProfilesResponse
object
2 properties 2 required
SearchBoostRule
object
Defines a boosting rule that assigns a score to products matching a specific field value.
2 properties 2 required
TextMatchType
string
When a search profile has multiple fields defined, this parameter determines how the representative text match score of a product is calculated. - maxscore (De…
ListResponseMetaResults
object
Contains the results for the entire collection.
1 property 1 required
SearchProfileType
string
Represents the type of object being returned. Always catalogsearchprofile.
SearchProfileUpdateRequestData
object
3 properties 3 required
SearchProfileUpdateRequest
object
1 property 1 required
SearchProfileMeta
object
2 properties 2 required
SearchProfileUpdateAttributes
object
11 properties
TypoTolerance
object
Optional typo tolerance configuration applied at search time. All fields are optional; defaults are noted on each field.
10 properties
SearchProfileCreateRequest
object
1 property 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

elastic-path-search-profiles-api-openapi.yml Raw ↑

Other APIs Elastic Path publishes across the network.

Elastic Path GraphQL API
Elastic Path Account Addresses API
Elastic Path Account Authentication Settings API
Elastic Path Account Cart Associations API
Elastic Path Account Management Authentication API
Elastic Path Account Members API
Elastic Path Account Membership API
Elastic Path Account Membership Settings API
Elastic Path Account Tags API
Elastic Path Accounts API
Elastic Path Administrator Latest Releases Catalog API API
Elastic Path Application Keys API