make sure that sort by field "relevancyrating" is equivalent to natural Xapian ordering
This commit is contained in:
parent
9561309f0b
commit
a9599be5f9
@ -203,7 +203,8 @@ bool Query::setQuery(RefCntr<SearchData> sdata)
|
|||||||
m_nq->xenquire->set_collapse_key(Xapian::BAD_VALUENO);
|
m_nq->xenquire->set_collapse_key(Xapian::BAD_VALUENO);
|
||||||
}
|
}
|
||||||
m_nq->xenquire->set_docid_order(Xapian::Enquire::DONT_CARE);
|
m_nq->xenquire->set_docid_order(Xapian::Enquire::DONT_CARE);
|
||||||
if (!m_sortField.empty()) {
|
if (!m_sortField.empty() &&
|
||||||
|
stringlowercmp("relevancyrating", m_sortField)) {
|
||||||
if (m_sorter) {
|
if (m_sorter) {
|
||||||
delete (QSorter*)m_sorter;
|
delete (QSorter*)m_sorter;
|
||||||
m_sorter = 0;
|
m_sorter = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user