Details
-
Story
-
Resolution: Done
-
Medium
-
None
-
None
-
[2.1] Sprint 3
-
5
Description
The goal here is to be able to perform REST search (via POST /views) endpoint using custom FieldCriterion, so that means exposing PHP API
eZ\Publish\API\Repository\Values\Content\Query\Criterion\Field to REST.
Sample HTTP POST payload:
POST /api/ezp/v2/views X-CSRF-Token: {{YOUR_CSRF_TOKEN}} Content-Type: application/vnd.ez.api.ViewInput+json; version=1.1 { "ViewInput":{ "identifier":"your-query-id", "public":false, "ContentQuery":{ "Criteria":{ }, "FacetBuilders":{ }, "SortClauses":{ }, "Query":{ "Field": [{"name": "name", "operator": "CONTAINS", "value": "Welcome"}] }, "limit":10, "offset":0 } } }
PoC PR was created some time ago here: https://github.com/ezsystems/ezpublish-kernel/pull/2179
What is missing there is a use case when Field criterion is needed more than once, so either for multiple fields or the same field with different values.
The open question is - should such case be wrapped in AND or OR expression?
Attachments
Issue Links
- testing discovered
-
EZP-28863 REST search error for searching fields with the same name
- Closed
- links to
1.
|
As a Developer I want SQL Search by Field to use ezkeyword Ext. Storage | Closed | Unassigned |