def add_document(docid, fields, options={})
            options.merge!( :docid => docid, :fields => fields )
            code, r = PUT "/docs", options
            return r
        end
def add_document(docid, fields, options={})
            options.merge!( :docid => docid, :fields => fields )
            code, r = PUT "/docs", options
            return r
        end
the options argument may contain a :variables key
 with a Hash from variable numbers to their float values
 this variables can be used in the scoring functions
 when sorting a search