Query regarding WebCenter Sites Search API
We are using REST service in our application. We need to sort the result based on the Updated date. We have byQuery with Condition and without condition.
We are using Flex Asset.
REST Query - /cs/REST/iows/ZZ/en/content/byQuery/?type=Video_C&field:videoCategoryLabel:equals=Video Category 1
1. ByQuery without condition
We are using the below snippet to sort the result based on the updated date. This works fine.
SortOrder so = new SortOrder( "updateddate", false );
query = new SimpleQuery(queryClass.getAssetType(), null, null,null, Collections.singletonList(so));
query.getProperties().setIsBasicSearch( true );
2.1. ByQuery with condition
We are using the below snippet to sort the result based on the updated date. This works fine.