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

Add config option to enable text search #31

Open
sebprunier opened this issue Sep 15, 2013 · 14 comments
Open

Add config option to enable text search #31

sebprunier opened this issue Sep 15, 2013 · 14 comments

Comments

@sebprunier
Copy link

Hello,
I can't find any way to activate the text search (--setParameter textSearchEnabled=true). Is there a way to do it, or does the plugin need a patch ?

Thanks !
Sébastien

@joelittlejohn
Copy link
Owner

If it's in the de.flapdoodle.embed.mongo API then we can add it here. I don't think the API accommodates --setParameter though so I suspect this might need a patch to MongodConfigBuilder.

It would be nice to have some property in the Maven plugin config that allowed you to add any additional command line args you wish. It doesn't seem worth adding explicit support for every one of the setParameter options, but it would be good to allow a custom command line arg string so that this kind of additional arg could be added.

@michaelmosmann
Copy link

We can make this change.. Its very easy.

@harley84
Copy link

+1

@michaelmosmann
Copy link

are you using version mongodb older than 2.6? (http://docs.mongodb.org/manual/core/index-text/ .. "Changed in version 2.6: MongoDB enables the text search feature by default. In MongoDB 2.4, you need to enable the text search feature manually to create text indexes and perform text search.")

@michaelmosmann
Copy link

Did a new release. You can enable text search for mongodb 2.4 with a config option (see https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo#custom-command-line-options ).

@harley84
Copy link

Thanks!

@joelittlejohn
Copy link
Owner

@michaelmosmann fantastic, I'll add something to make use of this feature.

@harley84
Copy link

Exception is thrown in my case when trying to enable the text search on windows.
I guess that the set parameter command should be split to two like the port is.

image

@joelittlejohn
Copy link
Owner

@harley84
Copy link

@joelittlejohn , @michaelmosmann
I've created a pull request with a test, please take a look.

@harley84
Copy link

Hi guys, any chance you can use it?
flapdoodle-oss/de.flapdoodle.embed.mongo#100

@joelittlejohn
Copy link
Owner

@harley84 I don't have commit access to flapdoodle-oss/de.flapdoodle.embed.mongo. Once that pull request is merged and a new version is released I'll make some changes here to support a new config value like:

<textSearchEnabled>true</textSearchEnabled>

@joelittlejohn joelittlejohn changed the title Can't find any way to enable text search Add config option to enable text search Sep 26, 2014
@matlockx
Copy link

merged the test flapdoodle-oss/de.flapdoodle.embed.mongo#100

@matlockx
Copy link

thanks for your contributions, release will take some time, cause i don't have the credentials ...

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

No branches or pull requests

5 participants