'Make sure updating keywords updates the index.'

def test_wiki_keywords(self):

    doc = DocumentFactory(title=u'wool    hats')
    RevisionFactory(document=doc, is_approved=True)
    self.refresh()
    eq_(DocumentMappingType.search().query(document_keywords='wool').count(), 0)
    RevisionFactory(document=doc, is_approved=True, keywords='wool')
    self.refresh()
    eq_(DocumentMappingType.search().query(document_keywords='wool').count(), 1)
