fix more index problems
This commit is contained in:
parent
f04af2b12e
commit
9b1cb354d4
1 changed files with 4 additions and 9 deletions
|
@ -416,18 +416,13 @@ func (s *Server) Search(ctx context.Context, in *pb.SearchRequest) (*pb.Outputs,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
var numIndices = 0
|
var numIndices = len(indices)
|
||||||
if len(indices) > 0 {
|
searchIndices = make([]string, 0, numIndices)
|
||||||
numIndices = len(indices) - 1
|
for i := 0; i < numIndices; i++ {
|
||||||
}
|
|
||||||
searchIndices = make([]string, numIndices)
|
|
||||||
j := 0
|
|
||||||
for i := 0; j < numIndices; i++ {
|
|
||||||
if indices[i] == "claims" {
|
if indices[i] == "claims" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
searchIndices[j] = indices[i]
|
searchIndices = append(searchIndices, indices[i])
|
||||||
j = j + 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue