question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search: do not display irrelevant results

See original GitHub issue

Currently, 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:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
adaurcommented, Aug 16, 2016
0reactions
amcdnlcommented, Apr 15, 2017

Closing due to inactivity and age. If its still an issue, please reopen.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found