# Week 6: Project Search Engine

**URL:** <https://discourse.joplinapp.org/t/week-6-project-search-engine/9510>\
**Category:** GSoC - Search Engine Project\
**Created:** [20 June 2020 02:38 UTC](https://discourse.joplinapp.org/t/week-6-project-search-engine/9510 "2020-06-20T02:38:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naviji](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/naviji/32/2502_2.png) [@naviji](https://discourse.joplinapp.org/u/naviji)\
**Post date:** [20 June 2020 02:38 UTC](https://discourse.joplinapp.org/t/week-6-project-search-engine/9510/1 "2020-06-20T02:38:37Z")

</div>

You can now filter notes with tags using `tag:*`, without any tags using `-tag:*`

Filter based on latitude, longitude and altitude.  
`latitude:28 -latitude:57 longitude:40 -longitude:50 altitude:12 -altitude:22`  
This means 28\<=latitude\<57 and 40\<=longitude\<50 and 12\<=altitude\<22

Filter by resource MIME type.  
`resource:image/jpeg` to get all notes with a jpeg attachment.

`-resource:application/pdf` to get notes without a pdf attachment.

You can also put wildcards _anywhere_ in filters tag, notebook and resource.  
`resource:image/*`

`tag:bea*ful`

`notebook:part*`

Also, the PR now passes all existing tests.

**To do next week:**  
Clean up the code.  
Make a PR for the new relevance function.

If you have any ideas/opinions about **sorting filters** ,  
eg. to sort by title `sort:title`, to sort by descending creation date `sort:-created`  
, please mention it in this post.

> [@Sorting search results](https://discourse.joplinapp.org/t/sorting-search-results/9424/4):
>
> Yes, but if we only sort by, let's say, ascending creation date, won't that be too restrictive? There's an equally valid case where users might want the notes to be sorted by descending creation date. What do we do with created:2015 updated:2020 ? Is creation date the sole factor for relevance or created and updated both or maybe just ordering by title is enough. Seems like the user doing the search would be more informed about how to go about this. And sometimes people just want the notes …
