Skip to content

Commit b51b804

Browse files
authored
[DOCS] Update full-text-filtering-tutorial.asciidoc
1 parent 4e1807f commit b51b804

File tree

1 file changed

+40
-45
lines changed

1 file changed

+40
-45
lines changed

docs/reference/quickstart/full-text-filtering-tutorial.asciidoc

Lines changed: 40 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -521,51 +521,46 @@ Let's create a query that addresses the following user needs:
521521
----
522522
GET /cooking_blog/_search
523523
{
524-
"query": {
525-
"bool": {
526-
"must": [
527-
{
528-
"term": {
529-
"category.keyword": "Main Course"
530-
}
531-
},
532-
{
533-
"term": {
534-
"tags": "vegetarian"
535-
}
536-
},
537-
{
538-
"range": {
539-
"rating": {
540-
"gte": 4.5
541-
}
542-
}
543-
}
544-
],
545-
"should": [
546-
{
547-
"multi_match": {
548-
"query": "curry spicy",
549-
"fields": ["title^2", "description"]
550-
}
551-
},
552-
{
553-
"range": {
554-
"date": {
555-
"gte": "now-1M/d"
556-
}
557-
}
558-
}
559-
],
560-
"must_not": [ <1>
561-
{
562-
"term": {
563-
"category.keyword": "Dessert"
564-
}
565-
}
566-
]
567-
}
568-
}
524+
"query": {
525+
"bool": {
526+
"must": [
527+
{
528+
"range": {
529+
"rating": {
530+
"gte": 4.5
531+
}
532+
}
533+
}
534+
],
535+
"should": [
536+
{
537+
"term": {
538+
"category": "Main Course"
539+
}
540+
},
541+
{
542+
"multi_match": {
543+
"query": "curry spicy",
544+
"fields": ["title^2", "description"]
545+
}
546+
},
547+
{
548+
"range": {
549+
"date": {
550+
"gte": "now-1M/d"
551+
}
552+
}
553+
}
554+
],
555+
"must_not": [ <1>
556+
{
557+
"term": {
558+
"category": "Dessert"
559+
}
560+
}
561+
]
562+
}
563+
}
569564
}
570565
----
571566
// TEST[continued]

0 commit comments

Comments
 (0)