You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though i have to ask, are you searching for that text wrapped in quotes? i.e. are you trying to find "something" or just something? If it's the latter then you can simply pass textToFilter to search().
I'm using Morphia 1.5.8 (Java 8) MongoDB (V4.x), trying to use Search for a phrase, so my code looks like :
datastore.find(myEntity).disableValidation().search("\\\"" + textToFilter + "\\\"");
Debug looks good, but in running time the query is being sent with the three backslashes instead of just one, and the query return 0 results.
What am I missing? thanks!
actual generated query:
"$text" : { "$search" : "\\\"filteredText\\\"" }
Steps to reproduce the behavior:
\"
prefix and suffixExpected behavior
The query should be
\"filteredText\"
** Please complete the following information: **
The text was updated successfully, but these errors were encountered: