Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Backend - Engine
Minds Backend - Engine
  • Project overview
  • Repository
  • Issues 270
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 34
  • CI / CD
  • Security & Compliance
  • Packages
  • Analytics
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds Backend - EngineMinds Backend - Engine
  • Issues
  • #708

Closed
Open
Opened 6 months ago by Nicholas Lewis@javanick
Report abuse New issue

(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

image

Possible fixes

I'm presuming something needs tweaking at an ElasticSearch level.

/label ~"T - Bug" ~"S - Triage:new"

Edited 5 months ago by Ben Hayward

Linked issues
1

Relates to

  • (chore): Re-index all autosuggested users with new analyzer to support numbers
    front #1749
    Jan 28
    Avatar for Mark Harding
  • Discussion 7
  • Designs 0
  • Nicholas Lewis @javanick added P - Channels label 6 months ago

    added label

  • Nicholas Lewis @javanick added Priority::1 - High Product::Search Squad::Green Type::Bug (Triage) scoped labels 6 months ago

    added scoped labels

  • Ben Hayward @benhayward.ben added Type::Bug scoped label and automatically removed Type::Bug (Triage) label 5 months ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben changed title from (bug): channel names that are numbers do not show in search to (bug): Channel names that are numbers do not show in search 5 months ago

    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

  • Ben Hayward @benhayward.ben changed the description 5 months ago

    changed the description

  • Bill Ottman :dragon_face: @ottman added Status::Backlog scoped label 1 month ago

    added scoped label

  • Bill Ottman
    Bill Ottman :dragon_face: @ottman · 1 month ago
    Owner

    Screenshot_20200105-104418_Twitter

    Screenshot_20200105-104413_Twitter

  • Bill Ottman :dragon_face: @ottman added Sprint::01/15 - Youthful Yabby scoped label 1 month ago

    added scoped label

  • Bill Ottman
    Bill Ottman :dragon_face: @ottman · 1 month ago
    Owner

    Related front#1749

  • Brian Hatchet :speech_balloon: @brianhatchet marked this issue as related to front#1749 1 month ago

    marked this issue as related to front#1749

  • Brian Hatchet :speech_balloon: @brianhatchet assigned to @benhayward.ben 1 month ago

    assigned to @benhayward.ben

  • Brian Hatchet :speech_balloon: @brianhatchet added Squad::Yellow scoped label and automatically removed Squad::Green label 1 month ago

    added scoped label and automatically removed label

  • Brian Hatchet :speech_balloon: @brianhatchet changed weight to 4 1 month ago

    changed weight to 4

  • Brian Hatchet :speech_balloon: @brianhatchet changed milestone to %Sprint::01/15 - Youthful Yabby 1 month ago

    changed milestone to %Sprint::01/15 - Youthful Yabby

  • Brian Hatchet :speech_balloon: @brianhatchet unassigned @benhayward.ben 1 month ago

    unassigned @benhayward.ben

  • Brian Hatchet :speech_balloon: @brianhatchet assigned to @benhayward.ben and unassigned @brianhatchet 2 weeks ago

    assigned to @benhayward.ben and unassigned @brianhatchet

  • Ben Hayward @benhayward.ben added Status::InProgress scoped label and automatically removed Status::Backlog label 2 weeks ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::Backlog scoped label and automatically removed Status::InProgress label 2 weeks ago

    added scoped label and automatically removed label

  • Brian Hatchet :speech_balloon: @brianhatchet added Sprint::01/29 Abatic Aenome scoped label and automatically removed Sprint::01/15 - Youthful Yabby label 2 weeks ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::InProgress scoped label and automatically removed Status::Backlog label 1 week ago

    added scoped label and automatically removed label

  • Ben Hayward
    Ben Hayward @benhayward.ben · 1 week ago
    Developer

    We've currently got the suggest field of user mapped like this in the minds_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.

  • Ben Hayward @benhayward.ben added 3h of time spent at 2020-01-30 1 week ago

    added 3h of time spent at 2020-01-30

  • Ben Hayward
    Ben Hayward @benhayward.ben · 1 week ago
    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.

  • Ben Hayward
    Ben Hayward @benhayward.ben · 1 week ago
    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.

  • Ben Hayward @benhayward.ben added 7h of time spent at 2020-01-31 1 week ago

    added 7h of time spent at 2020-01-31

  • Ben Hayward @benhayward.ben added Status::Requires Changes scoped label and automatically removed Status::InProgress label 1 week ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::Review scoped label and automatically removed Status::Requires Changes label 1 week ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::Validate on Production scoped label and automatically removed Status::Review label 1 week ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::Blocked scoped label and automatically removed Status::Validate on Production label 1 week ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::InProgress scoped label and automatically removed Status::Blocked label 21 hours ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::Requires Changes scoped label and automatically removed Status::InProgress label 21 hours ago

    added scoped label and automatically removed label

  • Ben Hayward @benhayward.ben added Status::Blocked scoped label and automatically removed Status::Requires Changes label 18 hours ago

    added scoped label and automatically removed label

  • Ben Hayward
    Ben Hayward @benhayward.ben · 18 hours ago
    Developer

    Search isn't working for my locally currently

  • Brian Hatchet :speech_balloon: @brianhatchet removed milestone 58 minutes ago

    removed milestone

  • Brian Hatchet :speech_balloon: @brianhatchet added to epic &126 55 minutes ago

    added to epic &126

  • Brian Hatchet :speech_balloon: @brianhatchet added Sprint::02/12 - Baritone Baboon scoped label and automatically removed Sprint::01/29 Abatic Aenome label 52 minutes ago

    added scoped label and automatically removed label

  • Brian Hatchet :speech_balloon: @brianhatchet removed Sprint::02/12 - Baritone Baboon label 52 minutes ago

    removed label

  • Ben Hayward
    Ben Hayward @benhayward.ben · 50 minutes ago
    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.

Please register or sign in to reply
Assignee
Ben Hayward's avatar
Ben Hayward @benhayward.ben
Elastic Search Upgrade
Epic
Elastic Search Upgrade
None
Milestone
None
Time tracking
Spent: 1d 2h
None
Due date
None
6
Labels
P - Channels Priority::1 - High Product::Search Squad::Yellow Status::Blocked Type::Bug
4
Weight
4
Confidentiality
Not confidential
Lock issue
Unlocked
4
4 participants
user avatar
user avatar
user avatar
user avatar
Reference: minds/engine#708