Elastic search suffix query

hello sir,
I am facing a problem in elastic search while running a query.

How one can search a word through its middle or last letters. For example
CORPORATION is a words and I am able to search CORPORATION with its
initials like COR, CO, C etc by using EdgeGram and prefix filter. but I am
not able to search it with last letters or middle letters of CORPORATION
that is POR or RATI or ION. is elastic search support this features? if yes
then please help me how can I resolve this issue.

--
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.

You should look at nGram, not EdgeNGram.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 7 févr. 2013 à 21:36, Mohit Kumar Yadav mohit.kumar.ngi@gmail.com a écrit :

hello sir,
I am facing a problem in Elasticsearch while running a query.

How one can search a word through its middle or last letters. For example CORPORATION is a words and I am able to search CORPORATION with its initials like COR, CO, C etc by using EdgeGram and prefix filter. but I am not able to search it with last letters or middle letters of CORPORATION that is POR or RATI or ION. is Elasticsearch support this features? if yes then please help me how can I resolve this issue.

--
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.

--
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.

Hello,

here is a full working example using a ngram tokenizer:

https://gist.github.com/mkleen/4739479

Regards,

Michael

On Thursday, February 7, 2013 9:36:03 PM UTC+1, Mohit Kumar Yadav wrote:

hello sir,
I am facing a problem in Elasticsearch while running a query.

How one can search a word through its middle or last letters. For example
CORPORATION is a words and I am able to search CORPORATION with its
initials like COR, CO, C etc by using EdgeGram and prefix filter. but I am
not able to search it with last letters or middle letters of CORPORATION
that is POR or RATI or ION. is Elasticsearch support this features? if yes
then please help me how can I resolve this issue.

--
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.