Search: do not display irrelevant results
See original GitHub issueCurrently, when the name “ethel price” is typed on the example, Ethel Price comes in first position, followed by some rows that should not be here.
It is strange since the filter function works well, returning only the entries the table should display.
I would have thought that the
this.rows.splice(0, this.rows.length);
would remove all the lines before pushing the ones we want, but it seems there is some kind of cache involved.
`updateFilter(val) { // remove existing this.rows.splice(0, this.rows.length);
// filter our data
let temp = this.temp.filter(function(d) {
return d.name.toLowerCase().indexOf(val) !== -1 || !val;
});
// here, the temp array is returning the correct values
// update the rows
this.rows.push(...temp);
// the strangest thing is that console.log(this.rows) has the same correct values as well!!
}`
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
6 Ways to Reduce Irrelevant Results on Google Search
Use Negative Keywords. If you're seeing irrelevant results, identify a keyword that has nothing to do with what you're looking for and make...
Read more >Suddenly, my Google search results are terrible. Chrome is up ...
You may also notice that when you search, a "normal" results page appears for a split second, then refreshes to show the ads...
Read more >Finding the relevance cutoff: when to stop showing search ...
Usually in search, you don't care if there's millions of results or ten. If the top ranked results are relevant, you can safely...
Read more >How do I stop Windows 10's search from bringing me irrelevant
There is no obvious way to turn off this behaviour. Does anyone know of a trick to shut it off? Right now, the...
Read more >Google claims it reduced irrelevant search results by over 50 ...
Google Search has reduced the irrelevant results shown in Google Search by over 50% in the last seven years, the search company announced....
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 FreeTop 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
Top GitHub Comments
Yup: https://plnkr.co/2kuaPiGe33zj2yNc6niu
Closing due to inactivity and age. If its still an issue, please reopen.