I have a question about sorting documents in Tamino. Sorting by a single node works OK. But if I need to specify a criterion to choose a node for sorting…
For example,
2 3 1
And now I need to query all the documents and sort them by prioprity of type B.
I think the query string should look like this
document sortby (priority[@type=“B”])
The grammar for X-Query permits such a query. But Tamino internal error occurs (INOXIE8357).
Does it mean that this version of Tamino (2.3.1.1) cannot help me here?
Unfortunately, Natalia, your query is not working.
If you begin predicate expression with “/”, it means that you specify absolute path to a node. The node after slash is considered as a root node. An attribute can never be a root node in XML. That is why no node will be chosen for sorting.
Tamino does not sign an error but It does not return the result needed either. All documents are in default order (sorted by ino:id).
From what I have read what you are trying to do is not possible at this stage. The query originally specified returns no errors but also does not sort.