close #1106: ignore settings when searching for own caches

The infrastructure was there already, but one of the parameters was set
incorrectly.
fix #2646: search input should be trimmed