Не работает Realm, Alias при индексировании sql базы.

16 views
Skip to first unread message

Gin Ichimaru

unread,
May 6, 2018, 5:52:50 AM5/6/18
to DataparkSearch Engine
Добрый день, Максим! Хотел узнать почему может не работать Realm и Alias при индексировании sql базы, может что-то в конфигурации не так, привожу ее ниже. Вывод ссылок получается htdb:/1080, а нужен так http://search.site.ext/board/message.php?id=1080

DBAddr  mysql://user:password@localhost/db/?dbmode=multi&charset=utf8
HTDBAddr        mysql://user:password@localhost/video/?charset=utf8

LocalCharset UTF-8

HTDBList "SELECT DISTINCT id FROM video_videos"

HTDBDoc "SELECT concat('HTTP/1.0 200 OK\\r\\n','Content-type: text/plain\\r\\n','\\r\\n',id, date, source, title, thumb, duration, description, tags, category, views, liked, disliked) FROM video_videos WHERE id='$1'"

HTDBText title "SELECT title FROM video_videos WHERE id='$1'"

Server htdb:/

Include sections.conf

Версия dpsearch-4.54-2016-12-03-mysql

Maxim Zakharov

unread,
May 9, 2018, 11:01:35 AM5/9/18
to DataparkSearch Engine
Добрый день,

Попробуйте изменить команду HTDBList следующим образом:

HTDBList "SELECT DISTINCT concat('http://search.site.ext/board/message.php?id=', id) FROM video_videos"



--
You received this message because you are subscribed to the Google Groups "DataparkSearch Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataparksearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Gin Ichimaru

unread,
May 10, 2018, 4:04:54 PM5/10/18
to DataparkSearch Engine
Отлично, спасибо! Заработало! Прям выручили, теперь понял в чем дело.

среда, 9 мая 2018 г., 18:01:35 UTC+3 пользователь Maxime написал:
To unsubscribe from this group and stop receiving emails from it, send an email to dataparksearc...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages