# Specified result set for specified users

**URL:** https://discuss.elastic.co/t/specified-result-set-for-specified-users/189330
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [July 8, 2019, 10:58am UTC](https://discuss.elastic.co/t/specified-result-set-for-specified-users/189330 "2019-07-08T10:58:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![satyajittarai](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@satyajittarai](https://discuss.elastic.co/u/satyajittarai)
#### Post date: [July 8, 2019, 10:58am UTC](https://discuss.elastic.co/t/specified-result-set-for-specified-users/189330/1 "2019-07-08T10:58:28Z")

</div>

Hello All,

We have urls in ES and it is indexed as an another field.

If any user search a particular query, we send all result set to that user.  
But we need to send only urls which is belong to those kind of users.

We don't want to use python nlp as an additional application.

Can we find in ES what kind of user is? and send result set which is belongs to those kind of user?

Thanks

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [July 9, 2019, 9:10am UTC](https://discuss.elastic.co/t/specified-result-set-for-specified-users/189330/2 "2019-07-09T09:10:30Z")

</div>

I'm sorry, I don't understand exactly what you are asking for.

Can you provide a more detailed example?

---

<div class="post-metadata">

### Author: ![satyajittarai](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@satyajittarai](https://discuss.elastic.co/u/satyajittarai)
#### Post date: [July 9, 2019, 10:45am UTC](https://discuss.elastic.co/t/specified-result-set-for-specified-users/189330/3 "2019-07-09T10:45:59Z")

</div>

Hello Tim,

Sorry for the confusion.  
We have 3 types of users in our website and we would like to display the search results based on the type of user who is accessing the website. We were wondering whether there is any option from ElasticSearch end to recognize the type of user and display the relevant search results for that type of user.

We can add pre trained model to ES, if possible.

Example: There are 3 types of users - A, B and C and assume that the query : Where can I check my account balance? ....is relevant for user type B. Is there any way for elastic search to recognize that this query is coming from user type B and hence results displayed should be relevant to user type B.

Thanks  
Satyajit

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 6, 2019, 10:46am UTC](https://discuss.elastic.co/t/specified-result-set-for-specified-users/189330/4 "2019-08-06T10:46:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
