Re: No terms generated for trigram analyzer

2014-06-26 Thread Andreas Falk
Ok, thanks again for the help! On Wednesday, June 25, 2014 3:37:00 PM UTC+2, Cédric Hourcade wrote: > > In fact they are in the _all field, but not analyzed with your > trigrams analyzer. > Cédric Hourcade > c...@wal.fr > > > On Wed, Jun 25, 2014 at 3:12 PM, Andreas Falk > wrote: > > I unde

Re: No terms generated for trigram analyzer

2014-06-25 Thread Cédric Hourcade
In fact they are in the _all field, but not analyzed with your trigrams analyzer. Cédric Hourcade c...@wal.fr On Wed, Jun 25, 2014 at 3:12 PM, Andreas Falk wrote: > I understand that my fields aren't in the _all field and that's why my query > fails. But shouldn't they be included in _all by def

Re: No terms generated for trigram analyzer

2014-06-25 Thread Andreas Falk
I understand that my fields aren't in the _all field and that's why my query fails. But shouldn't they be included in _all by default according to the documentation, "index" defaults to "analyzed" and "include_in_all" default to "true"? http://www.elasticsearch.org/guide/en/elasticsearch/referen

Re: No terms generated for trigram analyzer

2014-06-25 Thread Andreas Falk
Hey, Yeah, that was it. Thanks! Andreas On Tuesday, June 24, 2014 2:13:10 PM UTC+2, Cédric Hourcade wrote: > > Hello, > > You are performing a search by uri, by default it searches in the _all > field. In your case this field doesn't use at all your trigrams > analyzer. > > You could either

Re: No terms generated for trigram analyzer

2014-06-24 Thread Cédric Hourcade
Hello, You are performing a search by uri, by default it searches in the _all field. In your case this field doesn't use at all your trigrams analyzer. You could either pass an explicit query : {"query": {...} }, or specify which field you want to match: curl -XGET 'http://localhost:9200/urls/_se

No terms generated for trigram analyzer

2014-06-24 Thread Andreas Falk
Hey, I'm trying to get a trigram analyzer working but i'm fairly sure i'm doing something wrong because as i understand it it doesn't generate any terms at all for my document. I've done a complete log with curl commands of what i'm doing here: https://gist.github.com/luuse/cb707b85c73f8e82cd8d