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

Setting "minimun length" parameter while creating a full text index #21

Closed
marcelosz opened this issue Sep 22, 2016 · 4 comments
Closed
Labels

Comments

@marcelosz
Copy link

Is it possible to add this feature to the add_fulltext_index() function?

@joowani
Copy link
Contributor

joowani commented Sep 22, 2016

Hi Marcelosz,

I will take a look and get back to you.

Thanks,
Joohwan

@marcelosz
Copy link
Author

Thanks!

@joowani
Copy link
Contributor

joowani commented Sep 23, 2016

Hi Marcelosz,

Actually the minimum length is already implemented.
You just need to set the min_length variable on add_fulltext_index:

collection.add_fulltext_index(fields=['example'], min_length=4)

@joowani
Copy link
Contributor

joowani commented Sep 23, 2016

I will be closing this ticket as the issue is closed. Let me know if you have any other questions!

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

No branches or pull requests

2 participants