(bug): Channel names that are numbers do not show in search
Summary
It seems that usernames that are numbers, or begin with numbers, do not appear in search. REF: https://www.minds.com/newsfeed/1003716877810827264
Steps to reproduce
Search "1085243" in the top search bar. Observe ES does not find the user.
Platform information
Cross-platform
What is the current bug behavior?
ElasticSearch is not weighting numerical names appropriately.
What is the expected correct behavior?
The name should appear when typed in.
Relevant logs and/or screenshots
Possible fixes
I'm presuming something needs tweaking at an ElasticSearch level.
/label ~"T - Bug" ~"S - Triage:new"
added scoped labels
added scoped label and automatically removed label
changed title from (bug): hannel names that are numbers do not show in search to (bug): hannel names that are numbers do not show in search
changed the description
added scoped label
- Owner
added scoped label
- Owner
Related front#1749
marked this issue as related to front#1749
assigned to @benhayward.ben
added scoped label and automatically removed label
changed weight to 4
changed milestone to %Sprint::01/15 - Youthful Yabby
unassigned @benhayward.ben
assigned to @benhayward.ben and unassigned @brianhatchet
added scoped label and automatically removed label
added scoped label and automatically removed label
added scoped label and automatically removed label
added scoped label and automatically removed label
- Developer
We've currently got the suggest field of
user
mapped like this in theminds_badger
mapping"suggest": { "type": "completion", "analyzer": "simple", "preserve_separators": true, "preserve_position_increments": true, "max_input_length": 50 },
Based on this thread It looks like the simple anaylyzer strips the number from the token. This is indeed the case looking at the returned query.
added 3h of time spent at 2020-01-30
- Developer
Based on this, we are going to have to make a change to the mappings to change the analyzer to a different one; probably standard will work fine.
- Developer
Had to nuke my local, as I couldn't get Dockerfile changes to stick for elasticsearch, currently it is down. Tried nuking and using older minds/minds commits but that gets nowhere. Looks like some issues in the comms between server and angular.
added 7h of time spent at 2020-01-31
added scoped label and automatically removed label
added scoped label and automatically removed label
added scoped label and automatically removed label
added scoped label and automatically removed label
added scoped label and automatically removed label
added scoped label and automatically removed label
added scoped label and automatically removed label
- Developer
Search isn't working for my locally currently
removed milestone
added to epic &126
added scoped label and automatically removed label
removed label
- Developer
If this is being abandoned until &126, I think this particular issue can be solved simply by changing the user suggestions analyzer to a standard analyzer rather than the simple analyzer, which strips out numbers.