# Order/Filter searched topics by latest update to First Post

**URL:** https://meta.discourse.org/t/order-filter-searched-topics-by-latest-update-to-first-post/295058
**Category:** Support
**Tags:** search
**Created:** [February 12, 2024, 11:28am UTC](https://meta.discourse.org/t/order-filter-searched-topics-by-latest-update-to-first-post/295058 "2024-02-12T11:28:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Honeyxilia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeyxilia/32/523830_2.png) [@Honeyxilia](https://meta.discourse.org/u/Honeyxilia)
#### Post date: [February 12, 2024, 11:28am UTC](https://meta.discourse.org/t/order-filter-searched-topics-by-latest-update-to-first-post/295058/1 "2024-02-12T11:28:30Z")

</div>

hello :purple_heart:

I would like to know if it is possible to search through topics/posts, either by the user interface or by the API endpoint `/search.json` depending on their update date, either by ordering them by latest update or by filtering topics updated before/after a certain date

ty in advance !

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 12, 2024, 7:00pm UTC](https://meta.discourse.org/t/order-filter-searched-topics-by-latest-update-to-first-post/295058/2 "2024-02-12T19:00:54Z")

</div>

Hello,

Unless I misunderstood, did you try the advanced search?  
[https://meta.discourse.org/search?expanded=true](https://meta.discourse.org/search?expanded=true)

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/5/7/25716865f5f03d0a81ac0feed1b542f833ed99a3.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/d/1/ed1ad6f8c61bfa308a4b91c9c2a9c25a0f6f0b35.png)

Also worth to be noted:

> [@Searching for content effectively](https://meta.discourse.org/t/search-tips-and-tricks/273328):
>
> bookmark This guide provides a comprehensive overview of Discourse’s search capabilities, including filters, options, and advanced techniques. person_raising_hand Required user level: All users Discourse offers a powerful search functionality with numerous filters and criteria. When you use the advanced search form, it automatically appends the relevant syntax to your query. For example, selecting [x] In my messages will add in:personal to your search query. This guide covers all availa…

---

<div class="post-metadata">

### Author: ![Honeyxilia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeyxilia/32/523830_2.png) [@Honeyxilia](https://meta.discourse.org/u/Honeyxilia)
#### Post date: [February 13, 2024, 8:54am UTC](https://meta.discourse.org/t/order-filter-searched-topics-by-latest-update-to-first-post/295058/3 "2024-02-13T08:54:19Z")

</div>

This isn’t what I mean - what I really want is to retrieve topics of which the main post has been edited after a given YYYY-MM-DD date on the whole site with the search

For instance, if you had two topics created on 2024-02-11, but one of them was edited on 2024-02-12, than i would like to be able to search for that later topic only (`edited-after:2024-02-12` for instance)

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [February 13, 2024, 2:56pm UTC](https://meta.discourse.org/t/order-filter-searched-topics-by-latest-update-to-first-post/295058/4 "2024-02-13T14:56:08Z")

</div>

Oh, I see!

Hmm, the only way I can think of, is to use [Discourse Data Explorer](https://meta.discourse.org/t/discourse-data-explorer/32566) to create a query specific to your needs.

Then, you can follow this guide to use it via the API: [Run Data Explorer queries with the Discourse API](https://meta.discourse.org/t/run-data-explorer-queries-with-the-discourse-api/120063). :thinking:
