Solr5 POST TOOL
来源:互联网 发布:如何用手机淘宝开网店 编辑:程序博客网 时间:2024/06/05 18:38
Solr includes a simple command line tool for POSTing various types of content to a Solr server. The tool is bin/post
. The bin/post tool is a Unix shell script; for Windows (non-Cygwin) usage, see the Windows section below.
To run it, open a window and enter:
This will contact the server at localhost:8983. S
pecifying the collection/core name
is mandatory. The '-help' (or simply '-h' option will output information on its usage (i.e., bin/post -help)
.
Using the bin/post Tool
Specifying either the collection/core name
or the full update url
is mandatory when using bin/post
.
The basic usage of bin/post
is:
Examples
There are several ways to use bin/post
. This section presents several examples.
Indexing XML
Add all documents with file extension .xml
to collection or core named gettingstarted
.
Add all documents with file extension .xml
to the gettingstarted
collection/core on Solr running on port 8984
.
Send XML arguments to delete a document from gettingstarted
.
Indexing CSV
Index all CSV files into gettingstarted
:
Index a tab-separated file into gettingstarted
:
The content type (-type
) parameter is required to treat the file as the proper type, otherwise it will be ignored and a WARNING logged as it does not know what type of content a .tsv file is. The CSV handler supports the separator
parameter, and is passed through using the -params
setting.
Indexing JSON
Index all JSON files into gettingstarted
.
Indexing rich documents (PDF, Word, HTML, etc)
Index a PDF file into gettingstarted
.
Automatically detect content types in a folder, and recursively scan it for documents for indexing into gettingstarted
.
Automatically detect content types in a folder, but limit it to PPT and HTML files and index into gettingstarted
.
Windows support
bin/post
exists currently only as a Unix shell script, however it delegates its work to a cross-platform capable Java program. The SimplePostTool
can be run directly in supported environments, including Windows.
SimplePostTool
The bin/post
script currently delegates to a standalone Java program called SimplePostTool
. This tool, bundled into a executable JAR, can be run directly using java -jar example/exampledocs/post.jar. See the help output and take it from there to post files, recurse a website or file system folder, or send direct commands to a Solr server.
- Solr5 POST TOOL
- solr5.5-post.jar的使用
- Tool
- tool
- tool
- tool
- Tool
- tool
- tool
- solr5.2.1
- Solr5 HelloWord
- 下载Solr5
- solr5 文档
- error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." 2011.06.29
- error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
- error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." 解决方法
- error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
- error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
- iOS8扩展插件开发配置
- windows7 cmd telnet不是内部或外部命令的问题
- Java项目经验——程序员成长的关键
- 一、浅谈oc中的面向对象
- ios开发基础1---UITableView中cell重用导致内容出错
- Solr5 POST TOOL
- win8.1 Silverlight4编译出错: 未给任务“CreateRiaClientFilesTask”的必需参数“ClientFrameworkPath”赋值
- NYOJ-491(搜索)-题目-----------------------------幸运三角形
- Android View 加载进度条
- Nginx二次开发(1.2)安装调试
- 2.事务嵌套
- 2015-03-03numpy(3)
- 战略绩效管理专家胡立
- chipmunk物理引擎的基本概念和基本用法