When a new index is added to an existing entity classes that already has instances in the database, it cannot be used in queries, because it starts empty and unsynchronized with the existing primary data.
The Index Rebuilder tool will enable rebuilding indexes, synchronizing their data with the primary data. As a workaround, you can currently use the ObjectDB Doctor to build a new database file, in which such new indexes will be enabled.
ObjectDB Support