component/component.github.io

search text indexing failing?

Closed this issue · 9 comments

tj commented

"touch" should display fastclick which has "Polyfill to remove click delays on browsers with touch UIs." touch right in the description

tj commented

same with "debounce"

Hm, maybe taking a manual request on your redis to see, if it's even indexed, would help?

tj commented

just did a new fetch, looks fine for debounce but not touch still

redis 127.0.0.1:6379> smembers word:debounce
1) "matthewmueller/debounce"
2) "jonathanong/debounce-hashed"

That is really weird... I could only imagine some query generators failing, but that wouldn't make sense.
Did you try logging stuff?

app.get('/search/:query', function(req, res){
  // ...
  // perform search
  query = util.wordKeys(query);
  db.sunion(query, function(res) {
    console.log(query, res);
    reply(res);
  });
});
tj commented

I haven't looked into it at all yet, probably just a bug in the tokenizing thingy

component.io is linked to from the wiki, but this issue is possibly so severe that it's better not to.
The search really seems unstable and it does not seem to have much fuzziness capabilities.
A search in the wiki-list is much more reliable, it's also easier to browse since each component
is associated with a context.
As a failing test, try searching for "onload" or "load", then do a "cmd + f" with the same query.

tj commented

ah shit it's definitely down again that's why, the site itself will remain up and GET /all is cached, damn, I'll look into this

tj commented

Github changed their api apparently

tj commented

k back online now but I still need to look into this