Search for linux gamer doesn't return @TheLinuxGamer #157

Closed
opened 2019-06-11 18:37:25 +02:00 by tzarebczan · 2 comments
tzarebczan commented 2019-06-11 18:37:25 +02:00 (Migrated from github.com)

searching linuxgamer / thelinuxgamer does

We should probably start searching channel titles/description with the new metadata too

searching `linuxgamer` / `thelinuxgamer` does We should probably start searching channel titles/description with the new metadata too
tiger5226 commented 2019-06-12 05:14:47 +02:00 (Migrated from github.com)

It looks like elasticsearch has a feature we can leverage called Word Delimiter Token Filter.

this appears to be an example of how to set it for a different filter but looks applicable.

It looks like elasticsearch has a feature we can leverage called [Word Delimiter Token Filter](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/analysis-word-delimiter-tokenfilter.html). [this](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/analysis-asciifolding-tokenfilter.html) appears to be an example of how to set it for a different filter but looks applicable.
tiger5226 commented 2019-07-14 03:05:05 +02:00 (Migrated from github.com)

I was able to fix this via adding sub queries that check the concatenation of search terms. So Linux Gamer becomes: Linux, Gamer, and LinuxGamer. This is now properly found as a substring for the channel name.

It ranks 37 now with https://lighthouse.lbry.com/search?s=Linux%20Gamer&size=50

I was able to fix this via adding sub queries that check the concatenation of search terms. So `Linux Gamer` becomes: `Linux`, `Gamer`, and `LinuxGamer`. This is now properly found as a substring for the channel name. It ranks 37 now with https://lighthouse.lbry.com/search?s=Linux%20Gamer&size=50
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lighthouse.js#157
No description provided.