matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
437 stars 68 forks source link

Integrating both autosuggest and search, and making a little complex search query #499

Closed paduchurikowsik closed 7 years ago

paduchurikowsik commented 8 years ago

Hello guys, (i am new to meteor). the idea: a simple search form with two input fields, one take either school name or major and other take either state or city. and search the collection based on the two inputs given by use.

the input field also shows an autosuggestions dropdown

i was able to implement this using typeahead for meteor for autosuggestions and was simply running a query on collection ( .find($or: [{state: ....},{city: ...}]) );

i want to implement the same thing using easy search, but was not able to do that. how to i get auto suggest for both the text fields and then send that values to make the seach.

i tried using the getComponentDict() to get the search values so as to pass them to .search(), but was getting undefined. ( i may have an wrong idea)

i also went through the documentation, but was not able to understand the solution for this.

Could you please guide me with steps. Thanks You.

matteodem commented 7 years ago

Please make decisions regarding you how structure your data. The recipes might help here.