From 8d102ecdf75118dec4faed3824497b646087ef98 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 8 Apr 2023 18:23:48 +0300 Subject: [PATCH] index hosts with enabled status only --- config/sphinx.conf.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sphinx.conf.txt b/config/sphinx.conf.txt index 3fcf025..c40f897 100644 --- a/config/sphinx.conf.txt +++ b/config/sphinx.conf.txt @@ -12,7 +12,7 @@ source hostPage SELECT hostPage.hostPageId, hostPage.metaTitle, hostPage.metaDescription, hostPage.metaKeywords, hostPage.data, hostPage.uri, host.name \ FROM hostPage \ JOIN host ON (host.hostId = hostPage.hostId) \ - WHERE hostPage.httpCode = 200 + WHERE host.status = '1' AND hostPage.httpCode = 200 sql_attr_uint = hostPageId }