Match part of an URL

Using ES 0.90.0 I've defined the following property:

"url": {
   "type": "string", 
   "boost": "0.5",
   "analyzer": "aurlemail",
   "index": "analyzed",
   "store": "yes"
},

and the analyzer looks like this:

index.analysis.analyzer.aurlemail:
  type: custom
  tokenizer: standard
  filter: lowercase, fngramurl
index.analysis.filter.fngramurl:
  type: nGram
  min_gram: 4
  max_gram: 10

I add documents with some URL's, like http://www.google.com and when I
execute a query for http://www.google.com I get the ID's for the correct
documents. But when searching just for google I get zero results.

I use Java, therefore I create the query like this:
QueryBuilders.queryString("google")

I verified that the analyzer is working. when executing curl -XGET 'localhost:9200/myindex/_analyze?analyzer=aurlemail' -d 'http://www.google.com' I see the token google.

Why am I not getting the document in my result? What am I missing here?
when doing the same with the attachment-mapping it works just fine

--
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.
For more options, visit https://groups.google.com/groups/opt_out.