fix more index problems

This commit is contained in:
Jeffrey Picard 2021-06-17 13:06:33 -04:00
parent f04af2b12e
commit 9b1cb354d4

View file

@ -416,18 +416,13 @@ func (s *Server) Search(ctx context.Context, in *pb.SearchRequest) (*pb.Outputs,
if err != nil {
log.Fatalln(err)
}
var numIndices = 0
if len(indices) > 0 {
numIndices = len(indices) - 1
}
searchIndices = make([]string, numIndices)
j := 0
for i := 0; j < numIndices; i++ {
var numIndices = len(indices)
searchIndices = make([]string, 0, numIndices)
for i := 0; i < numIndices; i++ {
if indices[i] == "claims" {
continue
}
searchIndices[j] = indices[i]
j = j + 1
searchIndices = append(searchIndices, indices[i])
}
}