# Lucene search from dashboard not working

**URL:** <https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703>\
**Category:** Get Help\
**Tags:** lucene\
**Created:** [February 24, 2019, 11:06am UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703 "2019-02-24T11:06:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shlomiken](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shlomiken/32/14903_2.png) [@shlomiken](https://community.auth0.com/u/shlomiken)\
**Post date:** [February 24, 2019, 11:06am UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703/1 "2019-02-24T11:06:28Z")

</div>

Hi i have tried a simple search to get users which are not in certain domain , and it does not work  
the expression is as follows  
`NOT email:*kenshoo.com` - this returns all user from kenshoo domain

also i suggest that there will be more dashboard examples in the documentation -  
all the fields are specified but a combination of negation and whildcards is not.  
also general examples are missing - the explanation of normalized fields (vs what ?)  
is not so clear .

---

<div class="post-metadata">

**Author:** ![shayan.memari](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shayan.memari/32/5175_2.png) [@shayan.memari](https://community.auth0.com/u/shayan.memari)\
**Post date:** [February 24, 2019, 10:57pm UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703/2 "2019-02-24T22:57:40Z")

</div>

Hello, thanks for your feedback.

I think you are looking for the query: `NOT email.domain:*kenshoo.com` which will search just the domain of the emails.

More details here: [User Search Query Syntax](https://auth0.com/docs/users/search/v3/query-syntax#searchable-fields)

---

<div class="post-metadata">

**Author:** ![shlomiken](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shlomiken/32/14903_2.png) [@shlomiken](https://community.auth0.com/u/shlomiken)\
**Post date:** [February 25, 2019, 8:53am UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703/3 "2019-02-25T08:53:19Z")

</div>

Would you mind to explain why simple email with wildcards would not work ?

---

<div class="post-metadata">

**Author:** ![shayan.memari](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shayan.memari/32/5175_2.png) [@shayan.memari](https://community.auth0.com/u/shayan.memari)\
**Post date:** [February 28, 2019, 7:06am UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703/4 "2019-02-28T07:06:14Z")

</div>

Even though `email` is not listed in the [Searchable Fields](https://auth0.com/docs/users/search/v3/query-syntax#searchable-fields), you should be able to search via a query like this:

`NOT email:*gmail.com*`

This returned me all the non-gmail emails.

---

<div class="post-metadata">

**Author:** ![shlomiken](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shlomiken/32/14903_2.png) [@shlomiken](https://community.auth0.com/u/shlomiken)\
**Post date:** [February 28, 2019, 11:34am UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703/5 "2019-02-28T11:34:27Z")

</div>

Thats weird i tried now and it works as expected. 🙂

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 28, 2019, 12:53pm UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703/6 "2019-02-28T12:53:52Z")

</div>

Glad to hear that @shlomiken! 🙂

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 30, 2019, 9:25am UTC](https://community.auth0.com/t/lucene-search-from-dashboard-not-working/21703/7 "2019-08-30T09:25:32Z")

</div>


