10018---solrserver Extension
来源:互联网 发布:mac cf 编辑:程序博客网 时间:2024/06/05 03:14
This document introduces the hybris solrserverextension.
Before Implementing
A hybris extension may provide functionality that is licensed through different hybris modules.
Make sure to limit your implementation to the features defined in your contractlicense.
In case of doubt, please contact your hybris Sales representative.
Overview
The solrserver extension includes a standalone Solr server which may be automatically configured,
started and stopped together with the Platform. This extension is not required by default,
but it is very convenient for you to enable it in CI or developer environments.
Multiple Solr instances can be created. A Solr instance is a combination of configuration, data and log files.
Only one Solr server can be started/stopped per instance.
Configuration
Solr Instance Settings
The extension is able to control more than one instance. Each instance has a name and can be configured via properties in thelocal.properties file. The following properties are available:
${HYBRIS_CONFIG_DIR}/solr/instances/<instance name>
Directory that contains Solr instance configurationsolrserver.instances.<instance name>.data.dir${HYBRIS_DATA_DIR}/solr/instances/<instance name>
Directory that contains Solr instance datasolrserver.instances.<instance name>.javaoptions Additional command line options to be used by the Solr server processsolrserver.instances.<instance name>.log.dir${HYBRIS_LOG_DIR}/solr/instances/<instance name>
Directory that contains Solr instance logssolrserver.instances.<instance name>.memory512mThe amount of memory (heap) to be used by the Solr server processsolrserver.instances.<instance name>.port8983TCP port that is used by Solr server (each instance should use a different port)solrserver.instances.default.autostart=truesolrserver.instances.default.port=8983solrserver.instances.default.memory=512m
Solr Server Configuration Files
In order to work properly the Solr server needs some configuration. Each instance will have its own set of configuration files that will be put under the instance configuration directory. Those files will be created automatically when the instance is created. By default it should have a structure similar to the following:
Note
Starting with version 5.7 the log4j.properties
file will not be used on windows system.
This is due to some limitations in the Solr startup scripts. To avoid issues no more than one Solr server should be started per hybris installation.
Controlling a Solr Instance / Server
Solr instances and servers may be controlled:
- manually by using provided ant tasks;
- automatically: Solr servers for instances with autostart=true are started when the Spring global context is
Algorithm for the Automatic Start of the Solr Server
For each Solr instance:
- Check if the corresponding Solr is running. If no, go to step 6.
- Check if the running Solr server is the proper one. If not, throw an error.
- If forceRestart property is set to false go to step 6.
- Stop the Solr server.
- Check if the Solr server is properly stopped. If not, throw an error.
- Start the Solr server.
- Check if the Solr server is properly started. If not, throw an error.
Available Ant Tasks
The solrserver extension provides some additional ant tasks that can be used to control the Solr instances and servers. By using a parameter it is possible to override some of the instance properties. The default instance name is default. The following ant tasks are available:
- 10018---solrserver Extension
- solr SolrServer
- SolrServer源码
- solrserver实例化
- extension
- Extension
- Extension
- Solr笔记五之SolrServer
- solrj 查询SolrServer的一般流程
- solr入门之SolrServer实例化方式
- Solr入门之SolrServer实例化方式
- Solr入门之SolrServer实例化方式
- Solr入门之SolrServer实例化方式
- Solr入门之SolrServer实例化方式
- firefox extension
- PHP Extension
- Hibernate Extension
- Extension Interface
- Scrapy设置之Performance概览
- LeetCode 17 Letter Combinations of a Phone Number
- 为什么我要成为最佳(二)
- [算法学习]20150409.1.插入排序
- mysql数据库导出的方法
- 10018---solrserver Extension
- C和指针笔记
- tslib安装 C compiler cannot create executables
- 导入java项目
- JSP、Cookie、Session
- NOJ 2076 天神小学
- 第七周项目2:求两点的距离(1)成员函数
- 深度学习概述:从感知机到深度网络
- 操作系统线程相关知识学习