# Terms and anaylaizers

**URL:** https://discuss.elastic.co/t/terms-and-anaylaizers/10811
**Category:** Elasticsearch
**Created:** [February 20, 2013, 5:07am UTC](https://discuss.elastic.co/t/terms-and-anaylaizers/10811 "2013-02-20T05:07:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [February 20, 2013, 5:07am UTC](https://discuss.elastic.co/t/terms-and-anaylaizers/10811/1 "2013-02-20T05:07:43Z")

</div>

I am trying to do some simple matching on some of the documents in the ES  
things like

{"sort":[{"timerange":"desc"}],"from":0,"size":60,"filter":{"and":[{"range":{"timerange":{"from":22688415,"to":22688475}},"term":{"group\_id":1234},  
"terms" : {"category" : ['people', 'books', 'pictures']}}],"\_cache":true}}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [February 20, 2013, 5:30am UTC](https://discuss.elastic.co/t/terms-and-anaylaizers/10811/2 "2013-02-20T05:30:52Z")

</div>

I have no idea why i forgot to add some more information to this. the query  
does not like to work when i have the term and terms applied to it i am  
sure it has something to do with the anazer but not really sure.

On Tue, Feb 19, 2013 at 9:07 PM, Wojons Tech [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:

> I am trying to do some simple matching on some of the documents in the ES  
> things like
> 
> {"sort":[{"timerange":"desc"}],"from":0,"size":60,"filter":{"and":[{"range":{"timerange":{"from":22688415,"to":22688475}},"term":{"group\_id":1234},  
> "terms" : {"category" : ['people', 'books', 'pictures']}}],"\_cache":true}}
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 20, 2013, 7:50am UTC](https://discuss.elastic.co/t/terms-and-anaylaizers/10811/3 "2013-02-20T07:50:52Z")

</div>

Please describe your mapping and a document supposed to match.

BTW, when having analyzer issues, use the Analyze API: [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html)

It will help you to understand what is stored in the inverted index.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 févr. 2013 à 06:30, Wojons Tech [wojonstech@gmail.com](mailto:wojonstech@gmail.com) a écrit :

I have no idea why i forgot to add some more information to this. the query does not like to work when i have the term and terms applied to it i am sure it has something to do with the anazer but not really sure.

On Tue, Feb 19, 2013 at 9:07 PM, Wojons Tech [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:

> I am trying to do some simple matching on some of the documents in the ES things like
> 
> ## {"sort":[{"timerange":"desc"}],"from":0,"size":60,"filter":{"and":[{"range":{"timerange":{"from":22688415,"to":22688475}},"term":{"group\_id":1234}, "terms" : {"category" : ['people', 'books', 'pictures']}}],"\_cache":true}}
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

## -- Enjoy, Alexis Okuwa WojonsTech 424.835.1223

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [February 20, 2013, 8:01am UTC](https://discuss.elastic.co/t/terms-and-anaylaizers/10811/4 "2013-02-20T08:01:39Z")

</div>

I can see that category is setup wrong, i did no set it to not anayalized,  
but the group\_id is set to long so that does not make sense does it also  
need to be set to index yes

On Tue, Feb 19, 2013 at 11:50 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Please describe your mapping and a document supposed to match.
> 
> BTW, when having analyzer issues, use the Analyze API:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze.html)
> 
> It will help you to understand what is stored in the inverted index.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 20 févr. 2013 à 06:30, Wojons Tech [wojonstech@gmail.com](mailto:wojonstech@gmail.com) a écrit :
> 
> I have no idea why i forgot to add some more information to this. the  
> query does not like to work when i have the term and terms applied to it i  
> am sure it has something to do with the anazer but not really sure.
> 
> On Tue, Feb 19, 2013 at 9:07 PM, Wojons Tech [wojonstech@gmail.com](mailto:wojonstech@gmail.com) wrote:
> 
> > I am trying to do some simple matching on some of the documents in the ES  
> > things like
> > 
> > {"sort":[{"timerange":"desc"}],"from":0,"size":60,"filter":{"and":[{"range":{"timerange":{"from":22688415,"to":22688475}},"term":{"group\_id":1234},  
> > "terms" : {"category" : ['people', 'books', 'pictures']}}],"\_cache":true}}
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Enjoy,  
> Alexis Okuwa  
> WojonsTech  
> 424.835.1223
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [July 6, 2017, 2:50am UTC](https://discuss.elastic.co/t/terms-and-anaylaizers/10811/5 "2017-07-06T02:50:37Z")

</div>


