mysql - why index is not displayed, while indexer indexed successfully in sphinx? -


when run indexer -all don't error, i'm unable see it. indexer --all

using config file '/etc/sphinx/sphinx.conf'... indexing index 'indtest'... collected 4 docs, 0.0 mb sorted 0.0 mhits, 100.0% done total 4 docs, 193 bytes total 0.008 sec, 21627 bytes/sec, 448.22 docs/sec skipping non-plain index 'testrt'... total 4 reads, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg total 12 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg 

in sphinx.conf, have given:

source src1 {     type            = mysql      sql_host        = <myhostname>     sql_user        = <myusername>     sql_pass        = <mypass>     sql_db          = test     sql_port        = 3306  # optional, default 3306      sql_query       = \         select id, group_id, unix_timestamp(date_added) date_added, title, content \         documents      sql_attr_uint       = group_id     sql_attr_timestamp  = date_added } index indtest {     source          = src1     path            = /mypath/sphinx/data/indtest } 

i checked @ given path, 9 files of indtest created extensions spa,spd,spe,sph,spi,spk,spm,spp,sps.
but when fire show tables; after connecting searchd (mysql -h0 -p9306), couldn't see index. problem , solution? related file access permission issue?

got solved, after struggle. problem got caught when ran indexer --rotate option. error thrown after running indexer --rotate --all

warning: failed open pid_file '/mypath/sphinx/log/searchd.pid'. warning: indices not rotated. 

when tried stop searchd, /usr/bin/searchd --stop, got

fatal: stop: pid file '/mypath/sphinx/log/searchd.pid' not exist or not readable finally, killed process , started again.

thanks @barryhunter help. newbie, might have taken time problem fixed.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -