This shows you the differences between two versions of the page.
filter_keywords [2017/04/07 09:04] admin created |
filter_keywords [2017/04/07 09:04] (current) admin created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Filter Keywords ====== | ||
+ | |||
+ | This is one the main feature to filter galleries and assign them to groups. | ||
+ | |||
+ | When you import galleries you have to assign at least one group to any gallery. If no groups were assigned to a galleries - it won't be added. | ||
+ | |||
+ | You can select " | ||
+ | |||
+ | A group will be assigned to a gallery in it matches the expression. There are 2 main rules: a space means " | ||
+ | |||
+ | both words should in in description | ||
+ | |||
+ | word1 word2 (read as word1 AND word2) | ||
+ | |||
+ | word1 OR word2 should be in description | ||
+ | | ||
+ | word1|word2 | ||
+ | |||
+ | 2 conditions - word1 AND (word2 OR word3) so it won't work for "word1 blah blah word4" for example | ||
+ | | ||
+ | word1 (word2|word3) | ||
+ | |||
+ | Other examples | ||
+ | |||
+ | word1 -word2 | ||
+ | | ||
+ | word1 -word2 -word3 | ||
+ | | ||
+ | Should contain word1 AND DO NOT have word2 OR word3 | ||
+ | | ||
+ | word1 (-word2|-word3) | ||
+ | | ||
+ | By default the script searches for keywords anywhere, even if it's just a part of another word. But there are some features you can use to precise it's actions | ||
+ | |||
+ | **quotes "" | ||
+ | |||
+ | **^ = word start** **word** works for **words** and **prewords**, | ||
+ | |||
+ | |||
+ | **$ = end of phrase** - **word** | ||
+ | |||
+ | |||
+ | |||