def get_leads_boost_query(args):
	"""Forms leads boost query on basis of entities
		in search text
	
	Args:
	    args (dict): contains search text, categories, entities
	
	Returns:
	    dict: ES query
	"""
	return {
	    "nested": {
	       "path": "data",
	       "query": {
	            "bool": {
	               "should": [
						{
						   "match": {
						      "data.text":{
						          "query":args['search_text']
						      }
						   }
						},
						{
						    "nested": {
						       "path": "data.entities",
						       "query": {
						           "match": {
						              "data.entities.name":{
						                  "query": args['search_text'].replace('@',''),
						                  "boost": 2
						              }
						           }
						       }
						    }
						}
	               ]
	           }
	       }
	    }
	}