Skip to content

Commit

Permalink
deploy: 68e29a0
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed May 13, 2024
1 parent c540510 commit fbcd17f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 34 deletions.
22 changes: 11 additions & 11 deletions manual/Aggregations.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,25 +339,25 @@ println(
This prints:

```text
2024-05-01T00:00:00.000Z: 1
2024-05-02T00:00:00.000Z: 0
2024-05-03T00:00:00.000Z: 0
2024-05-03T00:00:00.000Z: 1
2024-05-04T00:00:00.000Z: 0
2024-05-05T00:00:00.000Z: 0
2024-05-06T00:00:00.000Z: 1
2024-05-06T00:00:00.000Z: 0
2024-05-07T00:00:00.000Z: 0
2024-05-08T00:00:00.000Z: 0
2024-05-08T00:00:00.000Z: 1
2024-05-09T00:00:00.000Z: 0
2024-05-10T00:00:00.000Z: 1
2024-05-11T00:00:00.000Z: 1
2024-05-10T00:00:00.000Z: 0
2024-05-11T00:00:00.000Z: 0
2024-05-12T00:00:00.000Z: 1
2024-05-13T00:00:00.000Z: 1
green: 2
Min: 1.714574422734E12
Max: 1.715438422734E12
Min: 1.714722235672E12
Max: 1.715586235672E12
Time span: 8.64E8
Top: [1,4]
red: 2
Min: 1.715006422734E12
Max: 1.715352022734E12
Min: 1.715154235672E12
Max: 1.715499835672E12
Time span: 3.456E8
Top: [2,3]
Avg time span: 6.048E8
Expand Down
4 changes: 2 additions & 2 deletions manual/Highlighting.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ client.search(indexName) {
```

{
"took": 27,
"took": 75,
"_shards": {
"total": 1,
"successful": 1,
Expand Down Expand Up @@ -80,7 +80,7 @@ client.search(indexName) {
```

{
"took": 11,
"took": 39,
"_shards": {
"total": 1,
"successful": 1,
Expand Down
42 changes: 21 additions & 21 deletions manual/KnnSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,39 +133,39 @@ This prints:

```text
query for vector of rice:
AuQZaI8BFt5CXWHxVT4i - 0.9389602: chicken
AOQZaI8BFt5CXWHxVT4i - 0.916195: chicken teriyaki with rice
_OQZaI8BFt5CXWHxVT0i - 0.91184926: apple pie
iD_ocI8BYBkEjyQ1y0e- - 0.9389602: chicken
hj_ocI8BYBkEjyQ1y0e- - 0.916195: chicken teriyaki with rice
gj_ocI8BYBkEjyQ1y0e9 - 0.91184926: apple pie
---
query for vector of gebak en taart:
_-QZaI8BFt5CXWHxVT0i - 0.9021788: pattiserie
AeQZaI8BFt5CXWHxVT4i - 0.9010898: tikka massala
_OQZaI8BFt5CXWHxVT0i - 0.89891326: apple pie
hT_ocI8BYBkEjyQ1y0e- - 0.9021788: pattiserie
hz_ocI8BYBkEjyQ1y0e- - 0.9010898: tikka massala
gj_ocI8BYBkEjyQ1y0e9 - 0.89891326: apple pie
---
query for vector of muppets:
_OQZaI8BFt5CXWHxVT0i - 0.9121342: apple pie
AuQZaI8BFt5CXWHxVT4i - 0.91064054: chicken
_-QZaI8BFt5CXWHxVT0i - 0.90385926: pattiserie
gj_ocI8BYBkEjyQ1y0e9 - 0.9121342: apple pie
iD_ocI8BYBkEjyQ1y0e- - 0.91064054: chicken
hT_ocI8BYBkEjyQ1y0e- - 0.90385926: pattiserie
---
query for vector of artisanal baker:
_eQZaI8BFt5CXWHxVT0i - 0.9168335: chocolate chip cookie
_uQZaI8BFt5CXWHxVT0i - 0.9078536: the cookie monster
-uQZaI8BFt5CXWHxVT0i - 0.9031166: banana muffin with chocolate chips
gz_ocI8BYBkEjyQ1y0e9 - 0.9168335: chocolate chip cookie
hD_ocI8BYBkEjyQ1y0e- - 0.9078536: the cookie monster
gD_ocI8BYBkEjyQ1y0e9 - 0.9031166: banana muffin with chocolate chips
---
query for vector of indian curry:
AuQZaI8BFt5CXWHxVT4i - 0.9383265: chicken
AOQZaI8BFt5CXWHxVT4i - 0.93595815: chicken teriyaki with rice
AeQZaI8BFt5CXWHxVT4i - 0.9253379: tikka massala
iD_ocI8BYBkEjyQ1y0e- - 0.9383265: chicken
hj_ocI8BYBkEjyQ1y0e- - 0.93595815: chicken teriyaki with rice
hz_ocI8BYBkEjyQ1y0e- - 0.9253379: tikka massala
---
query for vector of japanese food:
AOQZaI8BFt5CXWHxVT4i - 0.9337205: chicken teriyaki with rice
AuQZaI8BFt5CXWHxVT4i - 0.9329303: chicken
_OQZaI8BFt5CXWHxVT0i - 0.9222199: apple pie
hj_ocI8BYBkEjyQ1y0e- - 0.9337205: chicken teriyaki with rice
iD_ocI8BYBkEjyQ1y0e- - 0.9329303: chicken
gj_ocI8BYBkEjyQ1y0e9 - 0.9222199: apple pie
---
query for vector of baked goods:
_OQZaI8BFt5CXWHxVT0i - 0.9228046: apple pie
_eQZaI8BFt5CXWHxVT0i - 0.91771054: chocolate chip cookie
--QZaI8BFt5CXWHxVT0i - 0.9135959: apple crumble
gj_ocI8BYBkEjyQ1y0e9 - 0.9228046: apple pie
gz_ocI8BYBkEjyQ1y0e9 - 0.91771054: chocolate chip cookie
gT_ocI8BYBkEjyQ1y0e9 - 0.9135959: apple crumble
---
```

Expand Down
8 changes: 8 additions & 0 deletions manual/TermLevelQueries.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ Term Query. Found 2 results:
- 0.4700036 2 Banana
```

You can also do terms queries using numbers or booleans.

```kotlin
client.search(indexName) {
query = term(TestDoc::price, 0.80)
}.pretty("Term Query.").let { println(it) }
```

## Terms query

```kotlin
Expand Down

0 comments on commit fbcd17f

Please sign in to comment.