change fscrawler rest port
#set config
#show result
[root@elk docs]# cat /root/.fscrawler/fsindex/_settings.yaml --- name: "fsindex" fs: url: "/home/weblogic/docs" update_rate: "15m" excludes: - "*/~*" json_support: false filename_as_id: false add_filesize: true remove_deleted: true add_as_inner_object: false store_source: false index_content: true attributes_support: false raw_metadata: false xml_support: false index_folders: true lang_detect: false continue_on_error: false ocr: language: "eng" enabled: true pdf_strategy: "ocr_and_text" follow_symlinks: false elasticsearch: nodes: - url: "http://192.168.0.126:9200" bulk_size: 100 flush_interval: "5s" byte_size: "10mb" rest: url : "http://127.0.0.1:9091/fscrawler" enable_cors: false [root@elk docs]#
#show result
[root@elk ~]# curl http://127.0.0.1:9092/fscrawler/ { "ok": true, "version": "2.7-SNAPSHOT", "elasticsearch": "7.5.2", "settings": { "name": "fsindex", "fs": { "url": "/home/weblogic/docs", "update_rate": "15m", "excludes": [ "*/~*" ], "json_support": false, "filename_as_id": false, "add_filesize": true, "remove_deleted": true, "add_as_inner_object": false, "store_source": false, "index_content": true, "attributes_support": false, "raw_metadata": false, "xml_support": false, "index_folders": true, "lang_detect": false, "continue_on_error": false, "ocr": { "language": "eng", "enabled": true, "pdf_strategy": "ocr_and_text" }, "follow_symlinks": false }, "elasticsearch": { "nodes": [ { "url": "http://192.168.0.126:9200" } ], "index": "fsindex", "index_folder": "fsindex_folder", "bulk_size": 100, "flush_interval": "5s", "byte_size": "10mb" }, "rest": { "url": "http://127.0.0.1:9092/fscrawler", "enable_cors": false } } }
댓글
댓글 쓰기