on 04-13-2009 6:46 AM
Hi,
We have developed a custom search component for our application. We need to have the functionality of sorting the search results based on Date modified.
Please help me in finding the API's to achive the same.
Regards,
JK
Hello Jagadeesh,
Try this -
1. Navigate to System Administration - > System Configuration -> Knowledge Management -> Contenet Management -> User Interface -> (Select Advanced Mode) -> Search -> Property Set for Search Results.
2. Check property 'cm_modified', make sure option 'indexable' is enabled.
3. Go to 'search optin set' and check for properties -
Default sorting mode.
Default property for sorting.
Hope this helps.
Regards,
Amit Kade
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
Thanks for your reply.
Let me clarify you my requirement; I need to have an option for displaying the results sorted in Date Modified after the basic search is done.
ie., I will have a button saying: Sort by Date Modified after the basic search is performed and results are displayed.
Regards,
JK
Hi Jagdeesh,
Which search option are you using? Is it customized?
Sorting option will only come after you execute a search and there is more than 1 search result.
Have you enabled sorting option in the search option?
And you said u r using a custom "modified" property. You have to add that in ur sort option.
Pls go thru [Article|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0747ac2-ffd9-2910-de9a-8a3dc44da8b4] for various options you can customize
Regards
BP
Hi George,
We are not using the standard KM search iview. We have developed a custom Search iview.
The Search Function Used is:
ISearchSession session = federatedSearch.searchWithSession(qel, indexList, getResourceContext());
Can I use any API to sort the search results based on dateModified? Please help.
Regards,
JK.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.