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

TextIndex of TemplateValues may cause Exceptions #532

Open
TiSiE opened this issue Feb 5, 2019 · 1 comment
Open

TextIndex of TemplateValues may cause Exceptions #532

TiSiE opened this issue Feb 5, 2019 · 1 comment

Comments

@TiSiE
Copy link
Member

TiSiE commented Feb 5, 2019

The language_override field of the text index "fulltext" - as defined by TemplateValues entity - is set to to the field 'language' of the job entity.

Thus, this field must only contain values valid for mongo text searches.
https://docs.mongodb.com/manual/reference/text-search-languages/#text-search-languages

If invalid values are set, Doctrine/Mongo will throw an Exception.

As we want the language field to hold any value, we must change the "language_override" field in the index definition.

@cbleek
Copy link
Member

cbleek commented Jul 1, 2020

can this be closed?

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

2 participants