public InternalAutoIndexing(Config config, TokenHolder propertyKeyLookup) { this._nodes = new InternalAutoIndexOperations(propertyKeyLookup, InternalAutoIndexOperations.EntityType.Node); this._relationships = new InternalAutoIndexOperations(propertyKeyLookup, InternalAutoIndexOperations.EntityType.Relationship); this._nodes.enabled(config.Get(GraphDatabaseSettings.node_auto_indexing)); this._nodes.replacePropertyKeysToInclude(config.Get(GraphDatabaseSettings.node_keys_indexable)); this._relationships.enabled(config.Get(GraphDatabaseSettings.relationship_auto_indexing)); this._relationships.replacePropertyKeysToInclude(config.Get(GraphDatabaseSettings.relationship_keys_indexable)); }
private string TokenById(TokenHolder tokenHolder, int tokenId, string tokenType) { try { string tokenName = tokenHolder.GetTokenById(tokenId).name(); return(_includeId ? NameAndId(tokenId, tokenName) : tokenName); } catch (TokenNotFoundException) { // Ignore errors from reading key } return(NameAndId(tokenId, tokenType)); }
/// <summary> /// Create new lucene fulltext index builder. /// </summary> /// <param name="descriptor"> The descriptor for this index </param> /// <param name="propertyKeyTokenHolder"> A token holder used to look up property key token names by id. </param> /// <returns> new FulltextIndexBuilder </returns> public static FulltextIndexBuilder Create(FulltextIndexDescriptor descriptor, Config config, TokenHolder propertyKeyTokenHolder) { return(new FulltextIndexBuilder(descriptor, config, propertyKeyTokenHolder)); }
private FulltextIndexBuilder(FulltextIndexDescriptor descriptor, Config config, TokenHolder propertyKeyTokenHolder) : base(config) { this._descriptor = descriptor; this._propertyKeyTokenHolder = propertyKeyTokenHolder; }