DEDE57 configuration Sphinx supports typeID, mid

Source: Internet
Author: User
Configure the Sphinx after the Dede in the background to enable the specific configuration can Baidu, I just say here Sphinx support typeID this query condition.

After I have configured the Dede search is not supported typeid found code after found to write code but only the string type here should be an array so do not support well now start to say how to change.

Locate the Include directory, find the arc.searchview.class.php file, and locate the code under Function Countrecordsphinx (), which is approximately 379 lines found $this->sphinx-> SetFilter (' typeid ', Getsonids ($this->typeid));

Replaced by

$this->sphinx->setfilter (' typeid ', Explode (', ', Getsonids ($this->typeid)));

You can support typeID if you want to support mid.

Go down a few lines, about 384 lines to find

$this->sphinx->setfilter (' mid ', $this->mid);

Replaced by

$this->sphinx->setfilter (' mid ', array ($this->mid));

You can do it, as I've changed, so you can try it.

Note: I use the version of the Dede 5.7 Some things change the number of rows is not necessarily accurate, please do a backup before changing

The above describes the Dede57 configuration Sphinx Support typeID, Mid, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.