Я получил различный вес для результата в той же логике в версии 3.0.3 по сравнению с версией 2.0.8 для тех же данных с той же конфигурацией:
Вот фрагмент для того же:
$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 в версии 2.0.8 и вес 1 в версии 3.0.3.Я что-то упускаю в новой версии для обработки данных или нуждаюсь в изменениях конфигурации или настройке правил для получения результатов?
Конфигурация индекса одинакова для обеих версий:
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
Как мне обновить его до последней версии?