# Suggester plug-in

**URL:** <https://discuss.elastic.co/t/suggester-plug-in/7409>\
**Category:** Elasticsearch\
**Created:** [April 20, 2012, 12:16am UTC](https://discuss.elastic.co/t/suggester-plug-in/7409 "2012-04-20T00:16:01Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Renad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Renad\_Ahmed](https://discuss.elastic.co/u/Renad_Ahmed)\
**Post date:** [April 20, 2012, 12:16am UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/1 "2012-04-20T00:16:01Z")

</div>

I'm using play framework and i've already intalled it and downloaded  
the suggester plug in from [https://github.com/codere/elasticsearch-suggest-plugin](https://github.com/codere/elasticsearch-suggest-plugin)

put i don't know how to install it, i know it is supposed to be an  
easy task but i'm a newbie in play and elasticsearch.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 20, 2012, 4:53am UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/2 "2012-04-20T04:53:33Z")

</div>

IMO, if you have install the plugin (command like bin/plugin -install ...), you just need to start Elasticsearch and see in logs if the plugin is discovered by ES.

Is it what you are meaning by "how to install it" ?

David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 20 avr. 2012 à 02:16, Renad [renad.ahmed23@gmail.com](mailto:renad.ahmed23@gmail.com) a écrit :

> I'm using play framework and i've already intalled it and downloaded  
> the suggester plug in from [GitHub - codere/elasticsearch-suggest-plugin: Plugin for elasticsearch which uses the lucene FSTSuggester](https://github.com/codere/elasticsearch-suggest-plugin)
> 
> put i don't know how to install it, i know it is supposed to be an  
> easy task but i'm a newbie in play and elasticsearch.

---

<div class="post-metadata">

**Author:** ![Alexander\_Reelsen](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alexander\_Reelsen](https://discuss.elastic.co/u/Alexander_Reelsen)\
**Post date:** [April 20, 2012, 7:21am UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/3 "2012-04-20T07:21:27Z")

</div>

Hi all,

On 20 Apr., 06:53, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:

> IMO, if you have install the plugin (command like bin/plugin -install ...), you just need to start Elasticsearch and see in logs if the plugin is discovered by ES.
> 
> Is it what you are meaning by "how to install it" ?  
> I am assuming in the following you are using playframework 1.2.x and  
> Felipes elasticsearch module. This also means, you are using  
> elasticsearch 0.18.x

After running play deps to install the elasticsearch module download  
the corresponding elasticsearch-suggest plugin from  
[https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip)

The unzip the contents of the zip file into the lib/ directory of your  
play application (three jars, one plugin jar and two lucene  
libraries.)

Start your play application, go to [http://localhost:9000](http://localhost:9000) and check the  
output of your play application, it should show something like this:

09:15:18,559 INFO ~ Listening for HTTP on port 9000 (Waiting a first  
request to start) ...  
09:15:26,230 INFO ~ Starting Elastic Search for Play! in Local Mode  
09:15:26,305 INFO ~ [Living Tribunal] {0.18.5}[54831]:  
initializing ...  
09:15:26,314 INFO ~ [Living Tribunal] loaded [suggest], sites

At the last line you can see, that the suggest plugin has loaded  
successfully inside your play application and you can use it like in  
any standalone application.

Hope this helps...

--Alexander

---

<div class="post-metadata">

**Author:** ![Renad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Renad\_Ahmed](https://discuss.elastic.co/u/Renad_Ahmed)\
**Post date:** [April 20, 2012, 1:32pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/4 "2012-04-20T13:32:02Z")

</div>

Hi all,

Alexander,

On Fri, Apr 20, 2012 at 9:21 AM, Alexander Reelsen \<  
[alexander.reelsen@googlemail.com](mailto:alexander.reelsen@googlemail.com)\> wrote:

> Hi all, thank you. Yes i'm using play 1.2.4 and Elasticsearch 0.4. i've  
> done all the steps and downloaded it and when i started to save and unzip  
> it in my application lib/ i found no folders at all it was an empty folder  
> named lib/, so still i unzipped it there. (i mean i didn't ind the 3 jars  
> so i unzipped it in lib/ of my application which is named code)

when i started running it i got this error,  
Oops: NoClassDefFoundError

An unexpected error occured caused by exception _NoClassDefFoundError_:  
_org/elasticsearch/action/GenericAction_

> On 20 Apr., 06:53, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> 
> > IMO, if you have install the plugin (command like bin/plugin -install  
> > ...), you just need to start Elasticsearch and see in logs if the plugin is  
> > discovered by ES.
> > 
> > Is it what you are meaning by "how to install it" ?  
> > I am assuming in the following you are using playframework 1.2.x and  
> > Felipes elasticsearch module. This also means, you are using  
> > elasticsearch 0.18.x
> 
> After running play deps to install the elasticsearch module download  
> the corresponding elasticsearch-suggest plugin from
> 
> [https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip)
> 
> The unzip the contents of the zip file into the lib/ directory of your  
> play application (three jars, one plugin jar and two lucene  
> libraries.)
> 
> Start your play application, go to [http://localhost:9000](http://localhost:9000) and check the  
> output of your play application, it should show something like this:
> 
> 09:15:18,559 INFO ~ Listening for HTTP on port 9000 (Waiting a first  
> request to start) ...  
> 09:15:26,230 INFO ~ Starting Elastic Search for Play! in Local Mode  
> 09:15:26,305 INFO ~ [Living Tribunal] {0.18.5}[54831]:  
> initializing ...  
> 09:15:26,314 INFO ~ [Living Tribunal] loaded [suggest], sites
> 
> At the last line you can see, that the suggest plugin has loaded  
> successfully inside your play application and you can use it like in  
> any standalone application.
> 
> Hope this helps...
> 
> --Alexander

--  
Best Regards,  
Renad Ahmed

---

<div class="post-metadata">

**Author:** ![Renad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Renad\_Ahmed](https://discuss.elastic.co/u/Renad_Ahmed)\
**Post date:** [April 20, 2012, 2:57pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/5 "2012-04-20T14:57:10Z")

</div>

sorry, i've found the 3 jars and now shall i put them in which lib/, is it  
of the application i'm creating named code or in the play framework itself?  
because it's still raising the same error

Oops: NoClassDefFoundError

An unexpected error occured caused by exception _NoClassDefFoundError_:  
_org/elasticsearch/action/GenericAction_

On Fri, Apr 20, 2012 at 3:32 PM, Renad Ahmed [renad.ahmed23@gmail.com](mailto:renad.ahmed23@gmail.com)wrote:

> Hi all,
> 
> Alexander,
> 
> On Fri, Apr 20, 2012 at 9:21 AM, Alexander Reelsen \<  
> [alexander.reelsen@googlemail.com](mailto:alexander.reelsen@googlemail.com)\> wrote:
> 
> > Hi all, thank you. Yes i'm using play 1.2.4 and Elasticsearch 0.4. i've  
> > done all the steps and downloaded it and when i started to save and unzip  
> > it in my application lib/ i found no folders at all it was an empty folder  
> > named lib/, so still i unzipped it there. (i mean i didn't ind the 3 jars  
> > so i unzipped it in lib/ of my application which is named code)
> 
> when i started running it i got this error,  
> Oops: NoClassDefFoundError
> 
> An unexpected error occured caused by exception _NoClassDefFoundError_:  
> _org/elasticsearch/action/GenericAction_
> 
> > On 20 Apr., 06:53, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> > 
> > > IMO, if you have install the plugin (command like bin/plugin -install  
> > > ...), you just need to start Elasticsearch and see in logs if the plugin is  
> > > discovered by ES.
> > > 
> > > Is it what you are meaning by "how to install it" ?  
> > > I am assuming in the following you are using playframework 1.2.x and  
> > > Felipes elasticsearch module. This also means, you are using  
> > > elasticsearch 0.18.x
> > 
> > After running play deps to install the elasticsearch module download  
> > the corresponding elasticsearch-suggest plugin from
> > 
> > [https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip)
> > 
> > The unzip the contents of the zip file into the lib/ directory of your  
> > play application (three jars, one plugin jar and two lucene  
> > libraries.)
> > 
> > Start your play application, go to [http://localhost:9000](http://localhost:9000) and check the  
> > output of your play application, it should show something like this:
> > 
> > 09:15:18,559 INFO ~ Listening for HTTP on port 9000 (Waiting a first  
> > request to start) ...  
> > 09:15:26,230 INFO ~ Starting Elastic Search for Play! in Local Mode  
> > 09:15:26,305 INFO ~ [Living Tribunal] {0.18.5}[54831]:  
> > initializing ...  
> > 09:15:26,314 INFO ~ [Living Tribunal] loaded [suggest], sites
> > 
> > At the last line you can see, that the suggest plugin has loaded  
> > successfully inside your play application and you can use it like in  
> > any standalone application.
> > 
> > Hope this helps...
> > 
> > --Alexander
> 
> --  
> Best Regards,  
> Renad Ahmed

--  
Best Regards,  
Renad Ahmed

---

<div class="post-metadata">

**Author:** ![Renad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Renad\_Ahmed](https://discuss.elastic.co/u/Renad_Ahmed)\
**Post date:** [April 20, 2012, 6:02pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/6 "2012-04-20T18:02:57Z")

</div>

I know I'm sending a lot of emails but i'm a beginner. here is what i  
reached i solved the error but still i can't find the suggester jar files  
in my project explorer. I'm not sure where shall i unzip it (in the lib/  
directory of play framework itself or in the lib/ directory of the  
application i'm creating or in that of the Elasticsearch?)

second to use it do i have to add anything in the dependencies.yml or in  
the application.config files or a class path or so?

I apologize again for sending many emails but i've been stuck for 2 days  
trying to install this plugin.

On Fri, Apr 20, 2012 at 4:57 PM, Renad Ahmed [renad.ahmed23@gmail.com](mailto:renad.ahmed23@gmail.com)wrote:

> sorry, i've found the 3 jars and now shall i put them in which lib/, is it  
> of the application i'm creating named code or in the play framework itself?  
> because it's still raising the same error
> 
> Oops: NoClassDefFoundError
> 
> An unexpected error occured caused by exception _NoClassDefFoundError_:  
> _org/elasticsearch/action/GenericAction_
> 
> On Fri, Apr 20, 2012 at 3:32 PM, Renad Ahmed [renad.ahmed23@gmail.com](mailto:renad.ahmed23@gmail.com)wrote:
> 
> > Hi all,
> > 
> > Alexander,
> > 
> > On Fri, Apr 20, 2012 at 9:21 AM, Alexander Reelsen \<  
> > [alexander.reelsen@googlemail.com](mailto:alexander.reelsen@googlemail.com)\> wrote:
> > 
> > > Hi all, thank you. Yes i'm using play 1.2.4 and Elasticsearch 0.4. i've  
> > > done all the steps and downloaded it and when i started to save and unzip  
> > > it in my application lib/ i found no folders at all it was an empty folder  
> > > named lib/, so still i unzipped it there. (i mean i didn't ind the 3 jars  
> > > so i unzipped it in lib/ of my application which is named code)
> > 
> > when i started running it i got this error,  
> > Oops: NoClassDefFoundError
> > 
> > An unexpected error occured caused by exception _NoClassDefFoundError_:  
> > _org/elasticsearch/action/GenericAction_
> > 
> > > On 20 Apr., 06:53, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> > > 
> > > > IMO, if you have install the plugin (command like bin/plugin -install  
> > > > ...), you just need to start Elasticsearch and see in logs if the plugin is  
> > > > discovered by ES.
> > > > 
> > > > Is it what you are meaning by "how to install it" ?  
> > > > I am assuming in the following you are using playframework 1.2.x and  
> > > > Felipes elasticsearch module. This also means, you are using  
> > > > elasticsearch 0.18.x
> > > 
> > > After running play deps to install the elasticsearch module download  
> > > the corresponding elasticsearch-suggest plugin from
> > > 
> > > [https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.3-0.18.6.zip)
> > > 
> > > The unzip the contents of the zip file into the lib/ directory of your  
> > > play application (three jars, one plugin jar and two lucene  
> > > libraries.)
> > > 
> > > Start your play application, go to [http://localhost:9000](http://localhost:9000) and check the  
> > > output of your play application, it should show something like this:
> > > 
> > > 09:15:18,559 INFO ~ Listening for HTTP on port 9000 (Waiting a first  
> > > request to start) ...  
> > > 09:15:26,230 INFO ~ Starting Elastic Search for Play! in Local Mode  
> > > 09:15:26,305 INFO ~ [Living Tribunal] {0.18.5}[54831]:  
> > > initializing ...  
> > > 09:15:26,314 INFO ~ [Living Tribunal] loaded [suggest], sites
> > > 
> > > At the last line you can see, that the suggest plugin has loaded  
> > > successfully inside your play application and you can use it like in  
> > > any standalone application.
> > > 
> > > Hope this helps...
> > > 
> > > --Alexander
> > 
> > --  
> > Best Regards,  
> > Renad Ahmed
> 
> --  
> Best Regards,  
> Renad Ahmed

--  
Best Regards,  
Renad Ahmed

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [April 20, 2012, 6:39pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/7 "2012-04-20T18:39:46Z")

</div>

Hi Renad  
On Fri, 2012-04-20 at 20:02 +0200, Renad Ahmed wrote:

> I know I'm sending a lot of emails but i'm a beginner. here is what i  
> reached i solved the error but still i can't find the suggester jar  
> files in my project explorer. I'm not sure where shall i unzip it (in  
> the lib/ directory of play framework itself or in the lib/ directory  
> of the application i'm creating or in that of the Elasticsearch?)

Are you trying to use the plugin? or change the plugin?

What happened when you tried the instructions on the home page of the  
suggest plugin?

> **[GitHub - spinscale/elasticsearch-suggest-plugin: Plugin for elasticsearch...](https://github.com/spinscale/elasticsearch-suggest-plugin)**
>
> Plugin for elasticsearch which uses the lucene FSTSuggester - GitHub - spinscale/elasticsearch-suggest-plugin: Plugin for elasticsearch which uses the lucene FSTSuggester

I followed those, and it worked for me

clint

---

<div class="post-metadata">

**Author:** ![Renad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Renad\_Ahmed](https://discuss.elastic.co/u/Renad_Ahmed)\
**Post date:** [April 20, 2012, 7:24pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/8 "2012-04-20T19:24:02Z")

</div>

i'm trying to use the plug in but i'm not able to understand how to do it,  
i tried to follow the instructions

to add this inside my elasticsearch/bin directory)

bin/plugin -url  
[https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zi](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zi)  
[https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip)p

but i don't know how to access the directory, i tried to follow the  
instructions Alexander sent but i'm confused where should i unzip the  
folder.

On Fri, Apr 20, 2012 at 8:39 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> Hi Renad  
> On Fri, 2012-04-20 at 20:02 +0200, Renad Ahmed wrote:
> 
> > I know I'm sending a lot of emails but i'm a beginner. here is what i  
> > reached i solved the error but still i can't find the suggester jar  
> > files in my project explorer. I'm not sure where shall i unzip it (in  
> > the lib/ directory of play framework itself or in the lib/ directory  
> > of the application i'm creating or in that of the Elasticsearch?)
> 
> Are you trying to use the plugin? or change the plugin?
> 
> What happened when you tried the instructions on the home page of the  
> suggest plugin?
> 
> [GitHub - spinscale/elasticsearch-suggest-plugin: Plugin for elasticsearch which uses the lucene FSTSuggester](https://github.com/spinscale/elasticsearch-suggest-plugin)
> 
> I followed those, and it worked for me
> 
> clint

--  
Best Regards,  
Renad Ahmed

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [April 21, 2012, 12:26pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/9 "2012-04-21T12:26:26Z")

</div>

> bin/plugin -url [https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip)  
> but i don't know how to access the directory, i tried to follow the  
> instructions Alexander sent but i'm confused where should i unzip the  
> folder.

By running the above command, you have installed the plugin.

Then you restart elasticsearch, and you should see in the log file (look  
in logs/) a line saying that it has loaded the suggest plugin.

Then it is ready to use.

If you're still having problems with it, please provide more  
information.

clint

> On Fri, Apr 20, 2012 at 8:39 PM, Clinton Gormley  
> [clint@traveljury.com](mailto:clint@traveljury.com) wrote:  
> Hi Renad  
> On Fri, 2012-04-20 at 20:02 +0200, Renad Ahmed wrote:  
> \> I know I'm sending a lot of emails but i'm a beginner. here  
> is what i  
> \> reached i solved the error but still i can't find the  
> suggester jar  
> \> files in my project explorer. I'm not sure where shall i  
> unzip it (in  
> \> the lib/ directory of play framework itself or in the lib/  
> directory  
> \> of the application i'm creating or in that of the elastic  
> search?)
> 
> ```
> Are you trying to use the plugin? or change the plugin?
>     
> What happened when you tried the instructions on the home page
> of the
> suggest plugin?
>     
> https://github.com/spinscale/elasticsearch-suggest-plugin
>     
> I followed those, and it worked for me
>     
> clint
> 
> ```
> 
> --  
> Best Regards,  
> Renad Ahmed

---

<div class="post-metadata">

**Author:** ![Renad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Renad\_Ahmed](https://discuss.elastic.co/u/Renad_Ahmed)\
**Post date:** [April 21, 2012, 1:24pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/10 "2012-04-21T13:24:18Z")

</div>

this is what i've exactly done:  
1- unzipped the folder, found 3 jar files  
2- added them to play/modules/elasticsearch-0.4/lib  
3- deleted the application and re-imported it again  
4- ran the play dependencies in the cmd  
5-ran play eclipsify and then ran the application  
6- refreshed the [http://localhost:9000/](http://localhost:9000/)[http://localhost:9000/search/index](http://localhost:9000/search/index)  
7- got this error  
Oops: ObjectExistsException

An unexpected error occured caused by exception _ObjectExistsException_:  
_Cache play already exists_

_when i refresh it again, i get this error_

Oops: NoClassDefFoundError

An unexpected error occured caused by exception _NoClassDefFoundError_:  
_org/elasticsearch/action/GenericAction_

---\> For the plugin to run do i've to run anything in the cmd? or what  
shall i do? i tried googling the error but i reached a deadend

Thank you very much Clint, I really appreciate your help.

On Sat, Apr 21, 2012 at 2:26 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> > bin/plugin -url  
> > [https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip)  
> > but i don't know how to access the directory, i tried to follow the  
> > instructions Alexander sent but i'm confused where should i unzip the  
> > folder.
> 
> By running the above command, you have installed the plugin.
> 
> Then you restart elasticsearch, and you should see in the log file (look  
> in logs/) a line saying that it has loaded the suggest plugin.
> 
> Then it is ready to use.
> 
> If you're still having problems with it, please provide more  
> information.
> 
> clint
> 
> > On Fri, Apr 20, 2012 at 8:39 PM, Clinton Gormley  
> > [clint@traveljury.com](mailto:clint@traveljury.com) wrote:  
> > Hi Renad  
> > On Fri, 2012-04-20 at 20:02 +0200, Renad Ahmed wrote:  
> > \> I know I'm sending a lot of emails but i'm a beginner. here  
> > is what i  
> > \> reached i solved the error but still i can't find the  
> > suggester jar  
> > \> files in my project explorer. I'm not sure where shall i  
> > unzip it (in  
> > \> the lib/ directory of play framework itself or in the lib/  
> > directory  
> > \> of the application i'm creating or in that of the elastic  
> > search?)
> > 
> > ```
> > Are you trying to use the plugin? or change the plugin?
> > 
> > What happened when you tried the instructions on the home page
> > of the
> > suggest plugin?
> > 
> > https://github.com/spinscale/elasticsearch-suggest-plugin
> > 
> > I followed those, and it worked for me
> > 
> > clint
> > 
> > ```
> > 
> > --  
> > Best Regards,  
> > Renad Ahmed

--  
Best Regards,  
Renad Ahmed

---

<div class="post-metadata">

**Author:** ![Renad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@Renad\_Ahmed](https://discuss.elastic.co/u/Renad_Ahmed)\
**Post date:** [April 21, 2012, 7:50pm UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/11 "2012-04-21T19:50:10Z")

</div>

i've been working on it and trying to follow the steps mentioned here  
[GitHub - spinscale/elasticsearch-suggest-plugin: Plugin for elasticsearch which uses the lucene FSTSuggester](https://github.com/spinscale/elasticsearch-suggest-plugin) --\> at the long  
version of installation  
and at this step  
Add a suggest and a lowercase analyzer to your  
elasticsearch/config/elasticsearch.yml config file  
i didn't find elasticsearch.yml config file in  
play1.2.4/modules/elasticsearch-0.4

but the steps here in the link are for elasticsearch 0.19.2 but for play  
framework only possible version is 0.4. is there anyway to solve this  
problem?

On Sat, Apr 21, 2012 at 3:24 PM, Renad Ahmed [renad.ahmed23@gmail.com](mailto:renad.ahmed23@gmail.com)wrote:

> this is what i've exactly done:  
> 1- unzipped the folder, found 3 jar files  
> 2- added them to play/modules/elasticsearch-0.4/lib  
> 3- deleted the application and re-imported it again  
> 4- ran the play dependencies in the cmd  
> 5-ran play eclipsify and then ran the application  
> 6- refreshed the [http://localhost:9000/](http://localhost:9000/)[http://localhost:9000/search/index](http://localhost:9000/search/index)  
> 7- got this error  
> Oops: ObjectExistsException
> 
> An unexpected error occured caused by exception _ObjectExistsException_:  
> _Cache play already exists_
> 
> _when i refresh it again, i get this error_
> 
> Oops: NoClassDefFoundError
> 
> An unexpected error occured caused by exception _NoClassDefFoundError_:  
> _org/elasticsearch/action/GenericAction_
> 
> ---\> For the plugin to run do i've to run anything in the cmd? or what  
> shall i do? i tried googling the error but i reached a deadend
> 
> Thank you very much Clint, I really appreciate your help.
> 
> On Sat, Apr 21, 2012 at 2:26 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:
> 
> > > bin/plugin -url  
> > > [https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip](https://github.com/downloads/spinscale/elasticsearch-suggest-plugin/elasticsearch-suggest-0.0.4-0.19.0.zip)  
> > > but i don't know how to access the directory, i tried to follow the  
> > > instructions Alexander sent but i'm confused where should i unzip the  
> > > folder.
> > 
> > By running the above command, you have installed the plugin.
> > 
> > Then you restart elasticsearch, and you should see in the log file (look  
> > in logs/) a line saying that it has loaded the suggest plugin.
> > 
> > Then it is ready to use.
> > 
> > If you're still having problems with it, please provide more  
> > information.
> > 
> > clint
> > 
> > > On Fri, Apr 20, 2012 at 8:39 PM, Clinton Gormley  
> > > [clint@traveljury.com](mailto:clint@traveljury.com) wrote:  
> > > Hi Renad  
> > > On Fri, 2012-04-20 at 20:02 +0200, Renad Ahmed wrote:  
> > > \> I know I'm sending a lot of emails but i'm a beginner. here  
> > > is what i  
> > > \> reached i solved the error but still i can't find the  
> > > suggester jar  
> > > \> files in my project explorer. I'm not sure where shall i  
> > > unzip it (in  
> > > \> the lib/ directory of play framework itself or in the lib/  
> > > directory  
> > > \> of the application i'm creating or in that of the elastic  
> > > search?)
> > > 
> > > ```
> > > Are you trying to use the plugin? or change the plugin?
> > > 
> > > What happened when you tried the instructions on the home page
> > > of the
> > > suggest plugin?
> > > 
> > > https://github.com/spinscale/elasticsearch-suggest-plugin
> > > 
> > > I followed those, and it worked for me
> > > 
> > > clint
> > > 
> > > ```
> > > 
> > > --  
> > > Best Regards,  
> > > Renad Ahmed
> 
> --  
> Best Regards,  
> Renad Ahmed

--  
Best Regards,  
Renad Ahmed

---

<div class="post-metadata">

**Author:** ![Alexander\_Reelsen](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alexander\_Reelsen](https://discuss.elastic.co/u/Alexander_Reelsen)\
**Post date:** [April 24, 2012, 6:43am UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/12 "2012-04-24T06:43:51Z")

</div>

Hi

clearly you did not run "play deps" when you got the  
ClassNotFoundError

On 21 Apr., 21:50, Renad Ahmed [renad.ahme...@gmail.com](mailto:renad.ahme...@gmail.com) wrote:

> but the steps here in the link are for elasticsearch 0.19.2 but for play  
> framework only possible version is 0.4. is there anyway to solve this  
> problem?  
> Please take yourself the time and understand the differences between  
> the play framework elasticsearch module and the elasticsearch itself  
> (and its versions).

You can connect to an external elasticsearch instance using the play  
framework elasticsearch module (check the documentation at  
[http://www.playframework.org/modules/elasticsearch-0.4/home](http://www.playframework.org/modules/elasticsearch-0.4/home)) - you  
should do that instead of mixing two technologies, as this keeps  
things simpler, especially as I do not know if it is possible to  
specifiy an external configuration file using the elasticsearch play  
framework module.

--Alexander

---

<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, 3:31am UTC](https://discuss.elastic.co/t/suggester-plug-in/7409/13 "2017-07-06T03:31:17Z")

</div>


