original_docstring: 
          Flush the current session if there's no error.
  
          Flushing an index is not an expected behavior for Elasticsearch writes, but
          can be very useful for test cases.
  
          
docstring: Flush the current session if there's no error.
  Flushing an index is not an expected behavior for Elasticsearch writes, but
  can be very useful for test cases.
docstring_tokens: Flush the current session if there ' s no error . Flushing an index is not an expected behavior for Elasticsearch writes but can be very useful for test cases .
code: def flushing(self, **kwargs):
          """
          Flush the current session if there's no error.
  
          Flushing an index is not an expected behavior for Elasticsearch writes, but
          can be very useful for test cases.
  
          """
          yield
          self.get_index(**kwargs).flush()
          # NB. as of ES7 a flush does not have the side-effect of refresh.
          # Given that our use of explicit flush in code typically is done for refreshing
          # available documents to be visible to the search engine, we also invoke refresh below.
          # See: https://qbox.io/blog/refresh-flush-operations-elasticsearch-guide
          self.get_index(**kwargs).refresh()
code_tokens: def flushing ( self , ** kwargs ) : yield self . get_index ( ** kwargs ) . flush ( ) self . get_index ( ** kwargs ) . refresh ( )
short_docstring: Flush the current session if there's no error.
short_docstring_tokens: Flush the current session if there ' s no error .
comment: """
          Flush the current session if there's no error.
  
          Flushing an index is not an expected behavior for Elasticsearch writes, but
          can be very useful for test cases.
  
          """$SEP$# NB. as of ES7 a flush does not have the side-effect of refresh.$SEP$# Given that our use of explicit flush in code typically is done for refreshing$SEP$# available documents to be visible to the search engine, we also invoke refresh below.$SEP$# See: https://qbox.io/blog/refresh-flush-operations-elasticsearch-guide