当前位置:网站首页>Solr basic operation 2
Solr basic operation 2
2022-06-29 23:23:00 【franket】
To configure iptables
modify /etc/sysconfig/iptables stay filter Add the following , then 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
Management interface
Use locally http://localhost:8983/solr/ , Or remote use http://ip:8983/solr/ Access management interface
Image_201509091621414.png
Tip: You can also use 7574 Visit
Image_201509091628205.png
Current topology
This is the current topology
Image_201509091630127.png
Add data
Use bin/post You can easily add data
[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#
边栏推荐
- 0. grpc environment setup
- I hope you have no regrets about the regrettable things in the University
- Intranet penetration (NC)
- Shell -- text processing command
- 剑指 Offer 38. 字符串的排列
- Welcome the "top ten" of the Municipal Association for science and technology • pay tribute to Lu Yi, a scientific and technological worker: an explorer guarding the transmission security of the power
- Solr basic operation
- Ansible automatic operation and maintenance
- 关于二叉树
- Gracefully transform the SMS business module and start the strategic mode!
猜你喜欢

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

语音信号处理(三):语音信号分析【连续的“模拟信号”--采样、量化、编码-->离散的“数字信号”】

Node data collection and remote flooding transmission of label information

M1笔记本居家办公的痛点及解决方案 | 社区征文

Speech signal processing (II): phonation physiology, auditory physiology and auditory psychology

语音信号处理(二): 发声生理、听觉生理与听觉心理

Constexpr function

Open source the Ernie tiny lightweight technology of "Wenxin big model", which is accurate and fast, with full effect

软件测试 接口测试 Jmeter 5.5 安装教程

C pointer advanced 2-- > function pointer array callback function simplifies calculator code, and implements qsort function based on callback function simulation
随机推荐
Vs cannot locate program input point to DLL
sql刷题595. 大的国家
均值、方差、标准差、协方差的概念及意义
Metaq cluster installation test
Solr基础操作4
剑指 Offer 38. 字符串的排列
High performance and high availability computing architecture of "microblog comments" in microblog system
Wechat applet: big red festive UI guessing lantern riddles is also called guessing character riddles
The server quickly sets up the alist integrated network disk website [pagoda panel one click deployment of alist]
Leetcode 1385. Distance value between two arrays
matplotlib matplotlib中plt.hist()参数解释
数据库-玩转数据-Pgsql 使用UUID做主键
Still stay up late every day and work overtime to make statements? In fact, you don't know how to make reports efficiently
大学里遗憾的事,希望你无怨也无悔
Discussion on distributed unique ID generation scheme
Pain points and solutions of M1 notebook home office | community essay solicitation
Go zero micro Service Practice Series (VII. How to optimize such a high demand)
Project 1 - buffer pool [cmu 15-445645] notes
Cacti最大监控数测试
wirehark数据分析与取证infiltration.pacapng