I have manage to configure, indexed and run sphinx and now I am using SphinxQL to retrieve some data.
Problem is, when I try to query, the result only gives me the "id". This what confuses me. My data on mySQL composes of the following columns
GENDB_ID //auto increment
GENDB_PDO //product origin, string
GENDB_FPN //family part number, string
GENDB_PN //part number, string
Questions:
Why does Sphinx set an alias "id" on my "GENDB_ID"?
When I try to specify what columns I want to get on my query I get "column does not exists" error. How can I query certain columns?
What is rt? my rt index always get skipped.
This is my config of sphinx:
#
# Minimal Sphinx configuration sample (clean, simple, functional)
#
source src1
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass = 1234
sql_db = sample
sql_port = 3306 # optional, default is 3306
sql_query = \
SELECT * \
FROM general
}
index test1
{
source = src1
path = C:/Sphinx/data/test1
min_infix_len = 3
}
index testrt //This one doesnt work I don't know why.
{
type = rt
rt_mem_limit = 128M
path = C:/Sphinx/data/testrt
rt_field = GENDB_PDO
}
indexer
{
mem_limit = 500M
}
searchd
{
listen = 9312
listen = 9306:mysql41
log = C:/Sphinx/log/searchd.log
query_log = C:/Sphinx/log/query.log
read_timeout = 5
max_children = 30
pid_file = C:/Sphinx/log/searchd.pid
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
workers = 2
binlog_path = C:/Sphinx/data
max_matches = 10000000
}