php - In sphinx how does the search result display if the index updates inbetween two setlimit calls -
i have started working on sphinx php. wondering if set limit 20 records per call.
$cl->setlimits ( 0, 20); the index recreate set 5 minutes --rotate option.
so if in application have call next 20 search results call command
$cl->setlimits ( 20, 20); suppose index recreated in between 2 setlimit calls. , new document inserted highest weight. (and sorting results relevance.)
wouldnt search result shift 1 position down earlier 20th record 21st record , again same result @ 21st position got in 20th position & application display duplicate search result. true..any body else got problem.
or how should overcome this?
thanks!
edit (note: next setlimit command called based on user event 'see more results')
yes, can happen.
but happens nobody notices.
about way avoid store sort of index query. page number, include last id. when on second page etc, use id exclude new results created since search started.
on first page query, lookup biggest id in index, need run second query that.
(this @ least copes new additions index, harder cope changes documents, can done in similar way)
Comments
Post a Comment