Good day, Can any one guide me on below issue? *...
# community-help
d
Good day, Can any one guide me on below issue? Unexpected Filter Bypass When Using Phrase Query (
uab "deitesa"
)
We are experiencing an unexpected behavior with Typesense when performing a phrase search. When searching with:
Copy code
uab "deitesa"
it appears that the
filter_by
conditions are partially ignored. However, when searching with:
Copy code
uab "anything"
everything works as expected. Expected Behavior According to our
filter_by
condition, results should only include records where:
owner_organization_id = 4
OR
reporter_organization_id = 4
OR
assignee_organization_id = 4
• OR
watchers = 510
We are using:
Copy code
{
  "q": "uab \"deitesa\"",
  "query_by": "search_keywords",
  "collection": "local_tasks",
  "page": 1,
  "per_page": 50,
  "sort_by": "sortable_id: DESC",
  "filter_by": "is_deleted:= false && (venue_id: [...] || reporter_id:= 510 || assignees:= 510 || responsible_id:= 510 || watchers:= 510) && (assignee_organization_id:= 4 || reporter_organization_id:= 4 || owner_organization_id:= 4 || watchers:= 510)",
  "typo_tokens_threshold": 0,
  "infix": "always"
}
Typesense version:
28.0
f
Could you upgrade to 30.1 and see if that covers the issue? 28.0 was a while back
d
Okay, but what could be the issue?
f
We would need a reproducible example for us to check manually. Could you provide one like this one here?
d
Okay, I'll prepare. At the moment I've just remove
"
and everything seems working fine