added query time
replace big query string by query dsl
added allowed_to_search_query method to all documets