﻿---
title: Span or query
description: Matches the union of its span clauses. Here is an example: The clauses element is a list of one or more other span type queries. 
url: https://www.elastic.co/elastic/docs-builder/docs/3016/reference/query-languages/query-dsl/query-dsl-span-query
products:
  - Elasticsearch
---

# Span or query
Matches the union of its span clauses. Here is an example:
```json

{
  "query": {
    "span_or" : {
      "clauses" : [
        { "span_term" : { "field" : "value1" } },
        { "span_term" : { "field" : "value2" } },
        { "span_term" : { "field" : "value3" } }
      ]
    }
  }
}
```

The `clauses` element is a list of one or more other span type queries.