code: def ids(cls, values, itype=None):
          '''
          http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html
  Filters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.
  
          '''
          instance = cls(ids={'values': values})
          if itype is not None:
              instance['ids']['type'] = itype
  
          return instancf ids(cls, values, itype=None):
          '''
          http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html
  Filters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.
  
          '''
          instance = cls(ids={'values': values})
          if itype is not None:
              instance['ids']['type'] = itype
  
          return instance
docs: http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html
  Filters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.