Skip to content

Commit

Permalink
deploy: 8d163a2
Browse files Browse the repository at this point in the history
  • Loading branch information
jillesvangurp committed Jan 6, 2024
1 parent 9296297 commit dfc25dd
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 34 deletions.
26 changes: 13 additions & 13 deletions manual/Aggregations.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,25 +340,25 @@ println(
This prints:

```text
2023-12-21T00:00:00.000Z: 1
2023-12-22T00:00:00.000Z: 0
2023-12-23T00:00:00.000Z: 0
2023-12-24T00:00:00.000Z: 0
2023-12-25T00:00:00.000Z: 0
2023-12-26T00:00:00.000Z: 1
2023-12-27T00:00:00.000Z: 0
2023-12-27T00:00:00.000Z: 1
2023-12-28T00:00:00.000Z: 0
2023-12-29T00:00:00.000Z: 0
2023-12-30T00:00:00.000Z: 1
2023-12-31T00:00:00.000Z: 1
2023-12-30T00:00:00.000Z: 0
2023-12-31T00:00:00.000Z: 0
2024-01-01T00:00:00.000Z: 1
2024-01-02T00:00:00.000Z: 0
2024-01-03T00:00:00.000Z: 0
2024-01-04T00:00:00.000Z: 0
2024-01-05T00:00:00.000Z: 1
2024-01-06T00:00:00.000Z: 1
green: 2
Min: 1.70318213201E12
Max: 1.70404613201E12
Min: 1.70368040881E12
Max: 1.70454440881E12
Time span: 8.64E8
Top: [1,4]
red: 2
Min: 1.70361413201E12
Max: 1.70395973201E12
Min: 1.70411240881E12
Max: 1.70445800881E12
Time span: 3.456E8
Top: [2,3]
Avg time span: 6.048E8
Expand Down
15 changes: 15 additions & 0 deletions manual/ExtendingTheDSL.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,21 @@ The search client is of course a bit opinionated in how it is implemented and it
serialization framework that not everybody might agree with. If this bothers you, you can use just the
search DSL and easily build your own client using that.

## Custom serialization

There are cases where enums must be serialized and the text values are not valid enum values or
they don't follow Java/Kotlin naming conventions. In these cases implement `CustomValue` interface
like in this example:

```kotlin
enum class Conflict(override val value: String) : CustomValue<String> {
ABORT("abort"),
PROCEED("proceed");
}
```
This interface can be of course implemented by any class not only enums.



---
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:
DUUQwYwB9onUQG1JqxeW - 0.9389602: chicken
C0UQwYwB9onUQG1JqxeW - 0.916195: chicken teriyaki with rice
B0UQwYwB9onUQG1JqxeW - 0.91184926: apple pie
d8nD3owB9w6fTL4ixqoA - 0.9389602: chicken
dcnD3owB9w6fTL4ixar_ - 0.916195: chicken teriyaki with rice
ccnD3owB9w6fTL4ixar_ - 0.91184926: apple pie
---
query for vector of gebak en taart:
CkUQwYwB9onUQG1JqxeW - 0.9021788: pattiserie
DEUQwYwB9onUQG1JqxeW - 0.9010898: tikka massala
B0UQwYwB9onUQG1JqxeW - 0.89891326: apple pie
dMnD3owB9w6fTL4ixar_ - 0.9021788: pattiserie
dsnD3owB9w6fTL4ixar_ - 0.9010898: tikka massala
ccnD3owB9w6fTL4ixar_ - 0.89891326: apple pie
---
query for vector of muppets:
B0UQwYwB9onUQG1JqxeW - 0.9121342: apple pie
DUUQwYwB9onUQG1JqxeW - 0.91064054: chicken
CkUQwYwB9onUQG1JqxeW - 0.90385926: pattiserie
ccnD3owB9w6fTL4ixar_ - 0.9121342: apple pie
d8nD3owB9w6fTL4ixqoA - 0.91064054: chicken
dMnD3owB9w6fTL4ixar_ - 0.90385926: pattiserie
---
query for vector of artisanal baker:
CEUQwYwB9onUQG1JqxeW - 0.9168335: chocolate chip cookie
CUUQwYwB9onUQG1JqxeW - 0.9078536: the cookie monster
BUUQwYwB9onUQG1JqxeW - 0.9031166: banana muffin with chocolate chips
csnD3owB9w6fTL4ixar_ - 0.9168335: chocolate chip cookie
c8nD3owB9w6fTL4ixar_ - 0.9078536: the cookie monster
b8nD3owB9w6fTL4ixar_ - 0.9031166: banana muffin with chocolate chips
---
query for vector of indian curry:
DUUQwYwB9onUQG1JqxeW - 0.9383265: chicken
C0UQwYwB9onUQG1JqxeW - 0.93595815: chicken teriyaki with rice
DEUQwYwB9onUQG1JqxeW - 0.9253379: tikka massala
d8nD3owB9w6fTL4ixqoA - 0.9383265: chicken
dcnD3owB9w6fTL4ixar_ - 0.93595815: chicken teriyaki with rice
dsnD3owB9w6fTL4ixar_ - 0.9253379: tikka massala
---
query for vector of japanese food:
C0UQwYwB9onUQG1JqxeW - 0.9337205: chicken teriyaki with rice
DUUQwYwB9onUQG1JqxeW - 0.9329303: chicken
B0UQwYwB9onUQG1JqxeW - 0.9222199: apple pie
dcnD3owB9w6fTL4ixar_ - 0.9337205: chicken teriyaki with rice
d8nD3owB9w6fTL4ixqoA - 0.9329303: chicken
ccnD3owB9w6fTL4ixar_ - 0.9222199: apple pie
---
query for vector of baked goods:
B0UQwYwB9onUQG1JqxeW - 0.9228046: apple pie
CEUQwYwB9onUQG1JqxeW - 0.91771054: chocolate chip cookie
BkUQwYwB9onUQG1JqxeW - 0.9135959: apple crumble
ccnD3owB9w6fTL4ixar_ - 0.9228046: apple pie
csnD3owB9w6fTL4ixar_ - 0.91771054: chocolate chip cookie
cMnD3owB9w6fTL4ixar_ - 0.9135959: apple crumble
---
```

Expand Down

0 comments on commit dfc25dd

Please sign in to comment.