Oracle WebCenter Sites (MOSC)

MOSC Banner

Query regarding WebCenter Sites Search API

edited Mar 5, 2015 10:05AM in Oracle WebCenter Sites (MOSC) 1 commentAnswered

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center