Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match type "cased" for struct fields does not return results for case sensitive search #33133

Open
akash-iconnect opened this issue Jan 20, 2025 · 2 comments
Assignees
Milestone

Comments

@akash-iconnect
Copy link

Describe the bug
Match type "cased" for struct fields does not return results for case sensitive search

To Reproduce
For below document schema

field attributes type array<attr> {
    struct-field attributeName {
        indexing: summary | attribute
        match: cased
    }
    struct-field merged {
        indexing: summary | attribute
        match: cased
    }
}

Document example -

"attributes": [
    {
        "attributeName": "Size",
        "merged": "XL",
    }
]

YQL search query
select * from sources ecommerce.products where attributes contains sameElement(attributeName contains "Size")

it returns 0 results, even though match type is "cased" and document has attributeName "Size". But if i change case of size to all lower case it returns results. Result consists of case insensitive search.

Expected behavior
Struct fields should respect match type cased while searching.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Mac Os
  • Infrastructure: local docker setup

Vespa version
Vespa CLI version 8.323.45

@bjormel
Copy link
Member

bjormel commented Jan 20, 2025

@akash-iconnect , can you add trace.level=7 and share the trace?

https://docs.vespa.ai/en/reference/query-api-reference.html#trace.level

@akash-iconnect
Copy link
Author

@akash-iconnect , can you add trace.level=7 and share the trace?

https://docs.vespa.ai/en/reference/query-api-reference.html#trace.level

Sure, i have attached full logs below.

vespa trace logs.txt

@bjormel bjormel self-assigned this Jan 22, 2025
@geirst geirst assigned toregge and unassigned bjormel Jan 22, 2025
@geirst geirst added this to the soon milestone Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants