【发布时间】:2015-10-20 16:50:53
【问题描述】:
我开始学习 Lucene,所以我正在阅读 Lucene in Action。这本书关于字段的摘录是:
Keyword—Isn’t analyzed, but is indexed and stored in the index verbatim.
This type is suitable for fields whose original value should be preserved in
its entirety, such as URLs, file system paths, dates, personal names, Social
Security numbers, telephone numbers, and so on
我从中了解到的是,如果使用关键字字段对文本进行索引,则不会对其进行分析(未拆分为标记),而是对其进行索引。但是,我不明白and stored in the index verbatim 在哪里。
我对存储在索引中感到困惑。我假设如果文本被索引,它将被存储在索引数据结构中。
谁能举个例子解释一下?
【问题讨论】: