Skip to content

Commit

Permalink
Merge pull request #577 from alicejw-aws/QueryDSL
Browse files Browse the repository at this point in the history
additional updates for PR 561
  • Loading branch information
alicejw1 authored May 18, 2022
2 parents 7a6b42f + 9ec7e25 commit 54bc91e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _opensearch/query-dsl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ The following table describes the differences between them.
OpenSearch uses a probabilistic ranking framework called Okapi BM25 to calculate relevance scores. To learn more about Okapi BM25, see [Wikipedia](https://en.wikipedia.org/wiki/Okapi_BM25).
{: .note }

To show the difference between a simple HTTP search versus a search via query DSL, we have an example of each one so that you can see how they differ.
The following examples show the difference between a simple HTTP search and a search with query DSL.

## Example: HTTP simple search

The following request performs a simple search to search for a `speaker` field that has a value of `queen`.
The following request performs a simple search for a `speaker` field that has a value of `queen`.

**Sample request**
```json
Expand Down
4 changes: 2 additions & 2 deletions _opensearch/query-dsl/term.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ The search query “HAMLET” is also searched literally. So, to get a match on

# Term-level query operations

This section provides examples for term-level query operations that you can use for specific search use cases.
This section provides examples of term-level query operations that you can use for specific search use cases.


## Single term
Expand All @@ -238,7 +238,7 @@ GET shakespeare/_search

## Multiple terms

Use the `terms` operation to search for multiple values for same query field.
Use the `terms` operation to search for multiple value matches for the same query field.

```json
GET shakespeare/_search
Expand Down

0 comments on commit 54bc91e

Please sign in to comment.