dqj5046 2016-05-10 17:34
浏览 56
已采纳

从查询结果中呈现PDF或其他其他文档由elasticsearch返回

I am working on a project to index PDF documents (mainly PDF for now). i found out elastic search could index attached document using Apache Tika.

I have implemented elastic search, indexed few PDF documents and also using PHP as the client to render the query result return by elastic search.

Would appreciate if i could get a link to some tutorial on how to locate the PDF attached to elastic search from the query result returned by elastic search.

Have searched online couldn't find any tutorial relating to what i want to achieve

  • 写回答

1条回答 默认 最新

  • doutuobao9736 2016-05-10 18:30
    关注

    In documentation it says Elasticseacrh store content of the attachement as base64 encoded. So after you search, you can get document content as base64 encoded again. Then you can decode that content as pdf. For example check that thread to see how it can be done: PHP get pdf file from base64 encoded data string

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料