当前位置:网站首页>Solr基础操作2
Solr基础操作2
2022-06-29 23:00:00 【franket】
配置iptables
修改 /etc/sysconfig/iptables 在 filter 中加入以下内容,然后reload
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8983 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 7574 -j ACCEPT
管理界面
在本地使用 http://localhost:8983/solr/ ,或远程使用 http://ip:8983/solr/ 访问管理界面
Image_201509091621414.png
Tip: 也可以使用 7574 进行访问
Image_201509091628205.png
当前拓扑
这是当前的拓扑
Image_201509091630127.png
添加数据
使用 bin/post 可以方便的添加数据
[email protected] solr-5.3.0# bin/post -h
Usage: post -c <collection> OPTIONS <files|directories|urls|-d "...",...>
or post -helpcollection name defaults to DEFAULT_SOLR_COLLECTION if not specified
OPTIONS
=======
Solr options:
-url <base Solr update URL> (overrides collection, host, and port)-host <host> (default: localhost)-p or -port <port> (default: 8983)-commit yes|no (default: yes)Web crawl options:
-recursive <depth> (default: 1)-delay <seconds> (default: 10)Directory crawl options:
-delay <seconds> (default: 0)stdin/args options:
-type <content/type> (default: application/xml)Other options:
-filetypes <type>[,<type>,...] (default: xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log)-params "<key>=<value>[&<key>=<value>...]" (values must be URL-encoded; these pass through to Solr update request)-out yes|no (default: no; yes outputs Solr response to console)Examples:
- JSON file: bin/post -c wizbang events.json
- XML files: bin/post -c records article*.xml
- CSV file: bin/post -c signals LATEST-signals.csv
- Directory of files: bin/post -c myfiles ~/Documents
- Web crawl: bin/post -c gettingstarted http://lucene.apache.org/solr -recursive 1 -delay 1
- Standard input (stdin): echo '{commit: {}}' | bin/post -c my_collection -type application/json -out yes -d
- Data as string: bin/post -c signals -type text/csv -out yes -d $'id,value\n1,0.47'
[email protected] solr-5.3.0#
边栏推荐
- Number theory - division and blocking
- Implementation principle of dynamic agent
- High performance and high availability computing architecture of "Weibo comments"
- Ansible自动化运维
- [learn FPGA programming from scratch -51]: high level chapter - FPGA development based on IP core - what is FPGA IP core (soft core, fixed core, hard core) and learning methods
- Mysql database: storage engine
- Speech signal processing (III): speech signal analysis [continuous "analog signal" -- Sampling, quantization, coding -- > discrete "digital signal"]
- Processing of error b6267342 reported by AIX small machine in production environment
- 十大券商:“推土机行情”再现
- Detailed description of gaussdb (DWS) complex and diverse resource load management methods
猜你喜欢

Detailed description of gaussdb (DWS) complex and diverse resource load management methods

Incluxdb time series database system

收藏!这些提高程序员生产力的工具你用过吗?

Online text digit recognition list summation tool

High performance and high availability computing architecture of "Weibo comments"

字节云数据库未来方向的探索与实践

redis客户端

2022 PMP project management examination agile knowledge points (5)

Still stay up late every day and work overtime to make statements? In fact, you don't know how to make reports efficiently

sql刷题595. 大的国家
随机推荐
Vs cannot locate program input point to DLL
Regular expressions: characters (2)
What if MySQL fails to store emoticons
提供有效的绩效评估
字节云数据库未来方向的探索与实践
Error: c2665: "qmessagebox:: critical": none of the four overloads can convert all parameter types
Unity Pac Man games, maze implementation
地方/园区如何做好产业分析?
2022年PMP项目管理考试敏捷知识点(5)
Does rapid software delivery really need to be at the cost of security?
0. grpc environment setup
Leetcode 1385. 两个数组间的距离值
深入解析kubernetes controller-runtime
Advanced use of the optional class
label問題排查:打不開標注好的圖像
Status acquisition and control system of on-site express cabinet
uniapp复制内容到剪贴板
按头安利!好看又实用的电机 SolidWorks模型素材看这里
Touch key and key control corresponding LED status reversal
Problem solving metauniverse, multi communication scheme in online games