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

Add support for fuzzy search function within $filter, etc. #373

Open
ralfhandl opened this issue Mar 20, 2024 · 0 comments
Open

Add support for fuzzy search function within $filter, etc. #373

ralfhandl opened this issue Mar 20, 2024 · 0 comments
Assignees
Labels
Protocol Protocol, URL Conventions URL Conventions URL Conventions V4.02

Comments

@ralfhandl
Copy link
Contributor

The $search functionality allows fuzzy searching across all properties, and is useful for finding entities that have something to do with a particular search term.

However, some engines may support content search on a particular field, and customers may want to combine such content searches with other predicates, for example:

/users?$filter=address/state eq 'WA' or search(jobTitle,'smith')

Note:

  1. They specifically want job titles related to a "smith" (woodsmith, ironsmith, etc.), not last names related to "smith"
  2. They want to logically "OR" this condition with other conditions within the $filter clause.

They can't do either #1 or #2 with $search today.

Proposal

Introduce a new string function, "search", which does a content search on the first parameter for the search text provided by the second parameter. The second parameter can support the same syntax as the $search query option.

Alternative names: "fuzzyMatch", "fuzzySearch", "contentMatch", "contentSearch"

Imported from ODATA-1594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Protocol Protocol, URL Conventions URL Conventions URL Conventions V4.02
Projects
Status: No status
Development

No branches or pull requests

3 participants