Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
SiB Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 110
    • Issues 110
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Packages
    • Packages
    • Container Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Startin blox
  • framework
  • SiB Core
  • Issues
  • #357

Closed
Open
Opened May 17, 2019 by Alexandre@alexandre
  • Report abuse
Report abuse

Search, space and multiple fields : The story of a search engine

Say my model has :

  • a first name : Alberto
  • a last name : Guterès

He is from Mexico, he is a little overweighted, wears a sombrero and have sweating patches at his armpits.

Now say I have the following sib-display :

<sib-display
  search-fields="name"
  set-name="first_name, last_name"
></sib-display>

If I type :

  • Alterto : it works !
  • Guteres : it works !
  • Alterto Guteres : it doesn't work..

The space is not handled between fields. I believe it should behave this way :

Pseudo code :

  1. Hello, I am the search engine
  2. Oh, here is the query Alberto Guteres
  3. I split you up by bitch : var queryStrings = ["Alberto", "Guteres"]
  4. If first_name +" "+ last_name contains all the strings within queryStrings : it is a match !

Not having this feature makes Alterto really sad :

72454169

Edited May 17, 2019 by Alexandre
Assignee
Assign to
0.10
Milestone
0.10
Assign milestone
Time tracking
None
Due date
None
3
Labels
P1 need spec search & filter
Assign labels
  • View project labels
Reference: startinblox/framework/sib-core#357