Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenCMS に検索機能を実装しました。インデックス化されたリソースは、多くのパスから取得されます (例: /path/alternative/news および /path/news)。すべてのリソースに対して個別の検索を実行する方法はありますか、それとも 2 つの個別のインデックスが必要ですか?
単一のリソースにインデックスを付けたら、検索 Bean の setSearchRoot() メソッドを使用できます。/path/alternative/news 内で検索を実行したい場合はsetSearchRoot("/path/alternative/news")、それ以外を設定しますsetSearchRoot("/path/news")。
setSearchRoot("/path/alternative/news")
setSearchRoot("/path/news")
それが役立つことを願っています。