Calaca
Trono
Calaca는 아름답고 사용하기 쉬운 Elasticsearch용 검색 UI입니다. 문서를 빠르게 검색해야 하고 설정이나 사용이 어려운 경우를 위해 만들어졌습니다.
config.js 에서 Elasticsearch 클러스터와 일치하도록 구성을 변경합니다.
/* Configs */
url: "http://localhost:9200" //Cluster http url
index_name: "twitter" //Index name or comma-separated list
type: "tweet" //Type
size: 10 //Number of results displayed at a time
search_delay: 500 //Delay between actual search request in ms
index.html 에서 result.
es 문서에서 표시하려는 필드 이름입니다. 점 표기법을 사용하면 result.transactions.time
과 같은 중첩 필드에 액세스할 수 있습니다.
< h2 > {{result.name}} </ h2 >
< p > {{result.description}} </ p >
Elasticsearch 홈 디렉터리에서 Elasticsearch 플러그인으로 설치할 수도 있습니다. config.js 및 index.html 에도 동일한 구성 업데이트가 필요합니다.
여기서는 ElasticSearch 버전 2.x를 지원합니다.
bin/plugin install romansanchez/calaca
이제 다음 URL을 방문하여 액세스할 수 있습니다: http://your-host:9200/_plugin/calaca/
아래 CSS 클래스를 구현하여 Calaca의 모양과 느낌을 쉽게 변경할 수 있습니다.
. title
. search-box
. no-results
. results
. result
http.cors.enabled: true
및 http.cors.allow-origin: "*"
를 elasticsearch.yml
에 추가하세요. 1.2.1
@rooomansanchez
크로스
MIT