solr配置文件
来源:互联网 发布:阴谋论书籍 知乎 编辑:程序博客网 时间:2024/05/18 02:02
solr配置文件
@(OTHERS)[solr]
solr的配置文件主要有3份:
solr.xml:描述整个solr集群的配置,如主机名、端口号等信息。
solrconfig.xml:描述某个collection的配置信息,如索引、搜索的配置等。
schema.xml:描述某个collection的field信息。
其中后面2个是创建一个新collection所必备的文件,除此以外,还有一些可选的如stopwords.txt, synonyms.txt,protwords.txt, currency.xml等。
关于一个collection最基本的配置可以参考~/solr/server/solr/configsets/basic_configs中的文件,它就包含了上述所列的文件。
(一)solr.xml
(二)solrconfig.xml
(三)schema.xml
1、简单demo
<?xml version="1.0" encoding="UTF-8" ?><schema name="example" version="1.5"> <field name="_version_" type="long" indexed="true" stored="true"/> <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> <field name="score" type="double" indexed="true" stored="true" required="true" multiValued="false" /> <dynamicField name="*_s" type="string" indexed="true" stored="true"/> <uniqueKey>id</uniqueKey> <fieldType name="string" class="solr.StrField" sortMissingLast="true" /> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/></schema>
一般必须包括一些field以及这个field所属类型的定义。
阅读全文
0 0
- Solr配置文件
- solr配置文件
- solr配置文件
- Solr之配置文件solr.xml。
- Solr配置文件说明
- solr配置文件详解
- Solr配置文件说明
- [搜索] Solr (二) 配置文件
- Solr配置文件说明
- solr配置文件讲解
- Solr配置文件说明
- solr配置文件解析
- 【solr】——配置文件
- Solr配置文件及SolrCloud
- Solr配置文件详解
- Solr集群配置文件上传
- Solr学习之二:Solr配置文件说明
- solr总结 第四部分:solr配置文件详解
- Fedora 64位 arm-hisiv300-linux-gcc: No such file or directory
- 王小二切饼
- BLA、CRA、IDR
- Android 自定义Animation,使用Camera对View组件作三维变换
- dockerUi不能正常显示容器情况解析
- solr配置文件
- wifi能够保护你在虚拟现实中不会丢失
- VS2013相关报错问题
- UVa10763-Foreign Exchange-交换学生--map映射和pair对的使用
- <iOS读书笔记>之Objective-C高级编程(GCD)
- 设计模式之装饰者模式
- 上传文件
- 32day 新浪微博(授权 新特性)
- datacleaner第一部分,一、二、三章