question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unrecognized logical operator: $text

See original GitHub issue

Is there support for MongoDB Text Search? My queries are all bumming out with the following error:

Error: Unrecognized logical operator: $text

Here’s an example query I’m trying to run:

Meteor.publish('campaign-search', function publishFunction(string) {
        var query = {$text:{$search:string}}
        var campaigns = Campaigns.find(query)   
        return campaigns
}) 

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
theodorDiaconucommented, Jan 5, 2018

I will investigate this.

0reactions
theodorDiaconucommented, Feb 8, 2018

@jasongrishkoff it works with polling. And I think it also works without polling (like real live data), but that is outside my scope currently. You can try it out, what I did basically is: if minimongo can’t support certain mongodb operators, $text, $geo, etc, it will fallback to checking eligibility of the document by interogating the database using _id and its filters. It will still be super performant.

https://github.com/cult-of-coders/redis-oplog/blob/release/1.2.6/testing/polling/client.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

FullText client side · Issue #10568 · meteor/meteor - GitHub
Hi when I try to execute a query using operator $text I'm recevice this error mssage. Uncaught Error: Unrecognized logical operator: $text.
Read more >
Error using $text in Mongo find() - help - Meteor forums
I get “Error: Unrecognized logical operator: $text”. Am I using this wrong, or is this not supported? Meteor 1.0.4.1, Mongo 2.6.7.
Read more >
"Unrecognized logical operator: $in" Mongo.collection update
It is possible to modify multiple values in a local collection, however there is a limitation in what selectors or modifiers can be...
Read more >
Expressions and operators - JavaScript - MDN Web Docs
Chrome Edge Addition ( + ) Full support. Chrome1. Toggle history Full support. Edge12... Addition assignment ( x += y ) Full support. Chrome1. Toggle...
Read more >
Documentation: 15: 10.2. Operators - PostgreSQL
If one argument of a binary operator invocation is of the unknown type, ... CREATE FUNCTION mytext_eq_text (mytext, text) RETURNS boolean AS ...;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found