特定のタグが付いたすべてのトピックの「A〜Z」インデックスページを作成したいと思います。データエクスプローラーでは、「index」というタグと「D」の文字に対するクエリは次のようになります。
SELECT
t.id,
t.title,
t.created_at
FROM
topics t
JOIN
topic_tags tt ON t.id = tt.topic_id
JOIN
tags tg ON tt.tag_id = tg.id
WHERE
t.title ILIKE 'D%'
AND tg.name = 'index'
ORDER BY
t.title ASC; -- タイトルで昇順にアルファベット順に並べ替え
これを共通検索内で達成する方法はありますか?投稿でURLとして使用できるようにしたいです。たとえば、クエリ in:title D% は、タイトルの先頭だけでなく、「D」がタイトルのどこかにあるすべてのトピックを返します。
「いいね!」 2
nathank
(Nathan Kershaw)
2023 年 11 月 16 日午後 5:47
2
実験的なフィルター機能でそれが実現できると思います。
We have recently introduced an innovative /filter route, enabling more sophisticated filtering of the topics list. Significantly, this marks the initial step towards a unified topic filtering language for both search and filtering. Additionally, the dedicated route for topic list filtering enhances the customizability of the sidebar, as users can now incorporate links as custom section links within the sidebar.
How to turn it on
Enable the experimental_topics_filter site settings in the admin i…