BlueWaveTechnologies / BlueWave

Web application used to create charts and dashboards using a graph database
MIT License
5 stars 3 forks source link

Advanced search features #274

Closed sashatrubetskoy closed 2 years ago

sashatrubetskoy commented 2 years ago

Users want advanced functionality for search. Below explains how it should work. This is based on generally-accepted, industry-standard search syntax including Google Search and online forums.

Desired functionality

Operator Symbols Comments
Conjunction (AND) (none) This should be the default behavior. On Google and other search platforms, when you enter multiple terms, it returns only results that contain all of the terms.
Negation (NOT) - Specifies a term that must not match. Applied in front of a single term or parenthesized subexpression. The minus sign does not require padding to the right.
Disjunction (OR) \| Applied between two terms, with surrounding space. Specifies that either of the terms may match. Can be chained to more terms (optional feature)
sashatrubetskoy commented 2 years ago

User input parsing behavior regular expression: (\-*'.*?'|\-*".*?"|\-*\S+)

image