Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play2-elasticsearch with ReactiveMongo #38

Open
bandanag1 opened this issue Feb 11, 2014 · 2 comments
Open

Play2-elasticsearch with ReactiveMongo #38

bandanag1 opened this issue Feb 11, 2014 · 2 comments

Comments

@bandanag1
Copy link

Hi,

I am trying to integrate Play2-elasticsearch with RreactiveMongo.

I could integrate the ESPlugin with my play. But I am not able to index newly created in reactivemongo data in elasticsearch and so no search results.

I am making my model class indexable. But still unable to push any data for search.

Please help me with this.

I have tried with mongo river and it works fine. But without river I am unable to use this plugin with reactivemongo.

Regards,
Bandana

@mguillermin
Copy link
Contributor

Hi,

Can you provide more detailed information ? Have you done something except extending the Indexable trait in your model class ?

Particularly in Scala, you need to define for each Indexable class an IndexableManager where you will define the ES type to use for storing this Indexable objects.

Also this is by calling the index()/indexAsync() method on the IndexableManager that you will be able to push data to ES.

You can see a small example in : samples/elasticsearch-scala/app/indexing/IndexTest.scala and samples/elasticsearch-scala/app/controllers/Application.scala

Regards,

Matthieu

@bandanag1
Copy link
Author

Hi Matthieu,

Thank you for the reply. I am able to index by calling the index() method in my model class.

Regards,
Bandana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants