php - Sphinx returns inconsistent result set depending on sorting -



php - Sphinx returns inconsistent result set depending on sorting -

i'm trying implement multilingual indexes web application i'm developing. @ moment, records exist in few languages, english, malay & standard arabic (but not separated different columns). english language stemmer enabled.

only 2 indexes built, stemmed , non-stemmed indexes. i'm having problem stemmed index, result set returned not consistent, depending on sort column.

these 2 queries (from stemmed index), each returns different number of total results, although difference between them sort order.

select * test1stemmed match('@institution universiti') grouping art_id order art_title_ord asc; select * test1stemmed match('@institution universiti') grouping art_id order art_title_ord desc;

however, if same queries run on non-stemmed index, numbers of results equal.

i'm having same problem sphinx php api:

$sp = new sphinxclient(); $sp->setserver('localhost', 9312); $sp->setmatchmode(sph_match_extended); $sp->setgroupby('art_id', sph_groupby_attr, "$sp_sort_column $sort"); $sp->setlimits($offset, $rows_per_page, 1000); $sp->query("$q", 'test1stemmed');

what missing?

something missed documentation here http://sphinxsearch.com/docs/2.0.2/clustering.html

warning: grouping done in fixed memory , results approximate; there might more groups reported in total_found present. @count might underestimated. cut down inaccuracy, 1 should raise max_matches. if max_matches allows store found groups, results 100% correct.

so can workaround increasing value in max_matches, since putting big value absolutely undesirable, prepare query instead.

php sphinx

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -