Skip to content

Commit

Permalink
chore: remove "keyword" from json DSL example on README
Browse files Browse the repository at this point in the history
  • Loading branch information
GokselKUCUKSAHIN committed Jun 9, 2024
1 parent e56c896 commit e2f772d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ go get github.com/GokselKUCUKSAHIN/es-query-builder
"must": [
{
"term": {
"author.keyword": "George Orwell"
"author": "George Orwell"
}
}
],
"must_not": [
{
"terms": {
"genre.keyword": [
"genre": [
"Fantasy",
"Science Fiction"
]
Expand All @@ -41,7 +41,7 @@ go get github.com/GokselKUCUKSAHIN/es-query-builder
"should": [
{
"terms": {
"title.keyword": [
"title": [
"1984",
"Animal Farm"
]
Expand All @@ -53,17 +53,17 @@ go get github.com/GokselKUCUKSAHIN/es-query-builder
"aggs": {
"genres_count": {
"terms": {
"field": "genre.keyword"
"field": "genre"
}
},
"authors_and_genres": {
"terms": {
"field": "author.keyword"
"field": "author"
},
"aggs": {
"genres": {
"terms": {
"field": "genre.keyword"
"field": "genre"
}
}
}
Expand Down

0 comments on commit e2f772d

Please sign in to comment.