Skip to content

Commit

Permalink
Update match all template to include size (#17129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytes1027 authored Dec 6, 2024
1 parent 9a1d682 commit e7dbd6d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
var matchAllQuery = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(@"{
""query"": {
""match_all"": { }
}
},
""size"": 10
}"));

var hasFields = Model.Fields?.Any() == true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
var matchAllQuery = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(@"{
""query"": {
""match_all"": { }
}
},
""size"": 10
}"));

}
Expand Down
4 changes: 2 additions & 2 deletions src/docs/reference/modules/Elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Verbs: `POST` and `GET`
| Parameter | Example | Description |
| --------- | ---- |------------ |
| `indexName` | `search` | The name of the index to query. |
| `query` | `{ "query": { "match_all": {} } }` | A JSON object representing the query. |
| `query` | `{ "query": { "match_all": {} }, "size": 10 }` | A JSON object representing the query. |
| `parameters` | `{ size: 3}` | A JSON object representing the parameters of the query. |

### `api/elasticsearch/documents`
Expand All @@ -204,7 +204,7 @@ Verbs: `POST` and `GET`
| Parameter | Example | Description |
| --------- | ---- |------------ |
| `indexName` | `search` | The name of the index to query. |
| `query` | `{ "query": { "match_all": {} } }` | A JSON object representing the query. |
| `query` | `{ "query": { "match_all": {} }, "size": 10 }` | A JSON object representing the query. |
| `parameters` | `{ size: 3}` | A JSON object representing the parameters of the query. |

## Elasticsearch Queries
Expand Down
4 changes: 2 additions & 2 deletions src/docs/reference/modules/Lucene/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Verbs: `POST` and `GET`
| Parameter | Example | Description |
| --------- | ---- |------------ |
| `indexName` | `search` | The name of the index to query. |
| `query` | `{ "query": { "match_all": {} } }` | A JSON object representing the query. |
| `query` | `{ "query": { "match_all": {} }, "size": 10 }` | A JSON object representing the query. |
| `parameters` | `{ size: 3}` | A JSON object representing the parameters of the query. |

### `api/lucene/documents`
Expand All @@ -71,7 +71,7 @@ Verbs: `POST` and `GET`
| Parameter | Example | Description |
| --------- | ---- |------------ |
| `indexName` | `search` | The name of the index to query. |
| `query` | `{ "query": { "match_all": {} } }` | A JSON object representing the query. |
| `query` | `{ "query": { "match_all": {} }, "size": 10 }` | A JSON object representing the query. |
| `parameters` | `{ size: 3}` | A JSON object representing the parameters of the query. |

## Lucene Worker (`OrchardCore.Search.Lucene.Worker`)
Expand Down

0 comments on commit e7dbd6d

Please sign in to comment.