Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engineOptions gets stringified object, not index value #30

Open
snussik opened this issue Dec 30, 2020 · 0 comments
Open

engineOptions gets stringified object, not index value #30

snussik opened this issue Dec 30, 2020 · 0 comments

Comments

@snussik
Copy link

snussik commented Dec 30, 2020

If you try to tokenize value with custom function in engineOptions section:

engineOptions: {
   profile: "speed",
   tokenize: function(str) {
      console.log(typeof(str), str) // <= here you'll get something like 'string' '{"name": "Itemname"}' not just Itemname
       return someTokenizeFunction(str)
   }
@snussik snussik changed the title engineOptions gets stingified object, not index value engineOptions gets stringified object, not index value Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant