Exemple #1
0
        internal LuceneFulltextIndex(PartitionedIndexStorage storage, IndexPartitionFactory partitionFactory, FulltextIndexDescriptor descriptor, TokenHolder propertyKeyTokenHolder) : base(storage, partitionFactory, descriptor)
        {
            this._analyzer               = descriptor.Analyzer();
            this._identifier             = descriptor.Name;
            this._type                   = descriptor.Schema().entityType();
            this._properties             = descriptor.PropertyNames();
            this._propertyKeyTokenHolder = propertyKeyTokenHolder;
            File indexFolder = storage.IndexFolder;

            _transactionsFolder = new File(indexFolder.Parent, indexFolder.Name + ".tx");
        }
Exemple #2
0
 public AbstractLuceneIndex(PartitionedIndexStorage indexStorage, IndexPartitionFactory partitionFactory, IndexDescriptor descriptor)
 {
     this.IndexStorage       = indexStorage;
     this._partitionFactory  = partitionFactory;
     this.DescriptorConflict = descriptor;
 }
Exemple #3
0
 internal LuceneSchemaIndex(PartitionedIndexStorage indexStorage, IndexDescriptor descriptor, IndexSamplingConfig samplingConfig, IndexPartitionFactory partitionFactory) : base(indexStorage, partitionFactory, descriptor)
 {
     this._samplingConfig = samplingConfig;
 }
Exemple #4
0
 internal TestLuceneIndex(PartitionedIndexStorage indexStorage, IndexPartitionFactory partitionFactory) : base(indexStorage, partitionFactory, null)
 {
 }