fluid-api/src/main/java/com/fluidbpm/program/api/util/elasticsearch/ABaseESUtil.java
public final boolean searchContainHits(
			QueryBuilder qbParam,
			String indexParam,
			boolean withNoFieldsParam,
			int offsetParam,
			int limitParam,
			Long ... formTypesParam) {

		SearchHits searchHits = this.searchWithHits(
				qbParam,
				indexParam,
				withNoFieldsParam,
				offsetParam,
				limitParam,
				formTypesParam);

		return (searchHits != null && searchHits.getTotalHits() > 0);
	}
public final boolean searchContainHits(
			QueryBuilder qbParam,
			String indexParam,
			boolean withNoFieldsParam,
			int offsetParam,
			int limitParam,
			Long ... formTypesParam) {

		SearchHits searchHits = this.searchWithHits(
				qbParam,
				indexParam,
				withNoFieldsParam,
				offsetParam,
				limitParam,
				formTypesParam);

		return (searchHits != null && searchHits.getTotalHits() > 0);
	}
Performs a search against the Elasticsearch instance with the {@code qbParam}.

@param qbParam The @{code QueryBuilder} to search with.
@param indexParam The Elasticsearch Index to use {@code (document, folder or table_field)}.
@param withNoFieldsParam Should fields be IGNORED returned.
@param offsetParam The offset for the results to return.
@param limitParam The number of results to return.
@param formTypesParam The Id's for the Form Definitions to be returned.

@return {@code true} if there were any {@code SearchHits} from the lookup.