parameters: (self, microposts, checkUrl=True)
docstring: Add given microposts to index, tag and content are stored.
docstring_summary: Add given microposts to index, tag and content are stored.
docstring_tokens: Add given microposts to index tag and content are stored .
function: def index_microposts(self, microposts, checkUrl=True):
          """
          Add given microposts to index, tag and content are stored.
          """
  
          self.writer = self.index.writer()
          for post in microposts:
  
              text = post.content
              if checkUrl:
                  urls = self._extract_urls(post.content)
                  text = self._augment_micropost(post, urls)
  
              self.writer.update_document(content=text,
                                          docType=u"micropost",
                                          docId=unicode(post._id),
                                          tags=post.tags)
          self.writer.commit()
function_tokens: def index_microposts ( self , microposts , checkUrl = True ) : self . writer = self . index . writer ( ) for post in microposts : text = post . content if checkUrl : urls = self . _extract_urls ( post . content ) text = self . _augment_micropost ( post , urls ) self . writer . update_document ( content = text , docType = u"micropost" , docId = unicode ( post . _id ) , tags = post . tags ) self . writer . commit ( )