Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6830709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:39:02+00:00 2026-05-26T22:39:02+00:00

I have a similar question here: Sphinx search ranking broken? , but thought I’d

  • 0

I have a similar question here: Sphinx search ranking broken?, but thought I’d ask a simpler version of it to see if I got any hits.

Does anyone know how to affect the weights in Sphinx search results? Specifically for exact matches.

I know changing the ranking mode gives you different weight scales, but most of the hits I’m getting have the same weight, for example searching for “once” produces disparaging results like:

"once we were warriors" weight = 1637
"once" weight = 1637
"Once upon a time in the west" weight = 1637

Surely, at least the first one should have a different weight since it’s an exact match.

Been fighting this for a couple of days, any help would be very welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:39:03+00:00Added an answer on May 26, 2026 at 10:39 pm

    Similar discussion here: Sphinx search ranking broken?. I created another question in the hopes that by simplifying things I would get more answers since none were forthcoming.

    Turns out that SPH_RANK_SPH04 is not included in the sphinxapi.php file in version 0.9.9 (release)!!! So even though you’re calling it it’s not taken into account and furthermore does not produce an error.

    This is terrible because it makes it very hard to troubleshoot.

    I’ve posted this as the answer in the hopes that it helps someone else. We lost almost 2 days going crazy over this until we figured it out.

    Furthermore, there is a bug in 2.0.1 which doesn’t really bring some exact matches to the front, for that you need 2.0.2 (which you need to get from SVN) or above, but I’d be very weary of using experimental versions in production.

    Hopefully the Sphinx developers will take care of this soon.

    PS
    Looking back at the developer diaries, it does say:

    “As of 1.10-beta, Sphinx has 8 different rankers”

    We upgraded from 0.9.9 to 2.0.1 and must have left the api file behind, and in desperation I never even checked this. It would still be nice for Sphinx to throw an error if the ranking mode doesn’t exist (as it does for other modes such as matching), and the 2.0.1 bug is still there as far as we can tell in our tests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have asked a similar question before here , but after much thought, and
There is a similar question here on SO, but I have a fairly small
I found a similar question here, but didn't help me. I basically have apache
I have found a similar question here , but my intent is little different.
For the record: I found a similar question here but I have to elaborate
Similar question here but this is slightly different... I have two tables that I
i have already posted a similar question here, but failed to get a response
I have a similar question as here: Is it possible to use ContentProvider and
I have seen similar questions here but I just can't understand them. I am
There are other questions on here that sound similar but are not. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.