- Search
New features for premium search
Since introducing Elasticsearch-powered Premium Search for products, we've made significant improvements based on implementation feedback and performance monitoring.
Premium search for admin endpoints
The Premium Search engine now powers both v1/me/products (buyer experience) and v1/products (admin experience). For detailed features, review the original Premium Search article.
Rollout schedule:
- New organizations enabled by default (since February 2020)
- Selected clients/partners transitioned individually
- Test/Dev organizations transitioned (April 3, 2020)
- All remaining organizations transitioned (April 20, 2020)
- Remove Product xp indexes and disable new index creation*
*Premium Search automatically enables searching, sorting, and filtering for all xp fields.
Important behavioral note
While API specifications remain unchanged, cached data behavior requires attention:
- Write operations (
POST/PUT/PATCH) return fresh, consistent data GEToperations may return cached data- Immediate
GETafter write may return stale data
Organizations created after February 12, 2020 already have these behaviors enabled.
New searchType parameter
To provide more control over search results, we've introduced the searchType parameter:
| Type | Description |
|---|---|
AnyTerm | Default. Any search word must appear in any searchable field |
AllTermsAnyField | All search words must appear across searchable fields |
AllTermsSameField | All search words must appear in the same searchable field |
ExactPhrase | Exact phrase match (case insensitive) in any searchable field |
ExactPhrasePrefix | Like ExactPhrase, but allows incomplete last word (ideal for type-ahead) |
The parameter is available on:
v1/productsv1/me/products
Usage recommendations
Consider these search behavior principles:
- Result ranking remains consistent across search types
- Exact phrase matches rank higher than individual terms
- More term matches rank higher than fewer
IDandNamematches rank higher thanDescription- Users rarely explore beyond first page of well-ranked results
- Overly restrictive searches may hide relevant results