# PR: Add todo\_due / note\_id to search filter

**URL:** <https://discourse.joplinapp.org/t/pr-add-todo-due-note-id-to-search-filter/16968>\
**Category:** Development\
**Created:** [27 April 2021 12:33 UTC](https://discourse.joplinapp.org/t/pr-add-todo-due-note-id-to-search-filter/16968 "2021-04-27T12:33:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackGruber](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/jackgruber/32/3231_2.png) [@JackGruber](https://discourse.joplinapp.org/u/JackGruber)\
**Post date:** [27 April 2021 12:33 UTC](https://discourse.joplinapp.org/t/pr-add-todo-due-note-id-to-search-filter/16968/1 "2021-04-27T12:33:00Z")

</div>

I would like to try to add `todo_due` to the search filters like `updated` and `created` fields and a `note_id` filter.  
Would such a change be accepted?

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [27 April 2021 13:15 UTC](https://discourse.joplinapp.org/t/pr-add-todo-due-note-id-to-search-filter/16968/2 "2021-04-27T13:15:43Z")

</div>

Yes I think so, how would the doc look like for these two filters?

---

<div class="post-metadata">

**Author:** ![JackGruber](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/jackgruber/32/3231_2.png) [@JackGruber](https://discourse.joplinapp.org/u/JackGruber)\
**Post date:** [27 April 2021 14:34 UTC](https://discourse.joplinapp.org/t/pr-add-todo-due-note-id-to-search-filter/16968/3 "2021-04-27T14:34:28Z")

</div>

> [@laurent](#):
>
> how would the doc look like for these two filters?

I think I don't understand the question right now ...

The filters should work like the existing date filters:  
`todo_due:20210425`  
`-todo_due:19700201`

and for the note\_id filter I thought of the following syntax:  
`note_id:9cbc1b4f242043a9b8a50627508bccd5`

and these I would intigrate into the existing queryBuilder.

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [27 April 2021 14:45 UTC](https://discourse.joplinapp.org/t/pr-add-todo-due-note-id-to-search-filter/16968/4 "2021-04-27T14:45:20Z")

</div>

Ok thanks, that makes sense. I see that we don't use any underscores in the filters, so it should be "tododue" and "noteid" instead but other than that it looks good.

If you could update the doc at the same time that would be great, maybe just mention that the date format is the same as for created/updated filter so that you don't need to duplicate the whole info.
