将索引值存储在 FAST-ESP 中而不进行修改

发布于 2024-08-25 17:36:35 字数 486 浏览 3 评论 0原文

首先,我对 FAST 完全陌生,但我已经有几个问题需要解决,所以如果我的问题非常基本,我很抱歉 =)

好吧,问题是我在 FAST 索引中有一个字段在源文档中是这样的

"ABC   12345"
(please note the intentional whitespaces) but when stored in the index is in the form
"ABC 123456"
(please note that now there is a single space).

如果我检索所有文档值,那么这个特定值就可以(包含所有空格),我唯一的问题是该值在索引中存储的方式,因为我需要检索它并将其显示给我的用户,就像它出现在原始文档,并且我不想仅仅为了这个值而转到完整文档,我想要索引中已有的值。我认为我需要更新 FAST XML 配置文件之一,但我手头没有足够的文档来决定在哪里执行更改,index_profile.xml?在 XMLMapper 文件中?

first of all I'm totally new to FAST but I already have a couple of issues I need to solve, so I'm sorry if my questions are very basic =)

Well, the problem is that I have a field in the FAST index which in the source document is something like

"ABC   12345"

(please note the intentional whitespaces) but when stored in the index is in the form

"ABC 123456"

(please note that now there is a single space).

If I retrieve all the document values then this specific value is OK (with all the whitespaces), my only problem is with the way the value is stored in the index since I need to retrieve and display it to my user just like it appears in the original document, and I don't want to go to the full document just for this value, I want the value that I already have in the index. I think I need to update one of the FAST XML configuration files but I don't have enough documentation at hand in order to decide where to perform the change, index_profile.xml? in the XMLMapper file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别低头,皇冠会掉 2024-09-01 17:36:35

我自己找到了答案。我正在为我的集合使用 XMLMapper,我所要做的就是将 ignore-whitespace 属性添加到 Mapping 元素,然后将此属性值设置为“false”。这解决了问题,现在从索引检索的原始数据包含预期的内部空格。

谢谢。

I've found the answer by myself. I'm using a XMLMapper for my collection, all I had to do was to add the ignore-whitespace attribute to the Mapping element and then set this attribute value to "false". This solved the problem and the raw data now when retrieved from the index contains the expected inner whitespaces.

Thanks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文