src/main/java/io/redisearch/client/Client.java
@Override
    public boolean addDocument(Document doc, AddOptions options) {
        try (Jedis conn = connection()) {
            return addDocument(doc, options, conn).getStatusCodeReply().equals("OK");
        }
    }
/**
     * Add a document to the index
     *
     * @param doc     The document to add
     * @param options Options for the operation
     * @return true on success
     */
Add a document to the index
@param doc     The document to add
@param options Options for the operation
@return true on success
Add a document to the index @param doc The document to add @param options Options for the operation @return true on success
@Override
    public boolean addDocument(Document doc, AddOptions options) {
        try (Jedis conn = connection()) {
            return addDocument(doc, options, conn).getStatusCodeReply().equals("OK");
        }
    }
@ Override public boolean addDocument ( Document doc , AddOptions options ) { try ( Jedis conn = connection ( ) ) { return addDocument ( doc , options , conn ) . getStatusCodeReply ( ) . equals ( "OK" ) ; } }
Add a document to the index
 @param doc     The document to add
 @param options Options for the operation
 @return true on success
Add a document to the index @param doc The document to add @param options Options for the operation @return true on success