I read in the comment of template-function of getSearchWords() that "If tokens are separated by spaces, the OR function is presumed." That means putting space will be the same as , and | correct?
If that's not what it meant, how do I make it so when there's a space in the search field it's recognized as , and |
Like for this picture I tagged it as Tom, Smith and the title is Tom Smith. But when I type in "Smith Tom" it didn't show result, but if I do Smith, Tom it shows.
I know a little bit of php so I'll try to mess my way around in the mean time.
Thanks for any help!
Douten
Oh I get it. Tokens are like !, |, etc. so if it's "name & name" it'll be read as "name-or-and-or-name" right?
Is there a way I can split the string at space characters so they can be read as two string? Like is I type "Smith Tim" the search will read it as "Smith|Tim".
This will require learning on my part right? I'll go look at some php tutorials.
The tokens are ! & | , ( ) You can also use NOT AND OR inplace of the !, & and | tokens. , is the same as |. Parens are used for grouping. ! is unary. Space is part of the token. You can also place strings in quotations so that you can search on the string `"TOM & Jane" for an match of the full string.
As I said, the document you found was not correct. Space is NOT the same as OR.