Filtering json strings
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reproducing the filter_by query against the shown schema fields and Typesense version 0.15.0, focusing on the first_data and second_data JSON strings and the some_field array. Determine whether the behavior comes from the filter expression or string representation, then verify the expected result of matching records where either JSON field has a value.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
I have two string fields that are part of my filter_by query: first_data and second_data. Either of these fields can have a value or none of them. Their values are set by encoding a Python dictionary to a json string e.g
first_dict = {'age':40}
second_dict = {}
first_data = json.dumps(first_dict, default=str)
second_data = json.dumps(first_dict, default=str)
Steps to reproduce
schema_fields = [
{
"name": "first_data", "type": "string",
},
{
"name": "second_data", "type": "string"
},
{
"name": "some_field", "type": "string[]"
}
]
# Note that I am only checking for emptiness in both fields. There is probably a better approach for this by I wonder this doesn't work
{
"q": "*",
"filter_by": "first_data:!={} && second_data:!={} && some_field:=[A,B]"
}
Expected Behavior
I expect to only see results that either first_data or second_data have a value
Actual Behavior
I see results have both first_data and second_data equal to {}

Metadata
Typesense Version: 0.15.0
OS: Ubuntu 22.04.2 LTS
- Ngôn ngữ chính
- Python
- Star
- 247
- Fork
- 66
- Merge trung bình
- 22 giờ 47 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của typesense/typesense-python
-
`MultiSearchResponse` type does not account for union search response shapeCó thể đã có người làm @tharropoulos đã nhận 172 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
typesense/typesense-python#128 ·
-
`documents.Documents.import_()` `batch_size` argument is ignored, type of `import_parameters` is missing `batch_size`Có thể đã có người làm @tharropoulos đã nhận 245 ngày trước. Đang mở
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 68/100
typesense/typesense-python#124 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
typesense/typesense-python#100 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
typesense/typesense-python#122 · 3 bình luận ·
-
[Bug] - DeprecationWarning on instantiation of ClientCó thể đã có người làm @tharropoulos đã nhận 266 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
typesense/typesense-python#114 · 8 bình luận ·
Tất cả issue của typesense/typesense-python
Issue tương tự
-
[Resource]: LoreĐang mởresource-submission validation-passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
hesreallyhim/awesome-claude-code#3234 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openminion/openminion#376 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type: ☹︎ Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
posit-dev/great-tables#1028 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
integration: apple_tv
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
home-assistant/core#188282 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A "since" range is worded as a career: "the past two seasons" says "regular season career (2025 on)"Đang mởP4: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
jeffknupp/association#538 ·