-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): various fixes and improvements to studio search [v2] (#4704)
* fix(core): improve search weighting * fix(core): filter out hits with no score on the client, don't exclude _id from whole word score generation * fix(core): ensure that we use optimised search specs for both selections and weighting * fix(core): allow search traversal depth to be set with SANITY_STUDIO_UNSTABLE_SEARCH_DEPTH environment variable * fix(core): expose matched indices on array fields in search hit stories * fix(core): add a cap on total search paths extracted per root-level object * fix(core): naive first pass of limiting attributes pre-search query generation * fixup! fix(core): add a cap on total search paths extracted per root-level object * fix(core): always include user generated experimental search paths, display skipped paths in generated search specs * fix(core): export all weighted search functions and types * fixup! fix(core): add a cap on total search paths extracted per root-level object * fix(core): reduce unnecessary whitespace from search query payloads * fix(core): don't include duplicate _id and _type values in type selections * fix(core): ignore duplicate paths when calculating maxAttributes * docs(core): update docs for applyWeights/createSearchQuery * fixup! fix(core): export all weighted search functions and types * fix(core): only add paths to rolling list if not previously added, add support for defining MAX_UNIQUE_ATTRIBUTES via env var * refactor(core): update consts to better match corresponding env vars * fixup! fix(core): filter out hits with no score on the client, don't exclude _id from whole word score generation * fixup! docs(core): update docs for applyWeights/createSearchQuery * refactor(core): rename parentType to rootType, add clarifying comment
- Loading branch information
Showing
17 changed files
with
661 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.