@@ -54,15 +54,15 @@ FT.SEARCH index "@text_field:( value1 value2 ... )"
5454
5555The following example shows you a query that finds bicycles in new condition and in a price range from 500 USD to 1000 USD:
5656
57- ``` 
57+ {{< clients-example query_combined combined1 >}} 
5858FT.SEARCH idx: bicycle  "@price  :[ 500 1000]  @condition  :{new}"
59- ``` 
59+ {{< /clients-example >}} 
6060
6161You might also be interested in bicycles for kids. The query below shows you how to combine a full-text search with the criteria from the previous query:
6262
63- ``` 
63+ {{< clients-example query_combined combined2 >}} 
6464FT.SEARCH idx: bicycle  "kids (@price  :[ 500 1000]  @condition  :{used})"
65- ``` 
65+ {{< /clients-example >}} 
6666
6767## OR  
6868
@@ -89,21 +89,21 @@ FT.SEARCH index "@tag_field:{ value1 | value2 | ... }"
8989
9090The following query shows you how to find used bicycles that contain either the word 'kids' or 'small':
9191
92- ``` 
92+ {{< clients-example query_combined combined3 >}} 
9393FT.SEARCH idx: bicycle  "(kids | small) @condition  :{used}"
94- ``` 
94+ {{< /clients-example >}} 
9595
9696The previous query searches across all text fields. The following example shows you how to limit the search to the description field:
9797
98- ``` 
98+ {{< clients-example query_combined combined4 >}} 
9999FT.SEARCH idx: bicycle  "@description  :(kids | small) @condition  :{used}"
100- ``` 
100+ {{< /clients-example >}} 
101101
102102If you want to extend the search to new bicycles, then the below example shows you how to do that:
103103
104- ``` 
104+ {{< clients-example query_combined combined5 >}} 
105105FT.SEARCH idx: bicycle  "@description  :(kids | small) @condition  :{new | used}"
106- ``` 
106+ {{< /clients-example >}} 
107107
108108## NOT  
109109
@@ -115,9 +115,9 @@ FT.SEARCH index "-(expr)"
115115
116116If you want to exclude new bicycles from the search within the previous price range, you can use this query:
117117
118- ``` 
118+ {{< clients-example query_combined combined6 >}} 
119119FT.SEARCH idx: bicycle  "@price  :[ 500 1000]  -@condition  :{new}"
120- ``` 
120+ {{< /clients-example >}} 
121121
122122## Numeric filter  
123123
@@ -140,8 +140,8 @@ FT.SEARCH index "(filter_expr)=>[KNN num_neighbours @field $vector]" PARAMS 2 ve
140140
141141Here is an example:
142142
143- ``` 
143+ {{< clients-example query_combined combined7 >}} 
144144FT.SEARCH idx: bikes_vss  "(@price  :[ 500 1000]  @condition  :{new})=>[ KNN 3 @vector   $query_vector] " PARAMS 2 "query_vector" "Z\xf8\x15:\xf23\xa1\xbfZ\x1dI>\r\xca9..." DIALECT 2
145- ``` 
145+ {{< /clients-example >}} 
146146
147147The [ vector search article] ({{< relref "/develop/interact/search-and-query/query/vector-search" >}}) provides further details about vector queries in general.
0 commit comments