【发布时间】:2017-02-28 23:19:56
【问题描述】:
I am trying to index documents (read Pdf for ex) into elastic search.
My objective is to search documents based on matching content string.
To extract the document content, I am using Apache Tika .
I am not sure how should i index the document content along with document meta-data.
以下是我能想到的选项:
我应该只添加一个数据类型为字符串的字段“内容”并将文档内容存储为字符串吗? (但不确定 它适用于大尺寸文档)
或者我应该将该字段设为二进制并在那里对文档内容进行编码。 (但它将无法搜索)
请指教。
【问题讨论】:
标签: java elasticsearch full-text-search elasticsearch-plugin elasticsearch-2.0