对于具有相同配置的相同数据,与3.0.8版本相比,在3.0.3版本中具有相同逻辑的结果权重不同:
以下是相同的代码段:
$this->spxcommon->SetGroupBy('catid',SPH_GROUPBY_ATTR,'@relevance DESC,pop DESC');
$this->spxcommon->SetSortMode(SPH_SORT_EXTENDED2,'@relevance DESC,pop DESC');
$this->spxcommon->SetRankingMode(SPH_RANK_EXPR,'sum(word_count+'.$this->wcnt.'-1)');
$cmd = '@'.$this->cat['catname'].' "^dentists*"';
输入单词为dentists
。
如果您在下面的2.0.8版和3.0.3版中看到响应,则Dentists-Oral Surgeons
和Dentists-Implantologist
在2.0.8版中获得权重2,在3.0.3版中获得权重1。
我是否缺少新版本中的某些内容来处理数据或需要更改配置或调整规则以获得结果?
两个版本的索引配置相同:
index category_pflg_main_idx
{
source = category_pflg_main
path = /var/lib/webport_sphinx1/category_indexes/category_pflg_main_idx
docinfo = extern
mlock = 0
#charset_type = sbcs
html_strip = 0
#enable_star = 1
min_prefix_len = 1
wordforms = /etc/sphinx/geniocat_wordform.txt
}
Here are the response :
version 2.0.8 :
catid catname weight popularity
10156331 Dentists 2 27.6100006104
11194873 Dentists-Child Specialists 2 1.2799999714
10000372 Dentists-24 Hours 2 0.9599999785
10156265 Dentists-Surgeons 2 0.6800000072
10941599 Dentists-Orthodontist 2 0.6200000048
10941607 Dentists-Oral Surgeons 2 0.1899999976
10892414 Dentists-Implantologist 2 0.1800000072
10413782 Dentists-Root Canal Treatment 2 0.1800000072
11629161 Dentists-Teeth Whitening Services 2 0.0900000036
11011234 Dentists-Maxillofacial Surgeons 2 0.0900000036
10156330 Dentistry Books 2 0.0799999982
11635274 Dentists-Teeth Capping Services 2 0.0700000003
11362054 Dentist For Home Visit 2 0.0700000003
10965075 Dentists-Periodontist 2 0.0700000003
10989222 Dentists-Endodontist 2 0.0700000003
10941543 Dentists-Cosmetic Dentistry 2 0.0700000003
版本3.0.3
10941544 Dentists-Prosthodontist 2 0.0399999991
11954920 Dentists-Dental Brace Fixing Services 2 0.0399999991
11979560 Dentistree 2 0.0199999996
10933656 Dentists-Orthodontist Invisible Braces Treatment 2 0.0199999996
11629254 Dentists-Artificial Teeth Fixing Services 2 0.0099999998
12030425 Dentists For Special Need Patient 2 0
11381634 Dentists For Special Needs Children 2 0
11324305 Dentists-Orthognathic Surgeons 2 0
11947376 Dentists-Sedation Dentistry Treatment 2 0
11629292 Dentists-Jewel Teeth Services 2 0
11629276 Dentists-Conservative Dentistry Services 2 0
11289941 Dentists-Oral And Maxillofacial Radiologists 2 0
11646320 Dentists-3D Intraoral Scanning Services 2 0
11629218 Dentist For Cosmetic Tooth Filling 2 0
11947377 Dentists-Composite Bonding Treatment 2 0
10058736 Dentists-Bruxism Services 2 0
11629281 Dentists-Cast Partial Denture Fixing Services 2 0
11311548 Dentists-Pinhole Surgeons 2 0
11954943 Dentists-Pulpectomy 2 0
11947418 Dentists-Restoration Services 2 0
10989067 Dentists-Periodontal Surgeons 2 0
11629243 Dentists-Crown Fixing Services 2 0
11271532 Dentists-Digital Smile Design 2 0
11629343 Dentists-Teeth Laminate Treatment 2 0
11629341 Dentists-Surgical Tooth Extraction Services 2 0
11947369 Dentists-Space Maintainers Treatment 2 0
10941607 Dentists-Oral Surgeons 1 0.1899999976
10892414 Dentists-Implantologist 1 0.1800000072
11011234 Dentists-Maxillofacial Surgeons 1 0.0900000036
11629161 Dentists-Teeth Whitening Services 1 0.0900000036
10989222 Dentists-Endodontist 1 0.0700000003
11629260 Dentists-Denture Fixing Services 1 0.0399999991
如何将其升级到最新版本?