-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Search Drops | ||
|
||
There are two ways that drops can be searched, by exact word in name or fuzzy | ||
search in name and description. | ||
|
||
## Exact word search | ||
|
||
When searching for a whole word, use `fetch` method: | ||
|
||
```typescript | ||
const data: PaginatedResult<Drop> = await dropsClient.fetch({ | ||
sortField: DropsSortFields.Name, | ||
sortDir: Order.ASC, | ||
limit: 3, | ||
offset: 0, | ||
name: 'POAP', | ||
}); | ||
``` | ||
|
||
## Fuzzy search | ||
|
||
When given a generic search input, and to match any part of the words used in | ||
the name of the description, use `search` method: | ||
|
||
```typescript | ||
const data: PaginatedResult<Drop> = await dropsClient.search({ | ||
limit: 3, | ||
offset: 0, | ||
search: 'POAP', | ||
}); | ||
``` |
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 @@ | ||
{ | ||
"SearchDrops": "Search Drops" | ||
} |
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