fix(core): better search result (#12015)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Refactor**
	- Simplified search menu logic by removing unnecessary filtering and parameters from menu item generation. No changes to visible functionality.
- **Bug Fixes**
	- Improved search index matching to retrieve all relevant entries, enhancing search accuracy.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
EYHN
2025-04-28 03:55:45 +00:00
parent e9003dec9e
commit 08d1b8dcbf
2 changed files with 4 additions and 11 deletions

View File

@@ -227,10 +227,10 @@ export class FullTextInvertedIndex implements InvertedIndex {
const key = InvertedIndexKey.forString(this.fieldKey, token.term);
const objs = [
// match exact
await trx
...(await trx
.objectStore('invertedIndex')
.index('key')
.get([this.table, key.buffer()]),
.getAll([this.table, key.buffer()])),
// match prefix
...(await trx
.objectStore('invertedIndex')