Example #1
0
 private IDictionary <string, string> Config(Type cls, string indexName, IDictionary <string, string> config)
 {
     // TODO Doesn't look right
     if (config != null)
     {
         config = MapUtil.stringMap(new Dictionary <>(config), Org.Neo4j.Graphdb.index.IndexManager_Fields.PROVIDER, LuceneIndexImplementation.SERVICE_NAME);
         IndexStore.setIfNecessary(cls, indexName, config);
         return(config);
     }
     else
     {
         return(IndexStore.get(cls, indexName));
     }
 }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visitIndexCreateCommand(org.neo4j.kernel.impl.index.IndexCommand.CreateCommand command) throws java.io.IOException
        public override bool VisitIndexCreateCommand(IndexCommand.CreateCommand command)
        {
            _indexConfigStore.setIfNecessary(IndexEntityType.byId(command.EntityType).entityClass(), _defineCommand.getIndexName(command.IndexNameId), command.Config);
            return(Applier(command).visitIndexCreateCommand(command));
        }