Buggy code:
userClass . createIndex ( "index-user-emailAddress" , UNIQUE_HASH_INDEX , "emailAddress" ) ; } OClass nsClass = orientDb . getMetadata ( ) . getSchema ( ) . getClass ( Namespace ) ; if ( nsClass == null ) { nsClass = orientDbGraph . createVertexType ( Namespace ) ; nsClass . createProperty ( Element_ID , LONG ) ; nsClass . createProperty ( ns_P_prefix , STRING ) ; nsClass . createProperty ( ns_P_uri , STRING ) ; nsClass . createIndex ( "index-namespace-id" , UNIQUE , Element_ID ) ; } OClass bTermClass = orientDb . getMetadata ( ) . getSchema ( ) . getClass ( BaseTerm ) ; if ( bTermClass == null ) { bTermClass = orientDbGraph . createVertexType ( BaseTerm ) ; bTermClass . createProperty ( BTerm_P_name , STRING ) ; bTermClass . createProperty ( Element_ID , LONG ) ; bTermClass . createProperty ( BTerm_E_Namespace , LINK , nsClass ) ; bTermClass . createIndex ( Index_BTerm_name , "FULLTEXT" , null , null , "LUCENE" , new String [ ] { NdexClasses . BTerm_P_name } ) ; bTermClass . createIndex ( "index-baseterm-id" , UNIQUE , Element_ID ) ; } OClass citationClass = orientDb . getMetadata ( ) . getSchema ( ) . getClass ( Citation ) ; if ( cls == null ) { citationClass = orientDbGraph . createVertexType ( Citation ) ; citationClass . createProperty ( "contributors" , EMBEDDEDLIST , STRING ) ; citationClass . createProperty ( Element_ID , LONG ) ; citationClass . createProperty ( "properties" , EMBEDDEDLIST ) ; citationClass . createProperty ( "presentationProperties" , EMBEDDEDLIST ) ; citationClass . createProperty ( "title" , STRING ) ; citationClass . createIndex ( "index-citation-id" , NOTUNIQUE , Element_ID ) ; } OClass supportClass = orientDbGraph . getVertexType ( Support ) ; if ( supportClass == null ) { supportClass = orientDbGraph . createVertexType ( Support ) ; supportClass . createProperty ( Element_ID , LONG ) ; supportClass . createProperty ( "text" , STRING ) ; supportClass . createIndex ( "index-support-id" , NOTUNIQUE , Element_ID ) ; } OClass edgeClass = orientDb . getMetadata ( ) . getSchema ( ) . getClass ( Edge ) ; if ( edgeClass == null ) { edgeClass = orientDbGraph . createVertexType ( Edge ) ; edgeClass . createProperty ( Element_ID , LONG ) ; edgeClass . createProperty ( "properties" , EMBEDDEDLIST ) ; edgeClass . createProperty ( "presentationProperties" , EMBEDDEDLIST ) ; edgeClass . createProperty ( Edge_E_citations , LINKSET , citationClass ) ; edgeClass . createIndex ( "index-edge-id" , UNIQUE , Element_ID ) ; } cls = orientDb . getMetadata ( ) . getSchema ( ) . getClass ( FunctionTerm ) ; if ( cls == null ) { OClass functionTermClass = orientDbGraph . createVertexType ( FunctionTerm ) ; functionTermClass . createProperty ( Element_ID , LONG ) ; functionTermClass . createProperty ( "functionTermOrderedParameters" , EMBEDDEDLIST ) ; functionTermClass . createIndex ( "index-function-id" , UNIQUE , Element_ID ) ; } cls = orientDb . getMetadata ( ) . getSchema ( ) . getClass ( ReifiedEdgeTerm ) ; if ( ( orientDbGraph . getVertexType ( "reifiedEdgeTerm" ) ) == null ) { OClass reifiedEdgeTermClass = orientDbGraph . createVertexType ( ReifiedEdgeTerm ) ; reifiedEdgeTermClass . createProperty ( Element_ID , LONG ) ; reifiedEdgeTermClass . createIndex ( "index-reifiedEdge-id" , UNIQUE , Element_ID ) ; } if ( ( orientDbGraph . getVertexType ( Network ) ) == null ) { OClass networkClass = orientDbGraph . createVertexType ( Network , clsNdxExternalObj ) ; networkClass . createProperty ( Network_P_desc , STRING ) ; networkClass . createProperty ( "edgeCount" , INTEGER ) ; networkClass . createProperty ( "properties" , EMBEDDEDLIST ) ; networkClass . createProperty ( "presentationProperties" , EMBEDDEDLIST ) ; networkClass . createProperty ( "nodeCount" , INTEGER ) ; networkClass . createProperty ( Network_P_name , STRING ) ; networkClass . createProperty ( Network_P_version , STRING ) ; networkClass . createProperty ( "highestElementId" , INTEGER ) ; networkClass . createProperty ( Network_E_Namespace , LINKSET , nsClass ) ; <START_BUG> networkClass . createIndex ( Index_network_name_desc , "FULLTEXT" , null , null , "LUCENE" , new String [ ] { NdexClasses . Network_P_name , NdexClasses . Network_P_desc } ) ; <END_BUG> } if ( ( orientDbGraph . getVertexType ( Node ) ) == null ) { OClass nodeClass = orientDbGraph . createVertexType ( Node ) ; nodeClass . createProperty ( Node_P_name , STRING ) ; nodeClass . createProperty ( Element_ID , LONG ) ; nodeClass . createProperty ( "properties" , EMBEDDEDLIST ) ; nodeClass . createProperty ( Node_E_represents , LINK , bTermClass ) ; nodeClass . createProperty ( Edge_E_subject , LINKSET , edgeClass ) ; nodeClass . createProperty ( Edge_E_object , LINKSET , edgeClass ) ; nodeClass . createProperty ( Node_E_alias , LINKSET , bTermClass ) ; nodeClass . createProperty ( Node_E_relateTo , LINKSET , bTermClass ) ; nodeClass . createProperty ( Node_E_citations , LINKSET , citationClass ) ; nodeClass . createProperty ( Node_E_supports , LINKSET , supportClass ) ; nodeClass . createIndex ( Index_node_id , UNIQUE , Element_ID ) ; nodeClass . createIndex ( Index_node_name , "FULLTEXT" , null , null , "LUCENE" , new String [ ] { NdexClasses . Node_P_name } ) ; } if ( ( orientDbGraph . getVertexType ( Provenance ) ) == null ) { orientDbGraph . createVertexType ( Provenance ) ; } if ( ( orientDbGraph . getVertexType ( Subnetwork ) ) == null ) { OClass clss = orientDbGraph . createVertexType ( Subnetwork ) ; clss . createProperty ( Element_ID , LONG ) ; clss . createProperty ( "subnetworktype" , STRING ) ; clss . createProperty ( "name" , STRING ) ; clss . createProperty ( "properties" , EMBEDDEDLIST ) ; } orientDb . getMetadata ( ) . getSchema ( ) . save ( ) ; versionDoc = new ODocument ( NdexSchemaManager . NdexVField , NdexSchemaManager . NdexDbVersion ) ; orientDb . getDictionary ( ) . put ( NdexSchemaManager . NdexDbVersionKey , versionDoc ) ; orientDbGraph . commit ( ) ; this . setInitialized ( Boolean . TRUE ) ; } public Boolean isInitialized ( ) { }

Fix:
networkClass . createIndex ( Index_network_name_desc , "FULLTEXT" , null , null , "LUCENE" , new String [ ] { NdexClasses . ExternalObj_ID , NdexClasses . Network_P_name , NdexClasses . Network_P_desc } ) ;