 
         invertedIndex = searchlight.index.invert index
 
-        searchlight.redis.set config, invertedIndex, (err) ->
+        searchlight.redis.rebuild config, invertedIndex, (err) ->
             throw err if err?
 
             invertedAddition = searchlight.index.invert addition
 
-            searchlight.redis.add config, invertedAddition, (err) ->
+            searchlight.redis.merge config, invertedAddition, (err) ->
                 throw err if err?
 
                 searchlight.redis.get config, (err, storedIndex) ->

                    test.deepEqual storedIndex, {}
                    test.done()

    'add extends the index': (test) ->
        config = this.config

        index =


        invertedIndex = searchlight.index.invert index

        searchlight.redis.rebuild config, invertedIndex, (err) ->
            throw err if err?

            searchlight.redis.search config, ['what', 'banana'], (err, results) ->
