src/main/java/io/redisearch/client/Client.java
@Override
    public boolean[] deleteDocuments(boolean deleteDocuments, String... docIds) {
    	try (Jedis conn = connection()) {
	    	for(String docId : docIds) {
	    		deleteDocument(docId, deleteDocuments, conn);
	    	}
	    	List<Object> objects = conn.getClient().getMany(docIds.length);
	    	boolean[] results = new boolean[docIds.length];
	    	int i=0;
	    	for(Object obj : objects) {
	    		results[i++] = !(obj instanceof JedisDataException) && 
	    		((Long) obj) == 1L;
	    	}
	    	return results;
    	}
    }
/**
     * Delete a documents from the index
     *
     * @param deleteDocuments  if <code>true</code> also deletes the actual document ifs it is in the index
     * @param docIds the document's ids
     * @return true on success for each document if it has been deleted, false if it did not exist
     */
Delete a documents from the index
@param deleteDocuments  if true also deletes the actual document ifs it is in the index
@param docIds the document's ids
@return true on success for each document if it has been deleted, false if it did not exist
Delete a documents from the index @param deleteDocuments if true also deletes the actual document ifs it is in the index @param docIds the document ' s ids @return true on success for each document if it has been deleted false if it did not exist
@Override
    public boolean[] deleteDocuments(boolean deleteDocuments, String... docIds) {
    	try (Jedis conn = connection()) {
	    	for(String docId : docIds) {
	    		deleteDocument(docId, deleteDocuments, conn);
	    	}
	    	List<Object> objects = conn.getClient().getMany(docIds.length);
	    	boolean[] results = new boolean[docIds.length];
	    	int i=0;
	    	for(Object obj : objects) {
	    		results[i++] = !(obj instanceof JedisDataException) && 
	    		((Long) obj) == 1L;
	    	}
	    	return results;
    	}
    }
@ Override public boolean [ ] deleteDocuments ( boolean deleteDocuments , String ... docIds ) { try ( Jedis conn = connection ( ) ) { for ( String docId : docIds ) { deleteDocument ( docId , deleteDocuments , conn ) ; } List < Object > objects = conn . getClient ( ) . getMany ( docIds . length ) ; boolean [ ] results = new boolean [ docIds . length ] ; int i = 0 ; for ( Object obj : objects ) { results [ i ++ ] = ! ( obj instanceof JedisDataException ) && ( ( Long ) obj ) == 1L ; } return results ; } }
Delete a documents from the index
 @param deleteDocuments  if <code>true</code> also deletes the actual document ifs it is in the index
 @param docIds the document's ids
 @return true on success for each document if it has been deleted, false if it did not exist
Delete a documents from the index @param deleteDocuments if <code > true< / code > also deletes the actual document ifs it is in the index @param docIds the document ' s ids @return true on success for each document if it has been deleted false if it did not exist