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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
|
source restaurant_src { type = mysql sql_host = localhost sql_user = root sql_pass = 123456 sql_db = lifemenu_restaurant sql_port = 3306 sql_query_pre = SET NAMES UTF8
sql_query_range = SELECT MIN(id),MAX(id) FROM restaurant_sphinx sql_range_step = 10000
sql_query = select id, id as restaurant_id, restaurant_name, phone, price, rating, \ city_id, address \ from restaurant_sphinx \ WHERE id>=$start AND id<=$end
sql_field_string = restaurant_name sql_field_string = phone
sql_attr_uint = city_id
sql_attr_uint = price sql_attr_float = rating sql_attr_string = address
}
index restaurant_index { source = restaurant_src path = /usr/local/coreseek/var/data/restaurant docinfo = extern mlock = 0 morphology = none min_word_len = 1 dict=crc html_strip = 0
charset_dictpath = /usr/local/mmseg3/etc/ charset_type = zh_cn.utf-8 ngram_len = 0 }
indexer { mem_limit = 1024M
}
searchd { listen = 9312 listen = 127.0.0.1:9306:mysql41 listen = 192.168.1.125:9307:mysql41 read_timeout = 5 max_children = 30 max_matches = 1000 seamless_rotate = 0 preopen_indexes = 0 unlink_old = 1
pid_file = /usr/local/coreseek/var/log/searchd.pid log = /usr/local/coreseek/var/log/searchd.log query_log = /usr/local/coreseek/var/log/query.log binlog_path =
compat_sphinxql_magics = 0 }
|