# User search \_missing\_ clause not working anymore

**URL:** <https://community.auth0.com/t/user-search-missing-clause-not-working-anymore/8899>\
**Category:** Get Help\
**Tags:** user-search\
**Created:** [December 7, 2017, 3:19am UTC](https://community.auth0.com/t/user-search-missing-clause-not-working-anymore/8899 "2017-12-07T03:19:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdul.atta](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abdul.atta](https://community.auth0.com/u/abdul.atta)\
**Post date:** [December 7, 2017, 3:19am UTC](https://community.auth0.com/t/user-search-missing-clause-not-working-anymore/8899/1 "2017-12-07T03:19:01Z")

</div>

```
app_metadata.userExpiry:[1512536400000 TO *] OR _missing_: app_metadata.userExpiry

```

Does not seem to work anymore. The first part of the search works but not the missing part. Not sure if anything changed on the back-end over there.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [December 7, 2017, 6:47pm UTC](https://community.auth0.com/t/user-search-missing-clause-not-working-anymore/8899/2 "2017-12-07T18:47:49Z")

</div>

You should check this [answer](http://community.auth0.com/answers/10063/view) to a similar question for additional details on what caused this and why did it happen, but long story short there were updates in the search engine that deprecated the use of `_missing_`; you can replace it with a negated exists check `NOT _exists_:[field]`.

---

<div class="post-metadata">

**Author:** ![abdul.atta](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abdul.atta](https://community.auth0.com/u/abdul.atta)\
**Post date:** [December 7, 2017, 10:58pm UTC](https://community.auth0.com/t/user-search-missing-clause-not-working-anymore/8899/3 "2017-12-07T22:58:56Z")

</div>

Thanks very much. Auth0 should update their documentations though! ☹

> **[User Search Query Syntax v2](https://auth0.com/docs/manage-users/user-search/v2/query-syntax)**
>
> Learn how to use search query string syntax to construct custom queries when searching using Auth0's Management API.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [December 7, 2017, 11:23pm UTC](https://community.auth0.com/t/user-search-missing-clause-not-working-anymore/8899/4 "2017-12-07T23:23:57Z")

</div>

Yes, I submitted a request to update those docs around the same time I provided the answer. There was another docs page that got updated when we found out about this, but the one you linked was missed in the initial pass so I did this second request now.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/user-search-missing-clause-not-working-anymore/8899/5 "2018-03-02T05:57:40Z")

</div>


