1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
<?xml version="1.0" encoding="utf-8"?>
<test>
<name>snippets vs stopwords</name>
<config>
searchd
{
<searchd_settings/>
}
source test
{
type = mysql
<sql_settings/>
sql_query = SELECT 1, 'text';
}
index test
{
source = test
path = <data_path/>/test
stopwords = <this_test/>/stopwords.txt
morphology = stem_en
phrase_boundary = U+002C
phrase_boundary_step = 4
}
</config>
<db_insert>select 1;</db_insert>
<sphqueries>
<!-- query mode phase should match to exact_phrase -->
<sphinxql>CALL SNIPPETS('click edit', 'test', '"click TO edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('click word1 WITH edit', 'test', '"click TO word1 edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('click WITH word1 edit', 'test', '"click TO word1 edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('clicking ANY edit', 'test', '"click TO edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('click ANY edit', 'test', '"click TO edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('edit ANY click', 'test', '"click TO edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('clicking WITH ANY AND ALL TO edit', 'test', '"click TO edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('click WITH ANY AND ALL TO edit', 'test', '"click TO edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('either click, edit', 'test', '"click TO edit"', 1 AS query_mode )</sphinxql>
<sphinxql>CALL SNIPPETS('either click, edit', 'test', '"click TO ANY AND ALL edit"', 1 AS query_mode )</sphinxql>
<!-- exact phrase phase should match to query_mode -->
<sphinxql>CALL SNIPPETS('click edit', 'test', 'click TO edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('click word1 WITH edit', 'test', 'click TO word1 edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('click WITH word1 edit', 'test', 'click TO word1 edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('clicking ANY edit', 'test', 'click TO edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('click ANY edit', 'test', 'click TO edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('edit ANY click', 'test', 'click TO edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('clicking WITH ANY AND ALL TO edit', 'test', 'click TO edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('click WITH ANY AND ALL TO edit', 'test', 'click TO edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('either click, edit', 'test', 'click TO edit', 1 AS exact_phrase )</sphinxql>
<sphinxql>CALL SNIPPETS('either click, edit', 'test', 'click TO ANY AND ALL edit', 1 AS exact_phrase )</sphinxql>
</sphqueries>
</test>
|