-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Query for $text results in invalid key #4398
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
Comments
Can you provide the logs when running with VERBOSE=1 for this query please?
|
Of course: The field is "string" and set as an index. Tried query: both same result. full error-log: |
Your query isn't in the correct format. http://docs.parseplatform.org/rest/guide/#queries-on-string-values
|
Seems to be the solution - even if I get an error, cause it's just a "normal" index and not a text index. Thought I can do so with mongo compass for example ... |
Using Parse-Server the text indexes are created for you so you shouldn’t see an error. |
Ok, but what for we need the $term key? Looks like there isn't something like that in mongo itself. (Cause i want to search for "ell" and find entrys with "hello" - of course. |
Parse-Server has adapters that takes input and transform them into the database (Mongo / PG). Most of the time you won't be about to copy a query from parse-server and expect it to work in mongo / pg. For example there's no |
Ah okay - but how to do querys that doesn't match the string 100% - or just not possible with the current implementation? best Nico |
You can use *They may run slow with large datasets |
Hmm that's my approach at the moment - thought with "real text search" I can use a better alternative. - Is there another, performant, way ? |
You can always give ElasticSearch a try. Its a good alternative. |
Hey guys,
trying to query for $text values in my parse-installation not working. Always results in "invalid key" errors...
Parse-Server is version 2.7
The text was updated successfully, but these errors were encountered: