Code Monkey home page Code Monkey logo

Comments (5)

matteodem avatar matteodem commented on May 17, 2024

Actually this example is not supported yet, and you'd have to still return a valid Meteor.Collection cursor, EasySearch does not create its own publication for you.

With the current Search Components, you can define the permissions / visibility on the docs like that, there will be certain changes though (#30) with a newly defined API for making your use-case possible.

from meteor-easy-search.

MaazAli avatar MaazAli commented on May 17, 2024

I'm still unable to search for all of the documents instead of just the ones that are on the client.

from meteor-easy-search.

matteodem avatar matteodem commented on May 17, 2024

Hello, please do this with the newest version "1.0.9". You will need to create your search index like this:

EasySearch.createSearchIndex(...
    'use' : 'mongo-db'
    ...
});

This will search the whole mongo-db server for docs, which are then returned. Those docs can't be reactive since only your client-side available docs in the minimongo instance can be. Let me know if it works.

from meteor-easy-search.

MaazAli avatar MaazAli commented on May 17, 2024

Perfect, thanks for the update. It's working great. I'm wondering if there is some sort of 'count' variable that determines how many results were returned, or how can I use the api to possible just write a helper to do that?

from meteor-easy-search.

matteodem avatar matteodem commented on May 17, 2024

There's no real solution right now, I'll be implementing in the next days.

from meteor-easy-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.