Searchyll TypeError fails build

Hello,

on ❯ bundle exec jekyll s --livereload --trace I get:

Configuration file: /Users/deniz/_code/gh-pages/pozilei.github.io/_config.yml
            Source: /Users/deniz/_code/gh-pages/pozilei.github.io
       Destination: /Users/deniz/_code/gh-pages/pozilei.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
      Remote Theme: Using theme jekyll/minima
       Jekyll Feed: Generating feed for posts
Increased batch to 60
Increased batch to 72
bundler: failed to load command: jekyll (/Users/deniz/.gem/ruby/3.1.0/bin/jekyll)
/Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:182:in `[]': no implicit conversion of String into Integer (TypeError)
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:182:in `block in old_indices'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:182:in `each'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:182:in `map'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:182:in `old_indices'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:224:in `finalize_aliases'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:196:in `block in finalize!'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:109:in `http_start'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:193:in `finalize!'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:55:in `finish'
        from /Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll.rb:19:in `block in <top (required)>'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/hooks.rb:103:in `block in trigger'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/hooks.rb:102:in `each'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/hooks.rb:102:in `trigger'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:213:in `render'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/site.rb:80:in `process'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:28:in `process_site'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:65:in `build'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:36:in `process'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `each'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
        from /Users/deniz/.gem/ruby/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
        from /Users/deniz/.gem/ruby/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
        from /Users/deniz/.gem/ruby/3.1.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
        from /Users/deniz/.gem/ruby/3.1.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
        from /Users/deniz/.gem/ruby/3.1.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
        from /Users/deniz/.gem/ruby/3.1.0/gems/jekyll-4.2.2/exe/jekyll:15:in `<top (required)>'
        from /Users/deniz/.gem/ruby/3.1.0/bin/jekyll:25:in `load'
        from /Users/deniz/.gem/ruby/3.1.0/bin/jekyll:25:in `<top (required)>'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `load'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in `kernel_load'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in `run'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:483:in `exec'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:25:in `start'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.11/exe/bundle:48:in `block in <top (required)>'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in `with_friendly_errors'
        from /usr/local/Cellar/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.11/exe/bundle:36:in `<top (required)>'
        from /usr/local/opt/ruby/bin/bundle:25:in `load'
        from /usr/local/opt/ruby/bin/bundle:25:in `<main>'

My config.yml:

baseurl: "" # the subpath of your site, e.g. /blog
timezone: Germany/Berlin

## SEO ##
lang: en
title: TITLE OBFUSCATED
author:
  name: NAME OBFUSCATED
  email: "EMAIL OBFUSCATED"
tagline: Blog about computer science, technology and cryptocurrencies
description: Personal website of Deniz Furater. Articles mainly include computer science and technology. At some point in the future - hopefully dog content, too.

# Sitemap
url: "URL OBFUSCATED" # the base hostname & protocol for your site

# Build settings
remote_theme: jekyll/minima

minima:
  skin: classic

plugins:
  - jekyll-remote-theme
  - jekyll-feed
  - jemoji
  - jekyll-seo-tag
  - searchyll
  - jekyll-sitemap

# Pages in Navbar
header_pages:
  - blog.markdown
  - links.md
  - cv-contact.html

elasticsearch:
  url: "URL OBFUSCATED"
  index_name: jekyll-search

show_excerpts: false

Thank you very much for any help, at this point, I tried removing and reinstalling jekyll, but it did not help.

I have not worked with searchyll before, but it looks like that looks to be the culprit. The message says:

bundler: failed to load command: jekyll (/Users/deniz/.gem/ruby/3.1.0/bin/jekyll)
/Users/deniz/.gem/ruby/3.1.0/gems/searchyll-0.10.2/lib/searchyll/indexer.rb:182:in `[]': no implicit conversion of String into Integer (TypeError)

I am not familiar with this particular gem, but the searchyll GitHub site has a readme file that explains how you have to install and configure it to work correctly. Have you followed the instructions in the link below?