MCPcopy Create free account
hub / github.com/apache/answer-plugins / getIndex

Method getIndex

search-algolia/algolia.go:247–250  ·  view source on GitHub ↗

init or create index

(order string)

Source from the content-addressed store, hash-verified

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

Callers 8

SearchContentsMethod · 0.95
SearchQuestionsMethod · 0.95
SearchAnswersMethod · 0.95
UpdateContentMethod · 0.95
DeleteContentMethod · 0.95
batchUpdateContentMethod · 0.95
initSettingsMethod · 0.95

Calls 1

getIndexNameMethod · 0.95

Tested by

no test coverage detected