Exemplo n.º 1
0
        protected HighlighterFactory(IAnalyzerFactory analyzerFactory, bool useExactForDefault)
        {
            _defaultContentAnalyzer = analyzerFactory.CreateHighlighterContentAnalyzer(useExactForDefault);
            _exactContentAnalyzer   = analyzerFactory.CreateHighlighterContentAnalyzer(true);

            _defaultQueryAnalyzer = analyzerFactory.CreateHighlighterQueryAnalyzer(useExactForDefault);
            _exactQueryAnalyzer   = analyzerFactory.CreateHighlighterQueryAnalyzer(true);
        }
Exemplo n.º 2
0
 public IndexedDocumentIndexer()
 {
     _indexReaderFactory = new IndexReaderBaseFactory();
     _directoryFactory   = new DirectoryBaseFactory();
     _analyzerFactory    = new AnalyzerBaseFactory();
     _indexWriterFactory = new IndexWriterBaseFactory();
     _indexCommands      = new IndexedDocumentCommands();
 }
 public IndexSearchingService()
 {
     _directoryFactory        = new DirectoryBaseFactory();
     _indexReaderFactorty     = new IndexReaderBaseFactory();
     _indexSearcherFactory    = new IndexSearcherBaseFactory();
     _singleFieldQueryFactory = new SingleFieldQueryFactory();
     _simpleQueryExecutor     = new SimpleQueryExecutor();
     _analyzerFactory         = new AnalyzerBaseFactory();
 }
Exemplo n.º 4
0
 public AnalysisServices(ICollectionStepFactory collectionStepFactory, ICodebaseService codebaseService, IAnalyzerFactory analyzerFactory,
                         IFileSystem fileSystem)
 {
     this.collectionStepFactory = collectionStepFactory;
     this.codebaseService       = codebaseService;
     this.analyzerFactory       = analyzerFactory;
     this.fileSystem            = fileSystem;
     fileSystem.CreateFolder(fileSystem.MetricsOutputFolder);
 }
Exemplo n.º 5
0
 public AnalysisServices(ICollectionStepFactory collectionStepFactory, ICodebaseService codebaseService, IAnalyzerFactory analyzerFactory,
                         IFileSystem fileSystem, IYamlFileDeserializer <MetricsCommandArguments> fileDeserializer)
 {
     this.collectionStepFactory = collectionStepFactory;
     this.codebaseService       = codebaseService;
     this.analyzerFactory       = analyzerFactory;
     this.fileSystem            = fileSystem;
     this.fileDeserializer      = fileDeserializer;
     fileSystem.CreateFolder(fileSystem.MetricsOutputFolder);
 }
Exemplo n.º 6
0
        public virtual Analyzer GetQueryAnalyzer(string indexName)
        {
            Analyzer analyzer = null;

            if (!queryAnalyzers.TryGetValue(indexName, out analyzer))
            {
                IAnalyzerFactory factory = null;
                configuration.AnalyzerFactories.TryGetValue(indexName, out factory);
                factory = new DefaultAnalyzerFactory();

                analyzer = factory.GetQueryAnalyzerFor(indexName);
                queryAnalyzers.TryAdd(indexName, analyzer);
            }
            return(analyzer);
        }
Exemplo n.º 7
0
 public OrElseAnalyzer(IOperationResultBuilder operationResultBuilder, IAnalyzerFactory analyzerFactory) :
     base(operationResultBuilder, analyzerFactory)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Used to change the analyzerFactory used to create the analyzers in run-time depending
 /// on indexing requirments
 /// </summary>
 /// <param name="analyzerFactory">The analyzer analyzerFactory used in </param>
 public void SetAnalyzerFactory(IAnalyzerFactory <Analyzer> analyzerFactory)
 {
     _analyzerFactory = analyzerFactory;
 }
Exemplo n.º 9
0
 public TranslatorFactory(IAnalyzerFactory analyzerFactory)
 {
     this.analyzerFactory = analyzerFactory;
 }
Exemplo n.º 10
0
 public Indexer(IAnalyzerFactory analyzerFactory, IMemberSearchBooster booster, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, ICandidateFlagListsQuery candidateFlagListsQuery)
     : this(analyzerFactory.CreateContentAnalyzer(), analyzerFactory.CreateQueryAnalyzer(), booster, locationQuery, industriesQuery, candidateFlagListsQuery)
 {
 }
Exemplo n.º 11
0
 public OrElseAnalyzer(IOperationResultBuilder operationResultBuilder, IAnalyzerFactory analyzerFactory)
     : base(operationResultBuilder, analyzerFactory)
 {
 }
 protected CompositeExpressionBaseAnalyzer(IOperationResultBuilder operationResultBuilder,
                                           IAnalyzerFactory analyzerFactory) :
     base(operationResultBuilder)
 {
     this.analyzerFactory = analyzerFactory;
 }
Exemplo n.º 13
0
 public TranslatorFactory(IAnalyzerFactory analyzerFactory)
 {
     this._analyzerFactory = analyzerFactory;
 }
Exemplo n.º 14
0
 public EpaGenerator(IAnalyzerFactory analyzerFactory, int cutter)
 {
     Contract.Requires(analyzerFactory != null);
     this.analyzerFactory = analyzerFactory;
     this.cutter          = cutter;
 }
 protected CompositeExpressionBaseAnalyzer(IOperationResultBuilder operationResultBuilder,
     IAnalyzerFactory analyzerFactory)
     : base(operationResultBuilder)
 {
     this.analyzerFactory = analyzerFactory;
 }
Exemplo n.º 16
0
 public AndAlsoAnalyzer(IOperationResultBuilder operationResultBuilder,
     IAnalyzerFactory analyzerFactory)
     : base(operationResultBuilder, analyzerFactory)
 {
 }
Exemplo n.º 17
0
 public AndAlsoAnalyzer(IOperationResultBuilder operationResultBuilder,
                        IAnalyzerFactory analyzerFactory) :
     base(operationResultBuilder, analyzerFactory)
 {
 }