Hi Alessandro,

Thank you, it's working. Thank you to introduce me about 
OPropertyIndexDefinition class, now I could access an instance of 
IndexDefinition to update that value.

My Best,
Hung Tran

On Monday, January 4, 2016 at 5:22:11 PM UTC+7, [email protected] wrote:
>
> Try with this code
>
> OSchema schema = db.getMetadata().getSchema();
>
> OClass oClass = schema.createClass("Place");
> oClass.createProperty("name", OType.STRING);
>  
> OPropertyIndexDefinition op=new OPropertyIndexDefinition("Place", "name", 
> OType.STRING);
> op.setNullValuesIgnored(false);
> OIndexManagerProxy im = db.getMetadata().getIndexManager();
> im.createIndex("Place.name", "NOTUNIQUE_HASH_INDEX", op, null, null, null 
> );
>
> Kind regards,
> Alessandro
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to