Centos-linux PHP Sphinx Configuration Problems ~

Source: Internet
Author: User
Create an index bin/indexer -c etc/sphinx.conf --all, after running, the following exception error occurred:

using config file 'etc/sphinx.conf'...indexing index 'test1'...collected 4 docs, 0.0 MBsorted 0.0 Mhits, 100.0% donetotal 4 docs, 193 bytestotal 0.006 sec, 28357 bytes/sec, 587.71 docs/sec--- indexing index 'test1stemmed'...ERROR: index 'test1stemmed': infixes and morphology are enabled, enable_star=0---skipping non-plain index 'dist1'...skipping non-plain index 'rt'...total 3 reads, 0.000 sec, 1.9 kb/call avg, 0.0 msec/call avgtotal 9 writes, 0.000 sec, 1.4 kb/call avg, 0.0 msec/call avg

This is the Sphinx index when the read problem, I search content will also have problems, but the content can be searched out ~

Search command: The bin/search -c etc/sphinx.conf test error is as follows:

words:1. 'test': 3 documents, 5 hits---index 'test1stemmed': search error: failed to open /usr/local/sphinx/var/data/test1stemmed.sph: No such file or directory.---

Seek expert guidance ~ ~

Reply content:

After the index bin/indexer -c etc/sphinx.conf --all is created, the following exception error occurs after running:

using config file 'etc/sphinx.conf'...indexing index 'test1'...collected 4 docs, 0.0 MBsorted 0.0 Mhits, 100.0% donetotal 4 docs, 193 bytestotal 0.006 sec, 28357 bytes/sec, 587.71 docs/sec--- indexing index 'test1stemmed'...ERROR: index 'test1stemmed': infixes and morphology are enabled, enable_star=0---skipping non-plain index 'dist1'...skipping non-plain index 'rt'...total 3 reads, 0.000 sec, 1.9 kb/call avg, 0.0 msec/call avgtotal 9 writes, 0.000 sec, 1.4 kb/call avg, 0.0 msec/call avg

This is the Sphinx index when the read problem, I search content will also have problems, but the content can be searched out ~

Search command: The bin/search -c etc/sphinx.conf test error is as follows:

words:1. 'test': 3 documents, 5 hits---index 'test1stemmed': search error: failed to open /usr/local/sphinx/var/data/test1stemmed.sph: No such file or directory.---

Seek expert guidance ~ ~

Add inside the incremental index
Enable_star = 1

Like mine.
Index Deltc:taskquery
{
Source = DELTC
Path =/var/lib/sphinxsearch/data/taskquerydelta
morphology = stem_en
Enable_star = 1
}

In the configuration, the path path of the index is used in absolute path and ensures that there is

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.