package searchsvc

import (
	"go.uber.org/zap"
)

func (exec *execCtx) executeLocal() {
	ids, err := exec.svc.localStorage.search(exec)

	if err != nil {
		exec.status = statusUndefined
		exec.err = err

		exec.log.Debug("local operation failed",
			zap.String("error", err.Error()),
		)

		return
	}

	exec.writeIDList(ids)
}