如何在 Apache Lucene 中将页面转换为 SearchResult
这是我的第一个问题。如果我犯了任何错误或违反了论坛规则,我深表歉意
我使用 confluence 并尝试为合流搜索编写自定义代码。
我有下一个类
com.atlassian.confluence.search.v2.SearchResult;
com.atlassian.confluence.pages.Page;
作为示例,当我获得一些页面时,我尝试将其分类到 SearchResult 以将其发送到速度模板
SearchResult sResult = (SearchResult)myPage;
有没有办法将 Confluence 页面添加或分类到 SearchResult?
提前致谢。
it's my first question here.I apologize if i make any mistake or broke forum's rules
I use confluence and i try to write custom code for confluence search.
I have next classes
com.atlassian.confluence.search.v2.SearchResult;
com.atlassian.confluence.pages.Page;
for examples when i get some pages i try to classcast it to SearchResult to send it to velocity template
SearchResult sResult = (SearchResult)myPage;
Is there any way to add or classcast Confluence Page to SearchResult?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不这么认为 - 似乎
Page
甚至与搜索无关。I don't think so - it seems
Page
is not even related to search.