def promote(docid, query, options={})
            options.merge!( :docid => docid, :query => query )
            code, r = PUT "/promote", options
            return r
        end
def promote(docid, query, options={})
            options.merge!( :docid => docid, :query => query )
            code, r = PUT "/promote", options
            return r
        end
the options argument may contain an :index_code definition to override
 this instance's default index_code