

def test_delete_documents_from_search_by_id(self):
    self.client.fulltext_add(testrun_search_bucket, [{
        'id': 'dizzy',
        'username': 'dizzy',
    }, {
        'id': 'russell',
        'username': 'russell',
    }])
    self.client.fulltext_delete(testrun_search_bucket, docs=['dizzy'])
    results = self.client.fulltext_search(testrun_search_bucket, 'username:russell OR username:dizzy')
    self.assertEqual(1, len(results['docs']))

dataset/ETHPy150Open basho/riak-python-client/riak/tests/test_search.py SolrSearchTests.test_delete_documents_from_search_by_id/original