0

그래서 나는 크고 상당히 씨앗 파일을 실행하고 있어요. 배치를 저장하기 전에 모든 유형의 연관된 레코드를 일괄 적으로 배치합니다. 이 오류가 발생하는 문제가 있습니다.레일 : 내 씨앗 파일과 elasticsearch 던져 실행 : 두 개 이상의 인덱스

Elasticsearch::Transport::Transport::Errors::BadRequest: [400] 
{"error":{"root_cause": 
[{"type":"illegal_argument_exception","reason":"Alias 
[clients_development] has more than one indices associated with it 
[[clients_development_20170106095823597, 
clients_development_20161123102035835]], can't execute a single index 
op"}],"type":"illegal_argument_exception","reason":"Alias 
[clients_development] has more than one indices associated with it 
[[clients_development_20170106095823597, 
clients_development_20161123102035835]], can't execute a single index 
op"},"status":400} 
/Users/ 

DB 문제가있는 것 같습니다./dev db, 아마도 테스트할까요? 나는 많은 긁어 모으기 명령을 실행했지만,이 수치는이 나쁜 소년에게 달려 있습니다.

rake db:drop && rake db:create && rake db:migrate && rake db:schema:dump && rake db:test:prepare 

나는 이와 같은 오류가 발생합니다. 어떤 일이 벌어지고 있는지에 대한 아이디어가 있습니까?

답변

1

Elasticsearch를 두 개 이상의 장소에서 실행하지 않는 것이 좋습니다. 그 후에 모든 레코드를 다시 색인 해보십시오.

rake searchkick:reindex:all 
+0

Gracias! 그거였다. – romanchukenator