[AC-4045] The "$text" operator in query in ArrowDB (created in April 2015) not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Hold |
Resolution Date | 2016-08-29T17:13:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | ArrowDB |
Labels | n/a |
Reporter | Parijat sahai |
Assignee | Shak Hossain |
Created | 2016-07-11T13:27:38.000+0000 |
Updated | 2016-08-29T17:13:12.000+0000 |
Description
Please let me know how to make the $text operator in query in ArrowDB to work.
Hello, Thanks for reach out. Would you mind if i request more details about your problem? We are not clear your problems. If you add more details then it's easy to solve your problem. Please let us know we are waiting your valuable response. Thanks
What specific details would you like to know? I'm referring to the "$text" operator in the ArrowDB query. Please refer to the following documentation: http://docs.appcelerator.com/arrowdb/latest/#!/guide/search_query-section-where $text Perform a text search on the contents of the field. A $text expression has the following syntax: { "$text": { "$search":
Hi Parijat, I discussed your issue with engineering team and you can use $text operator after creating
tags
. Please let us know your Arrow Cloud Release version. For being up to date, we encourage you to upgrade your app to latest version of Arrow Cloud. It is easy to migrate to latest version of Arrow Cloud. Please check our migration guide Regards Nur RonyHow do I check my app's Arrow Cloud version? So are you saying that usage of the $text operator has nothing to do with the ArrowDB version or ArrowDB SDK version? Also, could you please elaborate on the "creating tags" part? Please note that I'm trying to use it on an Arrow Model. How do I create tags?
MongoDB documentation has the following: Use the $meta query operator to obtain and sort by the relevance score of each matching document. For example, to order a list of coffee shops in order of relevance, run the following:
Can I do the same on my Arrow Models with the $text operator?
I just tested the "tags" and it does work but not quite the way I imagined it. It requires me to define precise tags that can be searched. So if I want to search for "home", then having a tag called "myhome" doesn't return anything but a tag called "home" returns the object. This isn't good as I want a partial text search which the Appcelerator documentation says it can do. Hence, using tags isn't a correct solution here. I assume that ArrowDB is based on MongoDB as a lot of syntax for queries is more or less identical in both. Please let me know if ArrowDB has a feature similar to the following:
Please look at [https://docs.mongodb.com/manual/core/index-text/] and [https://docs.mongodb.com/manual/text-search/] to see what I'm referring to.