Minor Changes
-
Add More Like This (MLT) query support to SearchService and React search hooks (b0823f3)
- New public
SearchQuerytype models the/v1/searchquery payload (keyphrase,seedItemId,seedItemUrl) SearchParametersnow accepts optional mutually exclusiveseedItemIdandseedItemUrlfields for MLT widget queriesSearchService.search()validates that only one ofkeyphrase,seedItemId, orseedItemUrlis provided- Seed fields are sent only to
/v1/search;/v1/search/suggestcontinues to acceptkeyphraseonly - MLT responses map to the existing
results/total/facetsshape useSearchanduseInfiniteSearchacceptseedItemIdandseedItemUrl
- New public
-
Add typeahead suggest support to
SearchService(b0823f3)- New
SearchService.suggest()method callingPOST {edgeUrl}/v1/search/suggest - Accepts
searchIndexId, required non-emptykeyphrase, and optionallocale - Returns wire-shaped
querySuggestionsandpreviewResults - New public types:
SuggestParameters,SuggestResponse,QuerySuggestionItem
- New