-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add Text Search API search strategy (#5785)
* feat(core): add Text Search API search strategy * feat(core): support multiple search strategies in `createSearch` function * feat(core): use generic `createSearch` function for navbar search * feat(core): use generic `createSearch` function for reference search * feat(structure): very unsound prototype of Text Search API strategy for document lists * feat(core): export Text Search API types * feat(core): add type filtering to Text Search API request * feat(core): remove unused search weighting for Text Search API search strategy * feat(core): support filtering in Text Search API strategy * refactor(core): specialise `createSearchQuery` function for Text Search API search strategy * feat(core): add `TextSearchParams.params` type * fix(core): allow `TextSearchParams.params` to include any single or array of primitives * refactor(core): return `TextSearchParams` directly * feat(core): add limit to Text Search API search strategy * fix(core): allow non-weighted search hit * refactor(core): remove unused function * fix(core): allow non-weighted search hit * refactor(core): remove unused function * feat(core): scaffold hybrid search strategy * refactor(core): rename for clarity * chore(core): remove irrelevant comment * feat(core): add `search.__experimental_strategy` option for controlling search strategy * feat(test-studio): enable Text Search API search strategy * feat: implement hybrid approach (messy) * refactor(core): rename for clarity * feat(core): add `useDocumentSearch` stub * feat(core): prototype Text Search API pagination with global search * feat(core): support new result data shape in weighted search strategy * refactor(core): refine search result type * fix(core): allow reference search to work with new data shape * refactor(core): improve search strategy types * refactor(core): improve search strategy types * refactor: remove hybrid search and clean up * refactor(core): rename binding * refactor(core): remove unused offset-based pagination, fix pagination, handle next cursor in `SearchRequestComplete` action * fix(core): use new data shape * test(core): remove nonexistent option * fix(core): deduplicate search results * refactor(core): remove unused `useDocumentSearch` hook prototype * test(core): global search pagination * test(core): add assertion * refactor(core): add type parameter for Text Search API hit attributes * refactor(core): remove unused offset * refactor(core): remove unused search offset handling * feat(core): increase default search limit * chore(core): add clarification --------- Co-authored-by: Rico Kahler <[email protected]>
- Loading branch information
1 parent
9fc34a2
commit 49fa240
Showing
44 changed files
with
826 additions
and
533 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export {getSearchableTypes, getSearchTypesWithMaxDepth} from '../core/search' | ||
export {createSearch, getSearchableTypes, getSearchTypesWithMaxDepth} from '../core/search' | ||
export {useSearchMaxFieldDepth} from '../core/studio/components/navbar/search/hooks/useSearchMaxFieldDepth' |
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
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
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
2 changes: 1 addition & 1 deletion
2
...ighted/getSearchTypesWithMaxDepth.test.ts → ...common/getSearchTypesWithMaxDepth.test.ts
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
2 changes: 1 addition & 1 deletion
2
...ch/weighted/getSearchTypesWithMaxDepth.ts → ...arch/common/getSearchTypesWithMaxDepth.ts
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './getSearchableTypes' | ||
export * from './getSearchTypesWithMaxDepth' | ||
export * from './types' |
Oops, something went wrong.