search-text-tokenizer icon indicating copy to clipboard operation
search-text-tokenizer copied to clipboard

Add support for OR

Open curiousdannii opened this issue 10 years ago • 1 comments

Add support for OR searches. Should support OR or | (maybe || too). Perhaps a nested array could indicate alternatives?

curiousdannii avatar Jun 08 '15 03:06 curiousdannii

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!

tatsuya avatar Jun 08 '15 05:06 tatsuya