public ApiResponse<ApiSuccessResponse> searchContactsWithHttpInfo(LuceneSearchData luceneSearchData) throws ApiException {
        com.squareup.okhttp.Call call = searchContactsValidateBeforeCall(luceneSearchData, null, null);
        Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
public ApiResponse < ApiSuccessResponse > searchContactsWithHttpInfo ( LuceneSearchData luceneSearchData ) throws ApiException { com . squareup . okhttp . Call call = searchContactsValidateBeforeCall ( luceneSearchData , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; }
Search for contacts. If ‘sortCriteria’ or ‘startIndex’ is specified, the query is based on SQL, otherwise on Lucene

@param luceneSearchData  (required)
@return ApiResponse&lt;ApiSuccessResponse&gt;
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body