- 浏览: 2550863 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
solr(7)4.10.4 on Jetty
1. Preparation
Java 1.7 or greater.
> java -version
java version "1.7.0_80"
Find a right release version of SOLR for me from here http://mirror.cogentco.com/pub/apache/lucene/solr/
I download and unzip this file solr-4.10.4.tgz.
> wget http://mirror.cogentco.com/pub/apache/lucene/solr/4.10.4/solr-4.10.4.tgz
Unzip the file and place them in the working directory
> sudo ln -s /home/carl/tool/solr-4.10.4 /opt/solr-4.10.4
2. Start the Solr Server
> cd /opt/solr/example/
to Start the Solr with Jetty
> java -jar start.jar
INFO org.eclipse.jetty.server.Server – jetty-8.1.10.v20130312
INFO org.eclipse.jetty.deploy.providers.ScanningAppProvider – Deployment monitor /home/carl/tool/solr-4.10.4/example/contexts at interval 0
INFO org.eclipse.jetty.deploy.DeploymentManager – Deployable added: /home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
INFO org.eclipse.jetty.webapp.WebInfConfiguration – Extract jar:file:/home/carl/tool/solr-4.10.4/example/webapps/solr.war!/ to /home/carl/tool/solr-4.10.4/example/solr-webapp/webapp
haha, a lot of useful information,
/home/carl/tool/solr-4.10.4/example/webapps/solr.war
/home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
jetty version = jetty-8.1.10.v20130312
Then visit page http://ubuntu-pilot:8983/solr/#/, our SOLR server is up and running.
Command line can do add, update, query and etc, so the solrJ.
Search UI
http://ubuntu-pilot:8983/solr/collection1/browse
3. Understand of Multicore
If you have collections for Documents, People, Stocks which are completely unrelated entities.
Host unrelated entities separately so that they don’t impact each other
Having a different configuration for each core with different behavior
Performing activities on each core differently ( Update data, Load, Reload, Replication)
Keep the size of the core in check and configure caching accordingly.
When we use Command Line, we will make sure the core name is in the path.
http://host:8983/solr/core0/update ….
When we use Spring Data Solr, we have MulticoreSolrServerFactory
http://projects.spring.io/spring-data-solr/
@SolrDocument(solrCoreName=“core1”)
class Bean1 {
...
}
factory = new MulticoreSolrServerFactory(new HttpSolrServer(“http://host:8983”));
SolrServer solrServer = factory.getSolrServer(Bean1.class);
Join the Search on Multiple Cores
http://stackoverflow.com/questions/12665797/is-solr-4-0-capable-of-using-join-for-multiple-core
{!join from=fromField to=toField fromIndex=fromCoreName}fromQuery
Have 2 cores
brands {id, name}
products {id, name, brand_id}
BRANDS: {1, Apple} {2, Alibaba} {3, Hundsun}
PRODUCTS: {1, iPhone, 1}, {2, iPad, 1} ...
http://host:8983/solr/brands/select?q=*:*&fq={!join from=brand_id to=id fromIndex=products}name:iPad
It will translates to something like:
SELECT b.* FROM brands b INNER JOIN products p ON b.id=p.brand_id WHERE p.name=“iPad”;
{id: “1”, name:”Apple"}
4. Clustering of SOLR
A little about SolrCores and Collections
SolrCore is essentially a single index. Multiple indexes, we should create multiple SolrCores.
Shard Cluster
https://wiki.apache.org/solr/SolrCloud
ZooKeeper + 2 Jetty Instances
Shard Cluster and Shard Replicas
https://wiki.apache.org/solr/SolrCloud
Shard Cluster with Shard Replicas and Zookeeper Ensemble
https://wiki.apache.org/solr/SolrCloud
2 shards, 2 replica and multiple zookeepers
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
That is push mode. But we are using pull mode.
https://wiki.apache.org/solr/SolrReplication
References:
http://sillycat.iteye.com/admin/blogs/2227066
http://lucene.apache.org/solr/4_10_4/tutorial.html
http://wiki.apache.org/solr/
http://wiki.apache.org/solr/CoreAdmin
http://stackoverflow.com/questions/19274590/switching-solr-cores-when-adding-documents
http://docs.ckan.org/en/latest/maintaining/solr-multicore.html
SOLR Cluster/Cloud
http://www.cnblogs.com/clarechen/p/4573290.html
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
https://wiki.apache.org/solr/SolrCloud
http://wiki.apache.org/solr/SolrJetty#MultiWebappJndi
1. Preparation
Java 1.7 or greater.
> java -version
java version "1.7.0_80"
Find a right release version of SOLR for me from here http://mirror.cogentco.com/pub/apache/lucene/solr/
I download and unzip this file solr-4.10.4.tgz.
> wget http://mirror.cogentco.com/pub/apache/lucene/solr/4.10.4/solr-4.10.4.tgz
Unzip the file and place them in the working directory
> sudo ln -s /home/carl/tool/solr-4.10.4 /opt/solr-4.10.4
2. Start the Solr Server
> cd /opt/solr/example/
to Start the Solr with Jetty
> java -jar start.jar
INFO org.eclipse.jetty.server.Server – jetty-8.1.10.v20130312
INFO org.eclipse.jetty.deploy.providers.ScanningAppProvider – Deployment monitor /home/carl/tool/solr-4.10.4/example/contexts at interval 0
INFO org.eclipse.jetty.deploy.DeploymentManager – Deployable added: /home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
INFO org.eclipse.jetty.webapp.WebInfConfiguration – Extract jar:file:/home/carl/tool/solr-4.10.4/example/webapps/solr.war!/ to /home/carl/tool/solr-4.10.4/example/solr-webapp/webapp
haha, a lot of useful information,
/home/carl/tool/solr-4.10.4/example/webapps/solr.war
/home/carl/tool/solr-4.10.4/example/contexts/solr-jetty-context.xml
jetty version = jetty-8.1.10.v20130312
Then visit page http://ubuntu-pilot:8983/solr/#/, our SOLR server is up and running.
Command line can do add, update, query and etc, so the solrJ.
Search UI
http://ubuntu-pilot:8983/solr/collection1/browse
3. Understand of Multicore
If you have collections for Documents, People, Stocks which are completely unrelated entities.
Host unrelated entities separately so that they don’t impact each other
Having a different configuration for each core with different behavior
Performing activities on each core differently ( Update data, Load, Reload, Replication)
Keep the size of the core in check and configure caching accordingly.
When we use Command Line, we will make sure the core name is in the path.
http://host:8983/solr/core0/update ….
When we use Spring Data Solr, we have MulticoreSolrServerFactory
http://projects.spring.io/spring-data-solr/
@SolrDocument(solrCoreName=“core1”)
class Bean1 {
...
}
factory = new MulticoreSolrServerFactory(new HttpSolrServer(“http://host:8983”));
SolrServer solrServer = factory.getSolrServer(Bean1.class);
Join the Search on Multiple Cores
http://stackoverflow.com/questions/12665797/is-solr-4-0-capable-of-using-join-for-multiple-core
{!join from=fromField to=toField fromIndex=fromCoreName}fromQuery
Have 2 cores
brands {id, name}
products {id, name, brand_id}
BRANDS: {1, Apple} {2, Alibaba} {3, Hundsun}
PRODUCTS: {1, iPhone, 1}, {2, iPad, 1} ...
http://host:8983/solr/brands/select?q=*:*&fq={!join from=brand_id to=id fromIndex=products}name:iPad
It will translates to something like:
SELECT b.* FROM brands b INNER JOIN products p ON b.id=p.brand_id WHERE p.name=“iPad”;
{id: “1”, name:”Apple"}
4. Clustering of SOLR
A little about SolrCores and Collections
SolrCore is essentially a single index. Multiple indexes, we should create multiple SolrCores.
Shard Cluster
https://wiki.apache.org/solr/SolrCloud
ZooKeeper + 2 Jetty Instances
Shard Cluster and Shard Replicas
https://wiki.apache.org/solr/SolrCloud
Shard Cluster with Shard Replicas and Zookeeper Ensemble
https://wiki.apache.org/solr/SolrCloud
2 shards, 2 replica and multiple zookeepers
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
That is push mode. But we are using pull mode.
https://wiki.apache.org/solr/SolrReplication
References:
http://sillycat.iteye.com/admin/blogs/2227066
http://lucene.apache.org/solr/4_10_4/tutorial.html
http://wiki.apache.org/solr/
http://wiki.apache.org/solr/CoreAdmin
http://stackoverflow.com/questions/19274590/switching-solr-cores-when-adding-documents
http://docs.ckan.org/en/latest/maintaining/solr-multicore.html
SOLR Cluster/Cloud
http://www.cnblogs.com/clarechen/p/4573290.html
http://blademastercoder.github.io/2015/04/18/solr-SolrCloud%20.html
https://wiki.apache.org/solr/SolrCloud
http://wiki.apache.org/solr/SolrJetty#MultiWebappJndi
发表评论
-
Update Site will come soon
2021-06-02 04:10 1677I am still keep notes my tech n ... -
Stop Update Here
2020-04-28 09:00 315I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 475NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 367Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 367Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 335Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 429Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 434Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 373Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 454VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 384Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 475NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 421Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 336Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 246GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 450GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 325GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 312Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 317Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 292Serverless with NodeJS and Tenc ...
相关推荐
7. **自定义插件**:Solr允许开发人员编写自己的插件来扩展其功能,例如自定义查询解析器、过滤器和 Highlighter。 8. **用户界面**:Solr提供了一个直观的Web管理界面(Solr Admin UI),用户可以通过浏览器进行...
solr-4.10.4.jar
7. **性能优化**: Solr允许用户进行各种性能调优,如调整内存分配、使用块存储优化磁盘I/O,或者通过缓存策略提高查询速度。 8. **监控与管理**: 4.10.4版本的Solr有一个内置的Web界面(称为Solr Admin UI),用户...
文件`ssotool.msi`可能是一个单点登录(Single Sign-On, SSO)工具的安装程序,与Solr集成可以提供统一的身份验证服务,使得用户在访问多个系统时只需登录一次。 5. **应用场景**: - **电子商务**:快速搜索商品...
码头用于部署Solr的Jetty应用程序。 默认情况下,不包含任何核心。 必须将它们添加到配置中。安装下载并运行: java -jar start.jar从以下位置查看应用程序: http://localhost:8985/solr/版本号索尔4.10.4 码头8.1....
1.ik中文分词器适配最新版本solr7和solr8,下载后解压,将target下的ik-analyzer-7.7.1.jar包放入Solr服务的`Jetty`或`Tomcat`的`webapp/WEB-INF/lib/`目录下。 2.将`resources`目录下的5个配置文件放入solr服务的`...
标题“ik-analyzer-solr7-7.x.zip”表明这是一个与Solr7相关的压缩包,其中包含了IK Analyzer,一个广泛使用的中文分词工具。这个压缩包特别为Solr7版本进行了优化,提供了完整的配置文件,使得用户可以方便地集成到...
在Jetty和Tomcat等应用服务器下运行Solr,需要对服务器进行适当的配置。例如,你可能需要在服务器的web.xml文件中配置Solr的Context,以便让服务器知道如何处理Solr的请求。同时,还需要确保服务器有足够的内存来...
**支持 Solr7 的 ik 分词器** 在信息检索和文本分析领域,分词器扮演着至关重要的角色,它能够将连续的文本流分解为可处理的词汇单元。`ik` 分词器是针对中文文本处理的一个高效工具,特别适用于大规模数据的搜索...
7. 更新 Solr 配置文件 `solrconfig.xml`,设置数据目录为刚才创建的数据目录,替换 `${solr.data.dir:}</dataDir>` 为 `${solr.data.dir:D:/data/solr/collection1/data}</dataDir>`。 8. 设置 Solr 的 `home` ...
标题中的"ik-analyzer-solr7(支持solr7)"指的是IK Analyzer,这是一个针对Apache Solr搜索引擎的中文分词插件,专为Solr 7版本进行了优化和适配。IK Analyzer是一款开源的Java实现的中文分词器,旨在提供高效、灵活...
OpenShift Apache Solr 4.10.4 快速入门这是一个 OpenShift Quickstart 存储库,可帮助您快速启动和运行 Apache Solr 4.10.4。安装要安装快速入门,请使用以下命令 # Create your application to host your Apache ...
Solr 数据导入调度器(solr-dataimport-scheduler.jar)是一个专门为Apache Solr 7.x版本设计的组件,用于实现数据的定期索引更新。在理解这个知识点之前,我们需要先了解Solr的基本概念以及数据导入处理...
《IK Analyzer在Solr 7.x中的应用与配置详解》 IK Analyzer,全称为"Intelligent Keyword Analyzer",是一款基于Java实现的、广泛应用于搜索引擎和NLP(自然语言处理)领域的中文分词器。它以其高效、灵活和高度可...
文档标题 "solr7官方文档" 指示了这是针对 Solr 7.x 版本的使用手册,这个版本的 Solr 是目前较为先进稳定的版本,包含了大量功能和性能上的改进。 文档的【描述】部分反复强调“solr 使用官方指南”,这意味着文档...
《Apache Solr 7官方指南》是为了解析和掌握这个强大工具的重要参考资料,旨在帮助用户深入理解Solr 7的各种特性和功能。 Solr的核心功能包括全文检索、命中高亮、拼写建议、分类、 faceting(分面导航)、实时添加...
Solr 7官方文档是关于Apache Solr 7版本的详尽指南,它是一个高度可扩展、高性能的全文搜索引擎服务器,广泛应用于企业级搜索场景。Solr基于Java开发,能够处理大量的索引和查询请求,并提供了丰富的功能来满足各种...