Comments (11)
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.
What is the exact question here?
from easy-search-leaderboard.
Sorry, I've already figured out the first one, so the second one
from easy-search-leaderboard.
What do you mean, please rephrase your question with reproduction steps if needed.
from easy-search-leaderboard.
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.
did you start Elastic Search as a seperate process? see http://matteodem.github.io/meteor-easy-search/docs/elastic-search/
from easy-search-leaderboard.
Elastic search is launched automatically and working well. And I've tried elastic search with your collection, that works.
from easy-search-leaderboard.
Then all is fine I assume
from easy-search-leaderboard.
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.
Give me an github repository with reproduction steps. (Otherwise I can't help you)
from easy-search-leaderboard.
What is the state of this?
from easy-search-leaderboard.
Related Issues (20)
- Using In-Memory collection instead of Session HOT 3
- Error cloning project with meteorite HOT 6
- Empty search result. Can't get full list back HOT 3
- getting error HOT 2
- Error: connect ECONNREFUSED occurs even with use mongodb HOT 9
- Adding score to search HOT 1
- Doesn't work in Safari
- Functional tests
- Autosuggest redraw HOT 1
- Pagination not reset after changing points HOT 4
- Adding sorting options in the example HOT 2
- using mongo and ES? HOT 1
- Is it possible to override one query parameter from the server? HOT 1
- Rewrite example with 1.2 leaderboard example
- Restrict access to not logged in users
- Update to latest meteor version HOT 2
- Uncaught TypeError: _easySearch.MongoDBEngine is not a constructor HOT 2
- Example requires "random" package HOT 1
- "Match error: Expected Collection", path: ""
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easy-search-leaderboard.