search function
Merge https://github.com/QScience/patterns_server