建立新的field的后,rebuild 索引,始终找不到对应的field内容.
最后发现原来是因为mapping写错了,必须要给mapping的字段加上序号
item=Industries[1]
下面是我找到的英文资料摘录
引用
In addition to these settings, each field also contains one or more mapping definitions which map the data value to a content field in a VFS resource. The mapping definition includes a mapping type, an optional parameter, and an optional default value. There are four types of mappings to choose from:
content: This maps the field data value to the value of the VFS resource content. The value that is retrieved is based upon the resource type. Each resource type has a content extractor responsible for converting the resource content into a string value. For XML resource types, the content extractor concatenates all the data fields of the resource into a single string value. For this mapping, the Parameter field is not used.
property: This maps the field data value to a VFS resource property value. If the property value is not found, then the value will be empty. The Parameter field must contain the name of the property value to be used.
property-search: This is the same as the property mapping except when the property value is missing on the original resource. It then searches for the value on all the parent folders of the resource. The Parameter field must contain the name of the property value to be used.
item: This selection is useful only for XML content. It maps the value to an individual field in the XML content. The XML field is specified in the Parameter field using the XPath notation format. For example, for an XML field element with the name of Abstract, the notation used would be Abstract[1]. For a repeating element, multiple mappings may be added per field. For example, for the blog comments, we could map the first three comments using three mappings entries with the values: Comment[1], Comment[2], and Comment[3].
英文资料地址:http://www.packtpub.com/article/configuring-opencms-search
分享到:
相关推荐
OpenCms是一个专业级、开源Java CMS(内容管理系统),由Alkacon公司发起和维护,OpenCms完全基于Java和XML技术实现,内容维护方便、直观,类型定义简单、快速,基于Jsp的模板机制强大、灵活,OpenCms扩展机制可以很好...
opencms中文用户手册!看了以后受益匪浅!希望大家多多学习
opencms guide
定义和使用OpenCms结构化XML内容.rar 包括模块的建立
干货,opencms应用中去掉路径中两个/opencms。利用urlrewritefilter,网上方法走不通,自己琢磨得出,完美去除。官方文档中方法会带来一些问题。 学习过程中使用了很多积分,各位不缺的话,支援下。实在没有积分又很...
opencms中文教程 手册 指南 汉化
偶尔有一两个 jsp 版本的,虽然开源,功能却...胡楠先生写的这本《OpenCms 中文用户手册》,为中国程序员打开了一扇认识、使用 OpenCms 的大门。入门之后,再去阅读更深 OpenCms 应用就不会太难了。再次感谢胡楠先生!
文档管理功能)、支持泛内容(即不只是单纯的web数据)的全文检索、完善的模块化管理、完善的内容模型机制、卓越的在线/离线管理机制、完善的XML发布和导入导出机制、极为友善的基于web的管理后台 此版本兼容...
OpenCms中文用户手册.pdf
opencms中文汉化包,7.0.1,值得下载
[CMS程序]OpenCms中文用户手册_opencmshandbook
opencms中文手册简单介绍opencms功能以及工作区
OpenCms基于JAVA和XML语言技术,因此它适合完全融入到现有的系统内部。OpenCms可以非常好的运行在一个完全的开源环境中(例如:Linux、Apache、Tomcat、MySQL). 当然,也可以很好的运行于商业环境下(例如:Windows...
OpenCms基于JAVA和XML语言技术,因此它适合完全融入到现有的系统内部。OpenCms可以非常好的运行在一个完全的开源环境中(例如:Linux、Apache、Tomcat、MySQL). 当然,也可以很好的运行于商业环境下(例如:Windows...
opencms中文教程 手册 指南 汉化 part2
opencms 中文网提供的java api 文档包
opencms用户指南+源码 opencms用户指南+源码 opencms用户指南+源码
Opencms 中文网原创,请下载支持,欢迎转发,请注明来源Opencms 中文网博客
OpenCms创建网站过程图解——献给OpenCms的初学者们,一起学习吧
Update your existing OpenCms installation to version 9.5.2 with the easy to use upgrade wizard. OpenCms 7.x 和8.x 升级到OpenCms 9.5.2版本安装向导。