Skip to content

Commit

Permalink
Alternative search syntax (#241)
Browse files Browse the repository at this point in the history
* Alternative search syntax

* Added spec link

* @ralfhandl's suggestion

* TC 2024-04-17

* TC 2024-04-17

* TC 2024-05-29

* TC 2024-05-29

---------

Co-authored-by: Ralf Handl <[email protected]>
  • Loading branch information
HeikoTheissen and ralfhandl authored May 29, 2024
1 parent 4b3d0bd commit 1e83dca
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 205 deletions.
10 changes: 8 additions & 2 deletions vocabularies/Org.OData.Capabilities.V1.json
Original file line number Diff line number Diff line change
Expand Up @@ -748,14 +748,20 @@
"UnsupportedExpressions": {
"$Type": "Capabilities.SearchExpressions",
"$DefaultValue": "none",
"@Core.Description": "Expressions not supported in $search"
"@Core.Description": "Expressions not supported in $search as specified by the standard syntax [OData-URL, section 5.1.8.1](https://docs.oasis-open.org/odata/odata/v4.02/odata-v4.02-part2-url-conventions.html#SearchExpressions)",
"@Core.LongDescription": "An unsupported expression may be treated as a term to be matched even if the\n standard syntax treats it as a keyword."
},
"SearchSyntax": {
"$Nullable": true,
"@Core.IsURL": true,
"@Core.Description": "URL of the $search syntax supported by the service (null means the standard syntax [OData-URL, section 5.1.8.1](https://docs.oasis-open.org/odata/odata/v4.02/odata-v4.02-part2-url-conventions.html#SearchExpressions))"
}
},
"SearchExpressions": {
"$Kind": "EnumType",
"$IsFlags": true,
"none": 0,
"[email protected]": "Single search term",
"[email protected]": "No unsupported expressions",
"AND": 1,
"[email protected]": "Multiple search terms, optionally separated by `AND`",
"OR": 2,
Expand Down
Loading

0 comments on commit 1e83dca

Please sign in to comment.