How can we perfectly set the sphinx matching degree?

Source: Internet
Author: User
How to perfectly set the sphinx matching using the sphinx full-text search has become a problem during the search. for example, if I search for the zodiac, the results will be displayed in "Happy 12" Street, the patron saint of the zodiac, the new zodiac, the zodiac, and the Zodiac news are true, but I want to put the Zodiac first, that is, the first, that is, the first, and the other fuzzy match back, I don't know how to set it in sphinx. which of the following statements can help you set sphinx matching?
After using sphinx full-text search, sorting becomes a problem during the search. for example, when I search for "12 zodiac signs", the results are "12 Zodiac Happy Street" and "12 Zodiac Patron Saint ", "New Zodiac", "Zodiac", and "Zodiac mobilization" are true, but I want to rank "Zodiac" first, that is, "Zodiac" is equal to the first place, I don't know how to set the backend of other fuzzy matches in the sphexample. who can help?

Share:


------ Solution --------------------
Use SphinxClient: setSortMode to try it.

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.