init or create index
(order string)
| 245 | |
| 246 | // init or create index |
| 247 | func (s *SearchAlgolia) getIndex(order string) (index *search.Index) { |
| 248 | idx := s.getIndexName(order) |
| 249 | return s.client.InitIndex(idx) |
| 250 | } |
| 251 | |
| 252 | func (s *SearchAlgolia) getIndexName(order string) string { |
| 253 | // main index |
no test coverage detected