开发者

How can sphinx find words in cli search, but not in php script?

开发者 https://www.devze.com 2023-02-21 20:01 出处:网络
For some words, I get matches in both the command line search tool, and in a php script. But for other words, I get say 1 result in the command line, and no results at all in the php script.

For some words, I get matches in both the command line search tool, and in a php script.

But for other words, I get say 1 result in the command line, and no results at all in the php script.

I have tried these:

indexer --all

indexer --rotate

Close the searchd window and execute it again

Restart the apache

Etc.

But I'm still getting 1 result in the command line, 0 results in the script.

Any ideas?

I'm on windows 7, xampp, and sphinx 0.9.9

No, I'm not gonna use that for production. Only for development / testing.

E开发者_JS百科dit: Changes to the index reflected on the script after a reboot. Why is that?


The command line search script executes a basic search with no options against all indexes, if you're selecting an index within PHP, or setting any options you can limit the scope of results and end up omitting results.

0

精彩评论

暂无评论...
验证码 换一张
取 消