"Fossies" - the Fresh Open Source Software Archive

Member "sphinx-2.2.11-release/test/test_030/test.xml" (19 Jul 2016, 1022 Bytes) of package /linux/www/sphinx-2.2.11-release.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0" encoding="utf-8"?>
    2 <test>
    3 
    4 <name>ext2 ranking</name>
    5 
    6 <config>
    7 indexer
    8 {
    9     mem_limit       = 16M
   10 }
   11 
   12 searchd
   13 {
   14     <searchd_settings/>
   15 }
   16 
   17 source srctest
   18 {
   19     type            = mysql
   20     <sql_settings/>
   21     sql_query       = SELECT document_id, body FROM test_table
   22 }
   23 
   24 index test
   25 {
   26     source          = srctest
   27     path            = <data_path/>/test
   28     stopwords       = stopwords.txt
   29     min_word_len    = 3
   30 }
   31 </config>
   32 
   33 <queries>
   34 <query mode="extended2">one two three</query>
   35 <query mode="extended2">senior pastor of riverside church</query>
   36 </queries>
   37 
   38 <db_create>
   39 CREATE TABLE `test_table`
   40 (
   41     `document_id` int(11) NOT NULL default '0',
   42     `body` varchar(255) NOT NULL default ''
   43 )
   44 </db_create>
   45 
   46 <db_drop>
   47 DROP TABLE IF EXISTS `test_table`
   48 </db_drop>
   49 
   50 <db_insert>
   51 INSERT INTO `test_table` VALUES
   52 ( 1, 'one two three' ),
   53 ( 2, 'one two three four' ),
   54 ( 3, 'one then two then three then four' ),
   55 ( 4, 'senior pastor of Riverside church' ),
   56 ( 5, 'senior pastor and the Riverside church' )
   57 </db_insert>
   58 
   59 </test>