Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Vector field with index_missing=True cannot be created

オープン 初心者向け
#770 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

@RaphaelFakhri がすでに取り組んでいます。

2026年10月17日 から。

  • #771 @RaphaelFakhri による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, redis
領域
backend, databases

調査の方向性

Start by reading BaseVectorFieldAttributes.field_data and the vector field construction path used by SearchIndex.create(); compare that with how redis-py’s VectorField accepts index_missing=True on the field constructor. Check the existing vector field tests for HNSW, flat, and svs-vamana. Done means index creation succeeds with index_missing: True and ismissing(@emb) matches documents without the field.

索引モデルが issue の本文から書いたものです。

説明

Description

A vector field declared with index_missing: True makes SearchIndex.create() fail. The same review thread on #742 noted this, and the from_existing parser skips INDEXMISSING on vector fields for this reason.

BaseVectorFieldAttributes.field_data adds "INDEXMISSING": True to the algorithm attribute dict. redis-py's VectorField counts and sends every dict entry inside the attribute block, so:

  1. The client rejects the Python bool before sending: Invalid input of type: 'bool'.
  2. Even as a string, the server rejects the token inside the block: Bad arguments for algorithm HNSW: INDEXMISSING.

FT.CREATE expects INDEXMISSING after the attribute block, which is where redis-py puts it when you pass index_missing=True to the field constructor.

Reproduction

Redis 8.4, redis-py 8.1.0, RedisVL main (e5d7598):

from redisvl.index import SearchIndex

schema = {
    "index": {"name": "im", "prefix": "im", "storage_type": "hash"},
    "fields": [
        {"name": "id", "type": "tag"},
        {"name": "emb", "type": "vector",
         "attrs": {"dims": 3, "algorithm": "hnsw", "index_missing": True}},
    ],
}
SearchIndex.from_dict(schema, redis_url="redis://localhost:6379").create()
redisvl.exceptions.RedisSearchError: Failed to create index 'im' on Redis:
Invalid input of type: 'bool'. Convert to a bytes, string, int or float first.

The same happens with flat and svs-vamana.

Expected behavior

The index is created with INDEXMISSING on the vector field, and ismissing(@emb) matches documents without the field.

主要言語
Python
スター
431
フォーク
107
平均マージ
5日 17時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

redis/redis-vl-python のほかの issue

redis/redis-vl-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。