Skip to content
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

Adding score to search #6

Closed
benstr opened this issue Jul 15, 2014 · 1 comment
Closed

Adding score to search #6

benstr opened this issue Jul 15, 2014 · 1 comment

Comments

@benstr
Copy link

benstr commented Jul 15, 2014

I added a players score to the search config but Easy Search is returning no results. I only changed the config to the following, am I missing something?

 // Searching
    Meteor.startup(function () {
        // on Client and Server
        EasySearch.createSearchIndex('players', {
            'collection'    : Players,              // instanceof Meteor.Collection
            'field'         : ['name', 'score'],    // can also be an array of fields
            'limit'         : 20,                   // default: 10
            'use'           : 'mongo-db'
        });
    });
@matteodem
Copy link
Owner

As of now it's only possible to search over strings. I'll create a bug on the easy-search repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants