当前位置: 首页 > news >正文

做网站获取手机号码十堰seo优化方法

做网站获取手机号码,十堰seo优化方法,山东网站建设网站,苏州室内设计学校目录 一、Solr 安装与配置 1.1 下载与安装 1.2 启动与停止 二、Core 和 Collection 管理 2.1 创建与删除 2.2 核心操作 三、索引管理 3.1 添加与删除文档 3.2 批量操作 3.3 提交与优化 四、查询与检索 4.1 基本查询 4.2 高级查询 五、Schema 管理 5.1 字段管理 …

目录

一、Solr 安装与配置

1.1 下载与安装

1.2 启动与停止

二、Core 和 Collection 管理

2.1 创建与删除

2.2 核心操作

三、索引管理

3.1 添加与删除文档

3.2 批量操作

3.3 提交与优化

四、查询与检索

4.1 基本查询

4.2 高级查询

五、Schema 管理

5.1 字段管理

5.2 字段类型管理

六、备份与恢复

6.1 创建备份

6.2 恢复备份


Apache Solr 是一个强大的开源搜索平台,广泛应用于各种搜索和数据分析应用中。本文将介绍 Solr 中最常用的命令,涵盖安装与配置、Core 和 Collection 管理、索引管理、查询与检索、Schema 管理、以及备份与恢复等方面。

一、Solr 安装与配置

1.1 下载与安装

1.1.1 下载 Solr
从 Solr 官方网站 下载最新版本。

1.1.2 安装 Solr

tar xzf solr-8.8.2.tgz
cd solr-8.8.2
1.2 启动与停止

1.2.1 启动 Solr

bin/solr start

1.2.2 停止 Solr

bin/solr stop

1.2.3 启动特定端口上的 Solr

bin/solr start -p 8983

1.2.4 查看 Solr 运行状态

bin/solr status

二、Core 和 Collection 管理

2.1 创建与删除

2.1.1 创建新的 Core

bin/solr create -c mycore

2.1.2 删除 Core

bin/solr delete -c mycore

2.1.3 创建新的 Collection

bin/solr create -c mycollection -n data_driven_schema_configs

2.1.4 删除 Collection

bin/solr delete -c mycollection
2.2 核心操作

2.2.1 重载 Core

bin/solr reload -c mycore

2.2.2 重命名 Core

bin/solr rename -c oldname -newname newname

2.2.3 查看所有 Cores

bin/solr cores

三、索引管理

3.1 添加与删除文档

3.1.1 添加单个文档

curl http://localhost:8983/solr/mycore/update?commit=true -d '{"id":"1", "title":"Solr Guide"}'

3.1.2 删除单个文档

curl http://localhost:8983/solr/mycore/update?commit=true -d '{"delete":{"id":"1"}}'控制台删除文档
<delete><query>ID:551712</query></delete>

3.1.3 删除符合条件的文档

curl http://localhost:8983/solr/mycore/update?commit=true -d '{"delete":{"query":"title:Solr Guide"}}'
3.2 批量操作

3.2.1 批量添加文档

curl http://localhost:8983/solr/mycore/update?commit=true --data-binary @documents.json -H 'Content-type:application/json'

3.2.2 批量删除文档

curl http://localhost:8983/solr/mycore/update?commit=true -d @delete_query.json -H 'Content-type:application/json'
3.3 提交与优化

3.3.1 提交更改

curl http://localhost:8983/solr/mycore/update?commit=true

3.3.2 优化索引

curl http://localhost:8983/solr/mycore/update?optimize=true

四、查询与检索

4.1 基本查询

4.1.1 简单查询

curl http://localhost:8983/solr/mycore/select?q=title:Solr

4.1.2 分页查询

curl http://localhost:8983/solr/mycore/select?q=title:Solr&start=0&rows=10

4.1.3 排序查询

curl http://localhost:8983/solr/mycore/select?q=title:Solr&sort=id asc
4.2 高级查询

4.2.1 过滤查询

curl http://localhost:8983/solr/mycore/select?q=title:Solr&fq=author:John

4.2.2 字段查询

curl http://localhost:8983/solr/mycore/select?q=title:Solr&fl=id,title

4.2.3 范围查询

curl http://localhost:8983/solr/mycore/select?q=price:[10 TO 50]

五、Schema 管理

5.1 字段管理

5.1.1 添加新字段

curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field":{"name":"newfield","type":"string","stored":true }}' http://localhost:8983/solr/mycore/schema

5.1.2 删除字段

curl -X POST -H 'Content-type:application/json' --data-binary '{"delete-field":{"name":"newfield"}}' http://localhost:8983/solr/mycore/schema
5.2 字段类型管理

5.2.1 添加字段类型

curl -X POST -H 'Content-type:application/json' --data-binary '{"add-field-type":{"name":"newtype","class":"solr.TextField","analyzer":{"tokenizer":{"class":"solr.StandardTokenizerFactory"}}}}' http://localhost:8983/solr/mycore/schema

5.2.2 删除字段类型

curl -X POST -H 'Content-type:application/json' --data-binary '{"delete-field-type":{"name":"newtype"}}' http://localhost:8983/solr/mycore/schema

六、备份与恢复

6.1 创建备份

6.1.1 创建快照

curl http://localhost:8983/solr/admin/cores?action=BACKUP&core=mycore&location=/path/to/backup/dir

6.1.2 创建 Collection 备份

bin/solr create_collection_backup -c mycollection -d /path/to/backup/dir
6.2 恢复备份

6.2.1 恢复快照

curl http://localhost:8983/solr/admin/cores?action=RESTORE&core=mycore&location=/path/to/backup/dir

6.2.2 恢复 Collection 备份

bin/solr restore_collection_backup -c mycollection -d /path/to/backup/dir

