here are the exact repro steps, I created new database and validated the this behaviour reproduce.
I'm creating the db schema using the following script:
CREATE CLASS Contact extends V
CREATE PROPERTY Contact.id STRING
CREATE INDEX Contactid on Contact(id) UNIQUE_HASH_INDEX
ALTER PROPERTY Contact.id NOTNULL true
ALTER PROPERTY Contact.id READONLY true
ALTER PROPERTY Contact.id MANDATORY true
then I insert new Contact vertex using the following command: INSERT INTO Contact SET ID = '555'
The query SELECT * FROM Contact WHERE ID = '555' returns empty
After I rebuild the index the query return the results.
Any ideas?
Thanks!