@elastic
Feature: Search Manager
In order to manage the search indexing of objects
As a developer
I should be able to use the search manager API
Background:
Given the entity "SortingCar" exists:
"""
"""
Scenario Outline: Sorting
Given the following "SortingCar" objects have been indexed
"""
[
{ "id": 123, "url": "/url/to", "title": "Carone", "body": "Hello", "image": "foo.jpg"},
{ "id": 321, "url": "/url/to", "title": "Cartwo", "body": "Bello", "image": "foo.jpg"}
]
"""
When I search for "" with sort "" and order ""
Then the result at position "" should be ""
Examples:
| search | field | order | position | id |
| Car | title | asc | 0 | 123 |
| Car | title | asc | 1 | 321 |
| Car | title | desc | 1 | 123 |
| Car | title | desc | 0 | 321 |
| Car | body | asc | 0 | 321 |
| Car | body | asc | 1 | 123 |
| Car | body | desc | 1 | 321 |
| Car | body | desc | 0 | 123 |