2015-04-02 15 views
5

我有一個Opensuse 13.2操作系統。我還安裝了獅身人面像搜索引擎。直到我試圖在終端執行搜索命令,一切都很好。無法執行找不到的獅身人面像搜索命令

search: command not found 

在此之前,我配置sphinx,執行索引器,執行searchd,都很好。

這裏是searchd的輸出命令:

vitalik-opensuse:/home/vitalik # searchd 
Sphinx 2.2.8-id64-release (rel22-r4942) 
Copyright (c) 2001-2015, Andrew Aksyonoff 
Copyright (c) 2008-2015, Sphinx Technologies Inc(http://sphinxsearch.com) 

using config file '/etc/sphinx/sphinx.conf'... 
listening on all interfaces, port=9312 
listening on all interfaces, port=9306 
precaching index 'deal' 
precaching index 'deal-have'         
precaching index 'deal-want'         
precached 3 indexes in 0.086 sec 

這裏是索引輸出:

vitalik-opensuse:/home/vitalik # indexer --all 
Sphinx 2.2.8-id64-release (rel22-r4942) 
Copyright (c) 2001-2015, Andrew Aksyonoff 
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com) 

using config file '/etc/sphinx/sphinx.conf'... 
indexing index 'deal'... 
collected 7 docs, 0.0 MB 
sorted 0.0 Mhits, 100.0% done 
total 7 docs, 1355 bytes 
total 0.021 sec, 62708 bytes/sec, 323.95 docs/sec 
indexing index 'deal-have'... 
collected 7 docs, 0.0 MB 
sorted 0.0 Mhits, 100.0% done 
total 7 docs, 1355 bytes 
total 0.007 sec, 193240 bytes/sec, 998.28 docs/sec 
indexing index 'deal-want'... 
collected 7 docs, 0.0 MB 
sorted 0.0 Mhits, 100.0% done 
total 7 docs, 1355 bytes 
total 0.006 sec, 207758 bytes/sec, 1073.29 docs/sec 
skipping non-plain index 'dist1'... 
total 12 reads, 0.000 sec, 0.8 kb/call avg, 0.0 msec/call avg 
total 36 writes, 0.000 sec, 0.4 kb/call avg, 0.0 msec/call avg 

但我還是不能執行搜索命令,試圖通過終端搜索。 獅身人面像版本是2.2.8,安裝從 opensuse-13.2-server-search-repository 我做錯了什麼? 謝謝。

回答

5

search工具不再存在。它在幾個版本之前被刪除。

它早已被打破,而不是一個現實的搜索體驗。

從api文件夾中使用test.php等來測試searchd。

+0

謝謝你的回答! – vitasya 2015-04-06 08:54:57