type-query.asciidoc 392 B

123456789101112131415
  1. [[query-dsl-type-query]]
  2. == Type Query
  3. Filters documents matching the provided document / mapping type. Note,
  4. this query can work even when the `_type` field is not indexed (using
  5. the <<mapping-uid-field,_uid>> field).
  6. [source,js]
  7. --------------------------------------------------
  8. {
  9. "type" : {
  10. "value" : "my_type"
  11. }
  12. }
  13. --------------------------------------------------