N
N
NamnaR2018-10-28 15:04:02
Sphinx
NamnaR, 2018-10-28 15:04:02

Where to write SPH_MATCH_EXTENDED2 and SPH_RANK_PROXIMITY_SPH04 in sphinx?

I read that for good search relevance you need to set: $mode=SPH_MATCH_EXTENDED2 and $ranker = SPH_RANK_PROXIMITY_SPH04.
Is it possible to register this in the config, if so, how?
there is a doc that says to write:

$ranker = SPH_RANK_PROXIMITY_SPH04
$cl = new SphinxClient ();
$cl->SetMatchMode( $mode );
$cl->SetRankingMode( $ranker );

it is not clear in Bitrix where to register this, there is only a certain class at the address "CSearchSphinx" => "tools/sphinx.php",
is it possible to register these parameters in the sphinx database itself (sudo mysql -P 9306 -h 127.0.0.1 -p ) or config?
If so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2018-10-28
@opium

And how will this help you for a standard module in Bitrix? nothing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question