My Own Phrase suggestion as module

Hi All,

I have a problem with phrase suggesttion that is giving me some wrong
results for my needs. So I need that termfrequency has not be taken into
account. I want to add my own phrase suggester and then be able to use it
from _search endpoint.

curl -XPOST 'localhost:9200/_search' -d {
"my_suggester" : {
"text" : "here comes my text",
"simple_phrase" : {
"phrase" : {
"field" : "bigram",
"size" : 1,

     "collate": {
       "query": { 
         "match": {
             "myfield" : "{{suggestion}}" 


So what I need is to make a call, and link my_suggester with my own
implementation. Would it be possible?

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
To view this discussion on the web visit
For more options, visit