@Override public void create(){
  assertWritable();
  final String name=getNamespace() + "." + NAME_SEARCH;
  final IIndexManager indexManager=getIndexManager();
  final Properties p=getProperties();
  final IndexMetadata indexMetadata=new IndexMetadata(indexManager,p,name,UUID.randomUUID(),IndexTypeEnum.BTree);
  final IKeyBuilderFactory keyBuilderFactory;
{
    final Properties tmp=new Properties(p);
    tmp.setProperty(KeyBuilder.Options.STRENGTH,p.getProperty(Options.INDEXER_COLLATOR_STRENGTH,Options.DEFAULT_INDEXER_COLLATOR_STRENGTH));
    keyBuilderFactory=new DefaultKeyBuilderFactory(tmp);
  }
  final boolean fieldsEnabled=Boolean.parseBoolean(p.getProperty(Options.FIELDS_ENABLED,Options.DEFAULT_FIELDS_ENABLED));
  if (log.isInfoEnabled())   log.info(Options.FIELDS_ENABLED + "=" + fieldsEnabled);
  indexMetadata.setTupleSerializer(new RDFFullTextIndexTupleSerializer(keyBuilderFactory,DefaultTupleSerializer.getDefaultLeafKeysCoder(),SimpleRabaCoder.INSTANCE,fieldsEnabled));
  indexManager.registerIndex(indexMetadata);
  if (log.isInfoEnabled())   log.info("Registered new text index: name=" + name);
}

@ Override public void create ( ) { assertWritable ( ) ; final String name = getNamespace ( ) + "." + NAME_SEARCH ; final IIndexManager indexManager = getIndexManager ( ) ; final Properties p = getProperties ( ) ; final IndexMetadata indexMetadata = new IndexMetadata ( indexManager , p , name , UUID . randomUUID ( ) , IndexTypeEnum . BTree ) ; final IKeyBuilderFactory keyBuilderFactory ; { final Properties tmp = new Properties ( p ) ; tmp . setProperty ( KeyBuilder . Options . STRENGTH , p . getProperty ( Options . INDEXER_COLLATOR_STRENGTH , Options . DEFAULT_INDEXER_COLLATOR_STRENGTH ) ) ; keyBuilderFactory = new DefaultKeyBuilderFactory ( tmp ) ; } final boolean fieldsEnabled = Boolean . parseBoolean ( p . getProperty ( Options . FIELDS_ENABLED , Options . DEFAULT_FIELDS_ENABLED ) ) ; if ( log . isInfoEnabled ( ) ) log . info ( Options . FIELDS_ENABLED + "=" + fieldsEnabled ) ; indexMetadata . setTupleSerializer ( new RDFFullTextIndexTupleSerializer ( keyBuilderFactory , DefaultTupleSerializer . getDefaultLeafKeysCoder ( ) , SimpleRabaCoder . INSTANCE , fieldsEnabled ) ) ; indexManager . registerIndex ( indexMetadata ) ; if ( log . isInfoEnabled ( ) ) log . info ( "Registered new text index: name=" + name ) ; }
conditionally registers the necessary index ( s ) .
