now created search algorithm. Also properly including query preset in the pom.xml resources because otherwise, the JSON would have to be written in the source code, which is rather inconvenient