From 74dd15e5449281085d9486bacce44e0132214f84 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 25 Apr 2023 17:07:57 +0300 Subject: [PATCH] add page rank sort order attribute --- config/sphinx.conf.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/sphinx.conf.txt b/config/sphinx.conf.txt index e0abf80..26f90d7 100644 --- a/config/sphinx.conf.txt +++ b/config/sphinx.conf.txt @@ -9,12 +9,12 @@ source hostPage sql_port = 3306 # optional, default is 3306 sql_query = \ - SELECT hostPage.hostPageId, hostPage.metaTitle, hostPage.metaDescription, hostPage.metaKeywords, hostPage.data, hostPage.uri, host.name \ + SELECT hostPage.hostPageId, hostPage.rank, hostPage.metaTitle, hostPage.metaDescription, hostPage.metaKeywords, hostPage.data, hostPage.uri, host.name \ FROM hostPage \ JOIN host ON (host.hostId = hostPage.hostId) \ WHERE host.status = '1' AND hostPage.httpCode = 200 - sql_attr_uint = hostPageId + sql_attr_uint = rank } index hostPage