Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to specify order of results from SearchDocuments?
mlf
Is there a way to have the returned search results ordered by Custom2 property?
I'm using both:
session.WorkArea.SearchDocuments(objDBList, objProfileSearchParams, true)
session.WorkArea.SearchDocumentsEx(objDBList, objQuery)
Is this possible?
Find more posts tagged with
Comments
mlf
I guess I should have read the manual closer.
SDK 8.5.1000.4
WorkSite COM Developer's Reference Guide
Page 63
Sorting Search Results
"All collections can be sorted on one or more fields. By creating a custom IManObjectSort class,
you can define the columns on which to sort and the sort order."
There is a brief example in the WorkSiteCOM Developer's Reference Guide.
There is a more detailed example in the SDK 8.0 Sample App which is also included in the 8.5 SDK.