1# Copyright(C) 2011-2013  Kouhei Sutou <kou@clear-code.com>
2# Copyright(C) 2013  Kenji Maruyama <mmmaru777@gmail.com>
3#
4# This library is free software; you can redistribute it and/or
5# modify it under the terms of the GNU Lesser General Public
6# License as published by the Free Software Foundation; either
7# version 2.1 of the License, or (at your option) any later version.
8#
9# This library is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12# Lesser General Public License for more details.
13#
14# You should have received a copy of the GNU Lesser General Public
15# License along with this library; if not, write to the Free Software
16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1335  USA
17
18--source ../../include/mroonga/have_mroonga.inc
19
20--disable_warnings
21DROP TABLE IF EXISTS memos;
22--enable_warnings
23
24SET NAMES utf8;
25CREATE TABLE memos (
26  content TEXT,
27  FULLTEXT INDEX (content)
28) DEFAULT CHARSET=utf8;
29
30INSERT INTO memos VALUES ("Today is good day.");
31INSERT INTO memos VALUES ("Tomorrow will be good day.");
32INSERT INTO memos VALUES ("Today is fine.");
33
34SELECT * FROM memos
35         WHERE MATCH (content) AGAINST ("*D+ today OR tomorrow day" IN BOOLEAN MODE);
36
37DROP TABLE memos;
38
39--source ../../include/mroonga/have_mroonga_deinit.inc
40