how to specify partial tokenizer in document search #447
abhishek-bold
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My example dataset:
[
{ "id": 1, "title": "First Item", "description": "Description of the first item" },
{ "id": 2, "title": "Second Item", "description": "Description of the second item" },
{ "id": 3, "title": "Third Item", "description": "Description of the third item" }
]
I am creating index using below snippet:
const index = new FlexSearch.Document({
document: {
id: 'id',
index: ['name', 'icon', 'slug'],
},
});
data.forEach((item) => index.add(item));
const results = index.search('second');
Question: 1. Which partial tokenizer is being used for searching(strict, forward, reverse?)
2. How can i specify a particular tokenizer (I want to use reverse)
Beta Was this translation helpful? Give feedback.
All reactions