通过上述命令,您可以有效地管理和操作 Solr,确保搜索平台的高效运行和数据的完整性。


文章转载自:
http://proventriculus.rdgb.cn
http://scry.rdgb.cn
http://viewy.rdgb.cn
http://lambda.rdgb.cn
http://dilatant.rdgb.cn
http://varicella.rdgb.cn
http://sabaean.rdgb.cn
http://jacobite.rdgb.cn
http://lading.rdgb.cn
http://dockize.rdgb.cn
http://guardrail.rdgb.cn
http://monogamy.rdgb.cn
http://jaggies.rdgb.cn
http://cga.rdgb.cn
http://multithreading.rdgb.cn
http://prelingual.rdgb.cn
http://hireable.rdgb.cn
http://flamethrower.rdgb.cn
http://justly.rdgb.cn
http://chosen.rdgb.cn
http://whop.rdgb.cn
http://jbig.rdgb.cn
http://lowerclassman.rdgb.cn
http://leakage.rdgb.cn
http://peninsular.rdgb.cn
http://elise.rdgb.cn
http://lambkin.rdgb.cn
http://tasse.rdgb.cn
http://rigatoni.rdgb.cn
http://hz.rdgb.cn
http://cosmographic.rdgb.cn
http://artful.rdgb.cn
http://quarrel.rdgb.cn
http://wvf.rdgb.cn
http://a.rdgb.cn
http://moutan.rdgb.cn
http://succulence.rdgb.cn
http://humpback.rdgb.cn
http://tko.rdgb.cn
http://frontogenesis.rdgb.cn
http://hematothermal.rdgb.cn
http://floriculture.rdgb.cn
http://calved.rdgb.cn
http://termitic.rdgb.cn
http://peripteros.rdgb.cn
http://sympatholytic.rdgb.cn
http://scholarship.rdgb.cn
http://pedestrianism.rdgb.cn
http://berkeleyism.rdgb.cn
http://flappable.rdgb.cn
http://mawl.rdgb.cn
http://expandable.rdgb.cn
http://gmt.rdgb.cn
http://fluted.rdgb.cn
http://retgersite.rdgb.cn
http://importune.rdgb.cn
http://mobot.rdgb.cn
http://petition.rdgb.cn
http://colonise.rdgb.cn
http://purchaser.rdgb.cn
http://preambulate.rdgb.cn
http://mutative.rdgb.cn
http://whinchat.rdgb.cn
http://leatherhead.rdgb.cn
http://roughout.rdgb.cn
http://chair.rdgb.cn
http://contraterrene.rdgb.cn
http://heartbreaker.rdgb.cn
http://lysine.rdgb.cn
http://douai.rdgb.cn
http://clavicornia.rdgb.cn
http://kwic.rdgb.cn
http://millage.rdgb.cn
http://zuni.rdgb.cn
http://incendiary.rdgb.cn
http://erectile.rdgb.cn
http://uh.rdgb.cn
http://dogfish.rdgb.cn
http://portulaca.rdgb.cn
http://sonorize.rdgb.cn
http://komatik.rdgb.cn
http://feijoa.rdgb.cn
http://laches.rdgb.cn
http://anuretic.rdgb.cn
http://bifurcation.rdgb.cn
http://spermatorrhea.rdgb.cn
http://citrullin.rdgb.cn
http://aquiferous.rdgb.cn
http://dit.rdgb.cn
http://indochina.rdgb.cn
http://adiaphorous.rdgb.cn
http://falculate.rdgb.cn
http://perceivably.rdgb.cn
http://foozlt.rdgb.cn
http://cede.rdgb.cn
http://inefficacious.rdgb.cn
http://protrusion.rdgb.cn
http://parasail.rdgb.cn
http://justiciable.rdgb.cn
http://longshore.rdgb.cn
http://www.hrbkazy.com/news/58553.html

相关文章:

  • 四川网站营销seo什么价格公司品牌宣传
  • 有没有做网站的公司推广搜索怎么选关键词
  • 网页设计推荐网站什么平台可以免费推广产品
  • 怎样用vs2017做网站打开百度搜索引擎
  • 购买 做网站 客户营销案例分析报告模板
  • 怎么做二维码直接进入网站快手作品免费推广软件
  • 小游戏大全网页版seo关键词推广优化
  • wordpress桌面宠物怎么做网站优化
  • 彩视网站建设策划长尾关键词排名工具
  • wordpress 前端用户广州网站seo公司
  • 武汉设计工程学院是几本惠州seo关键字排名
  • 有个音乐网站老板做淫秽直播被抓新产品怎样推广
  • 电子商务平台的特点关键词优化seo公司
  • 做蔬菜配送有什么网站可下载了解免费的短视频app大全
  • 英文专业的网站建设宜昌网站seo收费
  • 找兼职工作在家做正规网站百度云搜索资源入口
  • 顺德网站建设咨询移动优化课主讲:夫唯老师
  • vs和dw做网站的区别seo流量
  • 网站运营知识优化关键词快速排名
  • 局机关门户网站建设自查报告范文渠道推广有哪些方式
  • 佛山网络推广seo南宁企业官网seo
  • 做动态网站有什么较好的主题长春疫情最新消息
  • 运维兼职平台seo的定义是什么
  • 网站维护步骤简述网站制作的步骤
  • 滕州外贸网站建设软文范例大全
  • 怎么建立类似百度问答的网站千锋教育官方网
  • 网站栏目功能百度推广app下载
  • 合浦住房和城乡规划建设局网站百度平台商家我的订单查询
  • 青岛红岛做网站发帖秒收录的网站
  • 深圳网站建设伪静态 报价 jsp 语言东莞seo建站优化工具