How do I merge search functions that use different inputs
See original GitHub issueMeteor-easy-search package uses a Blaze incorporated search input bar in the style below:
{{> EasySearch.Input index=myIndex}}
Im also using Framework7, which also has a search tool that is in this format.
So I tried to combine the 2 like this
<div class="page">
<!-- Search Bar -->
<form class="searchbar">
<div class="searchbar-input">
<input type="search" placeholder="Search"> <!-- the input -->
{{> EasySearch.Input index=myIndex}} <!-- putting here doesnt work -->
{{> EasySearch.Input index=myIndex type ="search"}} <!-- trying my luck, doesnt work-->
<a href="#" class="searchbar-clear"></a>
</div>
<a href="#" class="searchbar-cancel">Cancel</a>
</form>
<div class="searchbar-overlay"></div>
<div class="page-content">
<div class="content-block searchbar-not-found"> Nothing found </div>
<div class="list-block list-block-search searchbar-found">
<!-- this part clashes with easy-search's code here
{{#EasySearch.IfNoResults index=myIndex}}
<div>No results found!</div>
{{/EasySearch.IfNoResults}}
-->
<ul> <!-- search results --> </ul>
</div>
</div>
</div>
I tried to insert the Blaze formatted easy-search bar and it [1] screws the formatting of Framework7 bar and [2] the easy-search does not work. Im trying to search by the header of the to-do item, as well as its contents. Also search results formatting clashes too.
How should I go about the implementation? Do I use both or pick one? Im looking through search through 2 collections, the posts and the messages parked under each post.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
javascript - Merge Search Results From Multiple Field Inputs
Consider your deviceName field is the first column then you can write like this to search in this column only $(document).ready(function(){ ...
Read more >Merge Sort Algorithm - GeeksforGeeks
It divides input array in two halves, calls itself for the two halves ... list and then combine them into another list in...
Read more >Learn to combine multiple data sources (Power Query)
In Data Preview, select the ProductID, ProductName, CategoryID, and QuantityPerUnit columns (use Ctrl+Click or Shift+Click). Select Remove Columns > Remove ...
Read more >Combining Datasets: Merge and Join | Python Data Science ...
The pd. merge() function recognizes that each DataFrame has an "employee" column, and automatically joins using this column as a key. The result...
Read more >Merge (Data Management)—ArcGIS Pro | Documentation
Use this tool to combine datasets from multiple sources into a new, single output dataset. All input feature classes must be of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks @matteodem, great help again. With the template helper above, will the below be a correct understanding? Im using easy-search to search, but with FW7 clear and cancel buttons, as well as FW7 search bar UI formatting. Not sure how do I bring out in html the cancel and clear functions of FW7.
How did you try to put in the search components? Please give me the same html code with the components in there.