JAVACAFE-STUDY / elasticsearch-2023

검색엔진 스터디 팀
0 stars 0 forks source link

5주차 - 실습환경 구축하기 #4

Open clghks opened 11 months ago

clghks commented 11 months ago

docker에 elasticsearch 설치

leebokeum commented 11 months ago
  1. elasticsearch:8.10.2 설치
  2. elasticsearch.yml 수정
    
    cluster.name: "docker-cluster"
    network.host: 0.0.0.0

----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------

#

The following settings, TLS certificates, and keys have been automatically

generated to configure Elasticsearch security features on 17-10-2023 12:41:10

#

--------------------------------------------------------------------------------

Enable security features

xpack.security.enabled: false

xpack.security.enrollment.enabled: false

Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents

xpack.security.http.ssl: enabled: false keystore.path: certs/http.p12

Enable encryption and mutual authentication between cluster nodes

xpack.security.transport.ssl: enabled: false verification_mode: certificate keystore.path: certs/transport.p12 truststore.path: certs/transport.p12

Create a new cluster with the current node only

Additional nodes can still join the cluster later

cluster.initial_master_nodes: ["9d9ae4a8858c"]

----------------------- END SECURITY AUTO CONFIGURATION -------------------------http.cors.enabled: true

http.cors.allow-origin: "*" http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE http.cors.allow-headers: "X-Requested-With,X-Auth-Token,Content-Type, Content-Length, Authorization"


3. https://github.com/javacafe-project/movie-finder 
 - node 설치 필수
 - vue 프로젝트 실습환경 구성
leebokeum commented 11 months ago

vue 프로젝트 오류 수정

/router/index.js

import { BootstrapVue, IconsPlugin  } from 'bootstrap-vue';

Vue.use(Router)
Vue.use(BootstrapVue)
Vue.use(IconsPlugin)
leebokeum commented 11 months ago

실습중 이슈 가이드 드립니다.

  1. vue 프로젝트를 띄우시면 상단 헤더의 manager 메뉴에서 index를 만들 수 있지만 UI에서 하지 마시고 직접 api로 만드세요. (은전한입 플러그인 기반으로 index setting 되도록 하드코딩 되어 있음. 우리는 nori로 실습 할 것임)

// to_be index : { _index : indexName }

leebokeum commented 11 months ago

최종적으로 아래와 같이 검색이 되시면 성공입니다.

image
jerryjungwh commented 11 months ago
image
image
clghks commented 11 months ago
스크린샷 2023-10-23 오후 10 24 06
KimDoubleB commented 11 months ago
image

https://github.com/KimDoubleB/LAB/tree/master/docker/elastic-search

Ting-Kim commented 11 months ago
image
62hoon99 commented 11 months ago

image