elasthink
1.0.0
거꾸로 된 색인을 사용하여 색인을 구축하고 Redis를 사용하여 인덱스를 저장하는 작은 문서 세트를 위해 Go에 작성된 Elasticsearch 엔진의 대안.
document_type , document_id 및 document_name )document_type , document_id 및 document_name )document_type 및 search_term 필요)document_type 및 keyword_prefix ) 곧 올 것입니다!
SDK를 사용하면 전용 Elasthink 서버를 설정하지 않고도 Redis 연결을 제공하여 GO 서비스에서 Elasthink의 모든 핵심 기능을 실행할 수 있습니다.
현재 SDK는 릴리스 준비 중입니다. 그러니 최신 업데이트를 얻으려면 계속 지켜봐주십시오.
$ go get github.com/SurgicalSteel/elasthink 실행해야합니다.files/config/redis 폴더에서 각 환경에 대한 Redis 주소를 지정해야합니다.module/document.go entity/document.go 에서 문서 유형을 수정해야합니다.$ go build$ ./elasthink -h 를 실행하십시오$ ./elasthink -env={your-environment} -swr={stopword Removal option (true/false)} run and elasthink 웹 서비스가 localhost:9000 에서 실행됩니다. API 문서 (Insomnia 형식)는 elasthink_insomnia_api_documentation.json 에서 사용할 수 있습니다. Insomnia Rest Client를 사용하여 열 수 있습니다
코드 문서의 경우 표준 Godoc을 코드 문서 도구로 사용합니다. 코드 문서를 보려면 다음 단계를 따르십시오.
godoc -http=:6060 (이것은 포트 6060에서 Godoc을 트리거 할 것입니다)http://127.0.0.1:6060/pkg/github.com/SurgicalSteel/elasthink/ 을 누르십시오. 전자 책 redis in action 2 부
현재 Elasthink는 문서 이름 및 검색어에 대한 토큰 화를 수행 할 때 Stopwords 제거 옵션을 지원합니다. 그러나 현재 우리는 Bahasa Indonesia (인도네시아)의 스톱워드 제거 만 지원합니다.