메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


solr에서 기본적으로 managed-schema(Solr의 API만을 이용하여 접근함)를 default로 사용하게 되어 있은데 이를 이전 형태의 schema.xml을 사용할 수 있도록 지정하는 방법은 gc/conf디렉토리밑에 있는 solrconfig.xml에 다음과 같이 지정해준다.


1. managed-schema를 사용하는 경우는 다음과 같이 지정해준다.

 <schemaFactory class="ManagedIndexSchemaFactory">
   <bool name="mutable">true</bool>
   <str name="managedSchemaResourceName">managed-schema</str>
 </schemaFactory>


2. schema.xml을 사용하는 경우는 다음과 같이 지정해준다.

<schemaFactory class="ClassicIndexSchemaFactory"/>

번호 제목 날짜 조회 수
18 solr에서 한글사용시 주의점 2014.09.26 731
17 solr설치및 적용관련 file 2014.09.27 2205
16 solr vs elasticsearch 비교2 2014.09.29 1431
15 [번역] solr 검색 엔진 튜토리얼 2014.10.07 596
14 Using The ZooKeeper CLI에서 zkCli의 위치 2014.11.02 1057
13 서버 5대에 solr 5.5.0 설치하고 index data를 HDFS에 저장/search하도록 설치/설정하는 방법 2016.04.08 173
12 서버 5대에 solr 5.5.0 설치하고 index data를 HDFS에 저장/search하도록 설치/설정하는 방법(SolrCloud) 2016.04.08 749
11 collection생성시 -shards와 -replicationFactor값을 잘못지정하면 write.lock for client xxx.xxx.xxx.xxx already exists오류가 발생한다. 2016.04.28 167
10 solr 인스턴스 기동후 shard에 서버가 정상적으로 할당되지 않는 경우 해결책 2016.04.29 770
9 solr 6.2에 한글 형태소 분석기(arirang 6.x) 적용 및 테스트 file 2017.06.27 1007
8 solr명령 실행시 "Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect" 오류발생 2017.06.30 424
» schema.xml vs managed-schema 지정 사용하기 - 두개를 동시에 사용할 수는 없음 2017.07.09 377
6 Core with name 'xx_shard4_replica1' already exists. 발생시 조치사항 2017.07.22 151
5 core 'gc_shard3_replica2' is already locked라는 오류가 발생할때 조치사항 2017.09.14 130
4 solr 데몬이 떠있는 동안 hadoop이 다운되는 경우 Index dir 'hdfs://mycluster/user/../core_node2/data/index/' of core 'gc_shard1_replica2' is already locked라논 오류가 발생하는데 이에 대한 조치사항 2018.01.04 399
3 shard3가 있는 서버에 문제가 있는 상태에서 solr query를 요청하는 경우 "no servers hosting shard: shard3" 오류가 발생하는 경우 조치사항 2018.01.04 271
2 collection생성혹은 collection조회시 Plugin init failure for [schema.xml] fieldType "pdate": Error loading class 'solr.IntField' 오류 조치사항 2022.04.07 343
1 [Solr in Cloudera]Solr Data Directory변경 방법/절차 2023.04.21 169
위로