# My Own Phrase suggestion as module

**URL:** <https://discuss.elastic.co/t/my-own-phrase-suggestion-as-module/21731>\
**Category:** Elasticsearch\
**Created:** [January 20, 2015, 12:42pm UTC](https://discuss.elastic.co/t/my-own-phrase-suggestion-as-module/21731 "2015-01-20T12:42:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silvestre\_Losada](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@Silvestre\_Losada](https://discuss.elastic.co/u/Silvestre_Losada)\
**Post date:** [January 20, 2015, 12:42pm UTC](https://discuss.elastic.co/t/my-own-phrase-suggestion-as-module/21731/1 "2015-01-20T12:42:22Z")

</div>

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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/798fdd4f-ad30-4038-a3d3-26e7cc42db43%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/798fdd4f-ad30-4038-a3d3-26e7cc42db43%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:37am UTC](https://discuss.elastic.co/t/my-own-phrase-suggestion-as-module/21731/2 "2017-07-06T00:37:47Z")

</div>


