search-text-tokenizer
search-text-tokenizer copied to clipboard
Add support for OR
Add support for OR searches. Should support OR or | (maybe || too). Perhaps a nested array could indicate alternatives?
Sounds good to me:)
I was initially intended this module to tokenize terms as same manner as Google does. And I just found this guide https://support.google.com/websearch/answer/2466433 that says it supports "OR" operator. As you might already noticed the current implementation is still very early and the tokenization is done by only one line regular expression. But I always welcome any feature improvements via pull request if you can make it better. Thanks!