hkulekci / qdrant-php

Qdrant is a vector similarity engine & vector database. It deploys as an API service providing search for the nearest high-dimensional vectors. With Qdrant, embeddings or neural network encoders can be turned into full-fledged applications for matching, searching, recommending, and much more!
MIT License
93 stars 21 forks source link

nested query container implemented for filter #17

Closed hkulekci closed 1 year ago

hkulekci commented 1 year ago

Here is an example with nested filter :

    (new Filter())->addMust(
                (new Nested(
                    'diet',
                    (new Filter())->addMust(
                        new MatchString('food', 'meat')
                    )->addMust(
                        new MatchBool('likes', false)
                    )
                ))
            )->toArray()
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.17 :tada:

Comparison is base (d5661c4) 83.33% compared to head (8d1d755) 83.51%.

:exclamation: Current head 8d1d755 differs from pull request most recent head 9cbf6fe. Consider uploading reports for the commit 9cbf6fe to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #17 +/- ## ============================================ + Coverage 83.33% 83.51% +0.17% - Complexity 237 239 +2 ============================================ Files 53 54 +1 Lines 834 843 +9 ============================================ + Hits 695 704 +9 Misses 139 139 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `83.51% <100.00%> (+0.17%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Haydar+K%C3%9CLEKC%C4%B0#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://app.codecov.io/gh/hkulekci/qdrant-php/pull/17?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Haydar+K%C3%9CLEKC%C4%B0) | Coverage Δ | | |---|---|---| | [src/Models/Filter/Nested.php](https://app.codecov.io/gh/hkulekci/qdrant-php/pull/17?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Haydar+K%C3%9CLEKC%C4%B0#diff-c3JjL01vZGVscy9GaWx0ZXIvTmVzdGVkLnBocA==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.