php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #59353 More options for setRankingMode
Submitted: 2010-08-10 01:18 UTC Modified: 2010-09-17 08:29 UTC
From: cbiggins at gmail dot com Assigned:
Status: Closed Package: sphinx (PECL)
PHP Version: 5.3.0 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cbiggins at gmail dot com
New email:
PHP Version: OS:

 

 [2010-08-10 01:18 UTC] cbiggins at gmail dot com
Description:
------------
Hi Guys,
I was trying to get SPH_RANK_FIELDMASK working (http://sphinxsearch.com/docs/manual-0.9.9.html#api-func-setrankingmode) and noticed that this constant is not part of the Pecl extension. I would LOVE this option to be available, it would make my life much easier. 

I'd be happy to make the code changes to sphinx.c but I know nothing about building and modifying extensions.

Thanks in advance!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-13 08:05 UTC] santiago739 at gmail dot com
It seems there is a bug in the libsphinxclient because there 
is no constant SPH_RANK_PROXIMITY, SPH_RANK_MATCHANY and 
SPH_RANK_FIELDMASK though they are in the php api.

Please apply this patch for libsphinxclient
http://www.ofoto.ru/santiago/patches/sphinx_20100813.diff

and then patch for php extension
http://www.ofoto.ru/santiago/patches/pecl_sphinx.bug18011.di
ff
 [2010-08-15 20:48 UTC] cbiggins at gmail dot com
Thanks very much, I'll give that a go!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC