部署 symphony 成功,首页可以正常登陆,但是在集成搜索 Elasticsearch 时发生显示 404
登陆首页
搜索结果
Elasticsearch 配置
#### Elasticsearch ####
es.enabled=true
es.server=http://192.168.10.20:9200
日志显示
[DEBUG]-[2018-01-27 09:28:27]-[org.b3log.latke.servlet.handler.RequestDispatchHandler:85]: Request[requestURI=/search, method=GET]
[DEBUG]-[2018-01-27 09:28:27]-[org.b3log.symphony.service.SearchQueryService:104]: {
"from": 0,
"highlight": {
"fields": {"articleContent": {}},
"fragment_size": 150,
"number_of_fragments": 3
},
"query": {"bool": {"must": {"query_string": {
"default_operator": "and",
"fields": [
"articleTitle",
"articleContent"
],
"query": "*Hello*"
}}}},
"size": 20,
"sort": [
{"articleCreateTime": "desc"},
"_score"
]
}
[DEBUG]-[2018-01-27 09:28:27]-[org.b3log.latke.servlet.handler.RequestDispatchHandler:85]: Request[requestURI=/error/404, method=GET]
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("error/404_zh_CN.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("error/404_zh.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("error/404.ftl"): Found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: "error/404.ftl"("zh_CN", UTF-8, parsed): using cached since /root/apps/symphony-2.4.0/target/symphony/skins/classic/error/404.ftl hasn't changed.
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("macro-head_zh_CN.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("macro-head_zh.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("macro-head.ftl"): Found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: "macro-head.ftl"("zh_CN", UTF-8, parsed): using cached since /root/apps/symphony-2.4.0/target/symphony/skins/classic/macro-head.ftl hasn't changed.
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("header_zh_CN.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("header_zh.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("header.ftl"): Found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: "header.ftl"("zh_CN", UTF-8, parsed): using cached since /root/apps/symphony-2.4.0/target/symphony/skins/classic/header.ftl hasn't changed.
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("footer_zh_CN.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("footer_zh.ftl"): Not found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: TemplateLoader.findTemplateSource("footer.ftl"): Found
[DEBUG]-[2018-01-27 09:28:27]-[freemarker.cache:45]: "footer.ftl"("zh_CN", UTF-8, parsed): using cached since /root/apps/symphony-2.4.0/target/symphony/skins/classic/footer.ftl hasn't changed.
[DEBUG]-[2018-01-27 09:28:28]-[org.b3log.latke.servlet.handler.RequestDispatchHandler:85]: Request[requestURI=/notification/unread/count, method=GET]
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于