Coder Social home page Coder Social logo

Comments (11)

demitree avatar demitree commented on August 18, 2024

I've created a temp collection, fill it with part of 'players' data and use this collection to do the search, the collection is well charged and it copies all documents to elasticsearch(checked), but for searching, it doesn't work. Which is bizare to me since the only difference is the collection

from easy-search-leaderboard.

matteodem avatar matteodem commented on August 18, 2024

What is the exact question here?

from easy-search-leaderboard.

demitree avatar demitree commented on August 18, 2024

Sorry, I've already figured out the first one, so the second one

from easy-search-leaderboard.

matteodem avatar matteodem commented on August 18, 2024

What do you mean, please rephrase your question with reproduction steps if needed.

from easy-search-leaderboard.

demitree avatar demitree commented on August 18, 2024

I clone this project. At first i want to use my own mongodb collection but there's a lot problems so I've just half-copied your collection, the new collection contains part of your origin collection data.

Your origin collection :
"players" : p1, p2, p3....

New created collection :
"test" : p1, p3 ...

then I use the collection "test" to run with elasticsearch, it failed.

BTW, I simplified the whole project to display only a searchbar and resultlist. So I've only changed the following line:

test = new Meteor.Collection('player');

to

test = new Meteor.Collection('test');

and following the definition of searchIndex :

EasySearch.createSearchIndex('test', {
'collection': test,
'field': ['name'],
'use' : 'elastic-search',
'query': function(searchString) {
var query = {
"fuzzy_like_this":{
"fields" : ["name"],
"like_text" : searchString
}
};
console.log(query);
return query;
}
});

from easy-search-leaderboard.

matteodem avatar matteodem commented on August 18, 2024

did you start Elastic Search as a seperate process? see http://matteodem.github.io/meteor-easy-search/docs/elastic-search/

from easy-search-leaderboard.

demitree avatar demitree commented on August 18, 2024

Elastic search is launched automatically and working well. And I've tried elastic search with your collection, that works.

from easy-search-leaderboard.

matteodem avatar matteodem commented on August 18, 2024

Then all is fine I assume

from easy-search-leaderboard.

demitree avatar demitree commented on August 18, 2024

NO, the last post just respond your last question...Which means that es works for your collection, but for another collection it doesn't work I really don't understand how could that be.

from easy-search-leaderboard.

matteodem avatar matteodem commented on August 18, 2024

Give me an github repository with reproduction steps. (Otherwise I can't help you)

from easy-search-leaderboard.

matteodem avatar matteodem commented on August 18, 2024

What is the state of this?

from easy-search-leaderboard.

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.