Manage Learn to apply best practices and optimize your operations.

Sorting search results

How to sort search results in ways other than the three options given: relevancy, oldest or newest.

You should understand that when returning search results, Domino allows three basic options: by relevancy, by oldest or by newest. It all depends on the &SearchOrder= value. A value of 1 (e.g., &SearchOrder=1) is by relevancy, SearchOrder=2 is by oldest and SearchOrder=3 is by newest. The problem is that the oldest and the newest is by age of the document since it was last modified. So how can you sort by some other field -- say, PublishDate?

Answer:
Add a hidden column with the value PublishDate. Then sort it Ascending or Descending (your choice).

Next: When you submit your search query use &SortOrder=4 as part of the query and it will use that hidden column. The other SortOrder values mentioned still work, too.

Do you have comments on this tip? Let us know.


This was last published in January 2004

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close