From bedd176a5406003631da42366736fd5ebae29135 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 1 Feb 2016 20:33:58 +0100 Subject: Improved search: combine AND, exact terms and exclude search. --- tests/utils/ReferenceLinkDB.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tests/utils') diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php index da3e8c65..b64b58bf 100644 --- a/tests/utils/ReferenceLinkDB.php +++ b/tests/utils/ReferenceLinkDB.php @@ -16,12 +16,21 @@ class ReferenceLinkDB $this->addLink( 'Free as in Freedom 2.0', 'https://static.fsf.org/nosvn/faif-2.0.pdf', - 'Richard Stallman and the Free Software Revolution', + 'Richard Stallman and the Free Software Revolution. Read this.', 0, '20150310_114633', 'free gnu software stallman -exclude' ); + $this->addLink( + 'Note:', + 'local', + 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this.', + 0, + '20150310_114651', + '' + ); + $this->addLink( 'MediaGoblin', 'http://mediagoblin.org/', -- cgit v1.2.3 From 522b278b03280ed809025ebbeb3eac284b68bf81 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 2 Feb 2016 19:42:48 +0100 Subject: Support text search across link fields. --- tests/utils/ReferenceLinkDB.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/utils') diff --git a/tests/utils/ReferenceLinkDB.php b/tests/utils/ReferenceLinkDB.php index b64b58bf..61faef05 100644 --- a/tests/utils/ReferenceLinkDB.php +++ b/tests/utils/ReferenceLinkDB.php @@ -14,21 +14,21 @@ class ReferenceLinkDB function __construct() { $this->addLink( - 'Free as in Freedom 2.0', + 'Free as in Freedom 2.0 @website', 'https://static.fsf.org/nosvn/faif-2.0.pdf', 'Richard Stallman and the Free Software Revolution. Read this.', 0, '20150310_114633', - 'free gnu software stallman -exclude' + 'free gnu software stallman -exclude stuff' ); $this->addLink( - 'Note:', + 'Link title: @website', 'local', 'Stallman has a beard and is part of the Free Software Foundation (or not). Seriously, read this.', 0, '20150310_114651', - '' + 'stuff' ); $this->addLink( -- cgit v1.2.3