Solr guide 学习总结
来源:互联网 发布:易语言英雄联盟源码 编辑:程序博客网 时间:2024/06/06 05:38
题记
再次看看solr的官方指导手册,发现了一些之前没看到的内容,现在简单的记录一下.
2015年05月08日17:41:38 看到P35
页
一.总体方法
下面是应用服务集成solr的方法:
Solr makes it easy to add the capability to search through the online store
through the following steps:
1.Define a schema . The schema tells Solr about the contents of documents it will be indexing.Solr's schema is powerful and flexible and allows you to tailor Solr's behavior to your application.
定义schema(schema不知怎么翻译,可以理解为一个数据的集合).告诉solr将要检索的文档内容.
2. Deploy Solr to your application server.
部署solr到应用服务器,也就是继承solr服务.
3. Feed Solr the document for which your users will search.
可以理解为上传要搜索的文档,这里的内容可以是数据库(DIH)或富文本(PDF,PPT).富文本需要变更句柄
/update/extract
4. Expose search functionality in your application.
这时就可以进行搜索,将搜索的结果结合页面展示.
二.Documents, Fields, and Schema Design
这个部分可以设置搜索结果的内容.
三.analyzer,token,filter
这里可以通过设置决定solr搜索的分析器以及过滤器;也可以添加自己的分析器,一般处理中文时候,可添加中文分词器.
analyzer 分析器
+ token
The job of a tokenizer is to break up a stream of text into tokens, where each token is (usually) a sub-sequence of the characters in the text.
- 将内容切分成令牌流
+filter
a filter's input is another TokenStream. The job of a filter is usually easier than that of a tokenizer since in most cases a filter looks at each token in the stream sequentially and decides whether to pass it along, replace it or discard it.
决定令牌流内容是否可用,被替换或遗弃.
待续
0 0
- Solr guide 学习总结
- Solr学习总结-Analyze
- Solr学习总结-查询
- Solr学习总结-Facet
- Solr学习总结-Facet
- Solr学习总结-查询
- Solr学习总结-Facet
- solr学习总结
- Solr学习总结
- Solr学习总结-改进Solr性能
- Solr学习总结-自己开发Solr
- Solr学习总结-改进Solr性能
- Solr学习总结(一)Solr介绍
- Solr学习总结Solr查询参数
- Solr学习总结(三)solr查询
- Solr学习总结-附加功能
- Solr学习总结-问题处理
- Solr学习总结-附加功能
- 欢迎使用CSDN-markdown编辑器
- POJ1934:Trip(LCS)
- mvc与三层结构终极区别
- ubuntu12.04下安装pptp_vpn服务器
- String s=new String("abc")创建了几个对象?
- Solr guide 学习总结
- 针对zico源码maven的简单总结
- Swift学习之每日一tip (2)词法结构
- 实例监听、EM启动、数据库启动
- AndroidJNI 通过C++调用JAVA
- android webView webchromeclient 本地图片资源
- 基于Twemproxy的Redis集群方案
- POJ 1651 - Multiplication Puzzle(区间DP)
- POJ题目分类(各种分类合集)