1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-08 21:20:41 +02:00

Merge pull request #220 from lionello/patch-1

Update README.md: fix typo Arrary
This commit is contained in:
Thomas Wilkerling
2021-06-06 09:35:34 +02:00
committed by GitHub

View File

@@ -2419,15 +2419,15 @@ Compare these presets:
## Performance Guide
Methods to retrieve results sorted from fastest to slowest:
Methods to retrieve results, sorted from fastest to slowest:
1. `index.find(id) -> doc`
2. `index.where({field: string}) -> Arrary<doc>` with a tag on the same field
3. `index.search(query) -> Arrary<id>` when just adding _id_ and _content_ to the index (no documents)
4. `index.search(query) -> Arrary<doc>` when using documents
5. `index.search(query, { where }) -> Arrary<doc>` when using documents and a where clause
6. `index.where({field: [string, string]}) -> Arrary<doc>` when a tag was set to one of two fields
7. `index.where({field: string}) -> Arrary<doc>` when no tag was set to this field
2. `index.where({field: string}) -> Array<doc>` with a tag on the same field
3. `index.search(query) -> Array<id>` when just adding _id_ and _content_ to the index (no documents)
4. `index.search(query) -> Array<doc>` when using documents
5. `index.search(query, { where }) -> Array<doc>` when using documents and a where clause
6. `index.where({field: [string, string]}) -> Array<doc>` when a tag was set to one of two fields
7. `index.where({field: string}) -> Array<doc>` when no tag was set to this field
Methods to change index from fastest to slowest: