Skip to content

Commit

Permalink
address reviewer feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
guimachiavelli committed Oct 19, 2023
1 parent 8945ff7 commit 410fef6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions learn/inner_workings/datatypes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,28 @@ curl \

Meilisearch is unable to only return patients who had an appointment with `Jester Lavorre` in `2022-01-01`. Instead, it returns patients who had an appointment with `Jester Lavorre`, and patients who had an appointment in `2022-01-01`.

The best way to work around this limitation is reformatting your data. The above example could be fixed by merging appointment data in a new `appointmentsMerged` field so the relationship between appointment and doctor remains intact:

```json
[
{
"id": 0,
"patient_name": "Imogen Temult",
"appointmentsMerged": [
"2022-01-01 Jester Lavorre"
]
},
{
"id": 1,
"patient_name": "Caleb Widowgast",
"appointmentsMerged": [
"2023-01-01 Jester Lavorre"
"2022-01-01 Dorian Storm"
]
}
]
```

## Possible tokenization issues

Even if it behaves exactly as expected, the tokenization process may lead to counterintuitive results in some cases, such as:
Expand Down

0 comments on commit 410fef6

Please sign in to comment.