Forums: 【移行しました】サポート (Thread #38445)

クロール対象から除外するパスの自動設定 (2017-03-03 15:46 by masuda_mitsuo #79501)

ファイルサーバに以下のようなフォルダ名がYYYMMDDのフォルダが毎日作成され、そのフォルダに対してクロールを行っております。

20170101
20170102
20170103



20170303


フォルダ名の日付が過去のフォルダにファイルが追加されたり、フォルダ内のファイルが更新されることは無いため、既にクロールしたフォルダは「クロール対象から除外するパス」の設定で以下のように除外をしています。

.*/2016.*/
.*/201701.*/
.*/201702.*/
.*/20170301/
.*/20170302/

いつも管理者でログインして設定しているのですが、自動で設定出来たらと思い、
「クロール対象から除外するパス」をバッチ処理などで自動的に設定する方法がございましたら教えてください。

よろしくお願いします。

Reply to #79501×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: クロール対象から除外するパスの自動設定 (2017-03-03 22:36 by shinsuke #79502)

設定はelasticsearchに格納されているので、
curl localhost:9200/.fess_config/web_config/_search?q=*:*
などで、対象データを確認して、更新することができると
思います。
Reply to #79501

Reply to #79502×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: クロール対象から除外するパスの自動設定 (2017-04-07 13:18 by masuda_mitsuo #79681)

ありがとうございました。

バッチ処理で設定を更新することができました。

[メッセージ #79502 への返信]
> 設定はelasticsearchに格納されているので、
> curl localhost:9200/.fess_config/web_config/_search?q=*:*
> などで、対象データを確認して、更新することができると
> 思います。

Reply to #79502

Reply to #79681×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login