Skip to main content
Question

Sort search results

  • May 22, 2025
  • 2 replies
  • 33 views

Forum|alt.badge.img

Is there an option that I perhaps missed to sort search results on the search API endpoint?
Will this option be added in the future?

2 replies

Forum|alt.badge.img

Hi ,

 

With the search endpoint you'll be able to sort on a number of factors:

  • When content was created / updated
  • File size range
  • Content for specific users
  • Content within specific metadata templates (mdfilters)
  • Limits and offsets
  • etc. 

If there are specific items that you'd like to see as search filters, the best thing to do would be to add a request to our Pulse page. This is where product feedback can be suggested, which will go to our platform PMs to be able to prioritize.

 

Thanks,

Jon


Forum|alt.badge.img

Hello,

 

I am using the Java API to search for documents. It is very easy to do something very basic like this:

searchParams.setSort("modified_at");
searchParams.setDirection("DESC"); 

 to sort my search by modified date, as the example on GitHub shows. However, there is no documentation, as far as I can see, on how to do anything even slightly more complicated. For example, how would one even sort search results by document name? or a specific metadata field?