Integer Value appeared as a string

Someone reported a few items not showing up. I looked into it and see what could be a bug.

In my only index I have 2 fields :

  • active
  • stock status

Both are integers as a boolean : 0 or 1.

The index has a rule that both be 1 .

When I removed the rule to see the items, I found that the 2 fields were both strings “1”

Records before and after are all only integers. The code which creates and updates the index has not been changed for a long time.

Also, I cannot figure out how many items are in this state as searching for a string “1” returns empty results (presumably as a result of the others being integers)

Is this a known Algolia bug? Or any ideas?