mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
f13709b13b
Summary: Depends on D20410. Ref T13272. Dashboards/Panels currently use older "ngram" indexing, which is a less-powerful precursor to Ferret. Throw away the ngram index and provide a Ferret index instead. Also: - Remove the NUX state, which links to the wrong place now and doesn't seem terribly important. - Add project tags to the search result list. - Make the "No Tags" tag a little less conspicious. Test Plan: - Indexed dashboards and panels. - Searched for dashboards and panels via SearchEngine using Ferret "query" field. - Searched for panels via "Add Existing Panel" datasource typeahead. - Searched for dashboards via "Add Menu Item > Dashboard" on a ProfileMenu via typeahead. - Viewed dashboard NUX state (no special state, but no more bad link to "/create/"). - Viewed dashboard list, saw project tags. - Viewed dashboards with no project tags ("No Tags" is now displayed but less visible). Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13272 Differential Revision: https://secure.phabricator.com/D20411
8 lines
422 B
SQL
8 lines
422 B
SQL
CREATE TABLE {$NAMESPACE}_dashboard.dashboard_dashboard_ffield (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
documentID INT UNSIGNED NOT NULL,
|
|
fieldKey VARCHAR(4) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
rawCorpus LONGTEXT NOT NULL COLLATE {$COLLATE_SORT},
|
|
termCorpus LONGTEXT NOT NULL COLLATE {$COLLATE_SORT},
|
|
normalCorpus LONGTEXT NOT NULL COLLATE {$COLLATE_SORT}
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|