Elastic search - fixes

Description

The search doesn't seem to work properly.
In both global/project search mode it doesn't find your private datasets. (Fixed - it was an epipe issue)
Refactor and clean code to make it more readable

Assignee

Alex Ormenisan

Reporter

Alex Ormenisan

Labels

Fix versions

Affects versions

Priority

Medium