![]() |
|
getSearchWords() don't get the real search string - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: getSearchWords() don't get the real search string (/thread-12258.html) |
getSearchWords() don't get the real search string - wibbi - 2018-04-05 I have a little problem with display the real search string was write in the search field. Example: In the /themes/basic/search.php
When i edit the getSearchWords() don't get the real search string - acrylian - 2018-04-06 The class constructor does this. The "search words" are not used in that way internally, they are processed by various class methods. getSearchWords() don't get the real search string - sbillard - 2018-04-06 Quotation marks in search parameters tell search to use the quoted string literally. For instance, in your example, suppose you had the option set to treat spaces as an "AND." The search would then be on In your case, presumably the option is to treat spaces as spaces, so there is only one target. But the quotes still work the same. If you want actually to include quotation marks in your search parameter then you need to place them within quotations so they are taken literally. E.g. 000 '"'222 111'"' 333 will produce the output (and search) of 000 "222 111" 333. The algorithm which reconstructs the search string from the words will only supply the quotes when needed, Thus in your example there is no ambiguity and therefore no quotation marks. |