Support for multiple occurrences of __value__ in search string

It should be possible to use `__value__` several times in the search string in order to build complex search queries.