게시된 페이지 인덱싱하기
Index or search published pages 기능이 적용될 때까지 기다리는 동안, 수동으로 이를 수행하는 방법을 소개합니다.
게시된 페이지 찾기
https://meta.discourse.org/t/discourse-data-explorer/32566/1을 사용하면 새로운 게시된 페이지 쿼리를 생성할 수 있습니다:
SELECT CONCAT('/pub/', pp.slug) AS URL, pp.topic_id
FROM published_pages pp
ORDER BY pp.id
인덱스 제공
물론 https://meta.discourse.org/t/run-data-explorer-queries-with-the-discourse-api/120063을 통해 게시된 페이지의 인덱스를 생성하고 유지보수할 수 있습니다. 이는 https://meta.discourse.org/t/custom-wizard-plugin/73345로조차도 가능할 수 있습니다.
저는 위의 게시된 페이지 쿼리에서 가져온 데이터를 사용하여 수동으로 새로운 주제를 생성한 뒤, /pub/index에 게시했습니다.
https://meta.discourse.org/t/run-other-websites-on-the-same-machine-as-discourse/17247을 수행하고 있으므로, 다음 스니펫을 통해 게시된 페이지 인덱스를 https://discourse.example/pub에서 쉽게 사용할 수 있었습니다:
# 게시된 페이지에 대한 인덱스 제공
location ~* ^/pub/?$ {
return 307 https://discourse.example/pub/index;
}