def get_rented_properties_count():
    es = ElasticSearchController()
    search_query = {"query": {"match": {"operation": "Rent"}}}
    response_data, total_records = es.search_document(["property"],
                                                      search_query, 1)
    return total_records
def get_commercial_properties_count():
    es = ElasticSearchController()
    search_query = {"query": {"match": {"property_type": "Commercial"}}}
    response_data, total_records = es.search_document(["property"],
                                                      search_query, 1)
    return total_records
def get_properties():
    es = ElasticSearchController()
    search_query = {"query": {"match_all": {}}}
    response_data, total_records = es.search_document(["property"],
                                                      search_query, 1)
    return total_records
Beispiel #4
0
def get_land_properties_count():
	es = ElasticSearchController()
	search_query = { "query": { "match":{"property_type":"Zameen"} } }
	response_data, total_records = es.search_document(["property"], search_query, 1)
	return total_records
Beispiel #5
0
def get_rented_properties_count():
	es = ElasticSearchController()
	search_query = { "query": { "match":{"operation":"Rent"} } }
	response_data, total_records = es.search_document(["property"], search_query, 1)
	return total_records
Beispiel #6
0
def get_properties():
	es = ElasticSearchController()
	search_query = { "query": { "match_all":{} } }
	response_data, total_records = es.search_document(["property"], search_query, 1)
	return total_records