public ProducersController(BreadcrumbService breadcrumb, ISearcher<ProducerSearchResult> producerSearcher, Func<IWeeeClient> apiClient, IWeeeCache cache)
 {
     this.breadcrumb = breadcrumb;
     this.producerSearcher = producerSearcher;
     this.apiClient = apiClient;
     this.cache = cache;
 }
 public ProducersControllerTests()
 {
     breadcumbService = A.Fake<BreadcrumbService>();
     producerSearcher = A.Fake<ISearcher<ProducerSearchResult>>();
     weeeClient = A.Fake<IWeeeClient>();
     cache = A.Fake<IWeeeCache>();
 }
 public IndexOperations(IClient client, ILogger logger = null, IScroller scroller = null, IIndexer indexer = null, ISearcher searcher = null)
 {
     _logger = logger;
     _searcher = searcher ?? new Searcher(client, logger);
     _scroller = scroller ?? new Scroller(client, logger);
     _indexer = indexer ?? new Indexer(client, logger);
 }
Example #4
0
 public void TestSetup()
 {
     _luceneDir = new RAMDirectory();
     _indexer = IndexInitializer.GetUmbracoIndexer(_luceneDir);
     _indexer.RebuildIndex();
     _searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
 }
 public static void Init(TestContext context)
 {
     _document = new HtmlDocument();
     _document.OptionOutputAsXml = true;
     _document.LoadHtml(TestData.SearchResultsDocument);
     _target = new StackOverflowSearcher();
     _nodes = _target.GetSearchResultNodes(_document.DocumentNode).Result;
 }
Example #6
0
        public SearchController(ISearcher searcher)
        {
            if (searcher == null)
            {
                throw new ArgumentNullException("searcher");
            }

            _searcher = searcher;
        }
 public ProductSearchIndexService(ISearcher<Product, ProductSearchIndex> productSearcher,
     IGetProductCategories getProductCategories, EcommerceSearchCacheSettings ecommerceSearchCacheSettings,
     IGetProductSearchQueryObjects getProductSearchQueryObjects)
 {
     _productSearcher = productSearcher;
     _getProductCategories = getProductCategories;
     _ecommerceSearchCacheSettings = ecommerceSearchCacheSettings;
     _getProductSearchQueryObjects = getProductSearchQueryObjects;
 }
 public AdminWebpageSearchService(ISearcher<Webpage, AdminWebpageIndexDefinition> documentSearcher,
     IGetBreadcrumbs getBreadcrumbs, ISession session, Site site, IStringResourceProvider stringResourceProvider)
 {
     _documentSearcher = documentSearcher;
     _getBreadcrumbs = getBreadcrumbs;
     _session = session;
     _site = site;
     _stringResourceProvider = stringResourceProvider;
 }
Example #9
0
 public OfflineApiPortService(IApiCatalogLookup lookup, IRequestAnalyzer requestAnalyzer, ITargetMapper mapper, ICollection <IReportWriter> reportWriters, ITargetNameParser targetNameParser, IApiRecommendations apiRecommendations)
 {
     _lookup             = lookup;
     _requestAnalyzer    = requestAnalyzer;
     _mapper             = mapper;
     _reportWriters      = reportWriters;
     _defaultTargets     = new HashSet <FrameworkName>(targetNameParser.DefaultTargets);
     _searcher           = new StringContainsSearch(lookup);
     _apiRecommendations = apiRecommendations;
 }
Example #10
0
        public override void TestSetup()
        {
            _luceneDir = new RAMDirectory();

            //_luceneDir = new SimpleFSDirectory(new DirectoryInfo(Path.Combine(TestHelper.AssemblyDirectory, Guid.NewGuid().ToString())));

            _indexer = IndexInitializer.GetUmbracoIndexer(_luceneDir);
            _indexer.RebuildIndex();
            _searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
        }
 public void SetUp()
 {
     _searcher      = new Searcher();
     _bll           = new BLL(_searcher);
     _db            = new DatabaseService(new SqlStoreDatabaseFactory());
     itemGroupName  = "Step10ItemGroup";
     itemName       = "Step10Item";
     storesectionID = (int)_db.TableStoreSection.CreateStoreSection("Step10StoreSection", 100, 100, 1);
     _db.TableItemSectionPlacement.PlaceItem(_db.TableItem.CreateItem(itemName, _db.TableItemGroup.CreateItemGroup(itemGroupName)), storesectionID);
 }
 /// <summary>
 /// Generally used for unit testing to use an explicit examine searcher
 /// </summary>
 /// <param name="mediaService"></param>
 /// <param name="userService"></param>
 /// <param name="searchProvider"></param>
 /// <param name="indexProvider"></param>
 /// <param name="cacheProvider"></param>
 /// <param name="contentTypeCache"></param>
 internal PublishedMediaCache(IMediaService mediaService, IUserService userService, ISearcher searchProvider, BaseIndexProvider indexProvider, ICacheProvider cacheProvider, PublishedContentTypeCache contentTypeCache)
     : base(false)
 {
     _mediaService     = mediaService ?? throw new ArgumentNullException(nameof(mediaService));
     _userService      = userService ?? throw new ArgumentNullException(nameof(userService));
     _searchProvider   = searchProvider ?? throw new ArgumentNullException(nameof(searchProvider));
     _indexProvider    = indexProvider ?? throw new ArgumentNullException(nameof(indexProvider));
     _cacheProvider    = cacheProvider;
     _contentTypeCache = contentTypeCache;
 }
 public RelativeStrengthStrategy(
     IMarketDataCache marketDataCache,
     IStakingService stakingService,
     ISearcher searcher,
     RelativeStrengthParameters parameters)
 {
     _searcher        = searcher;
     _marketDataCache = marketDataCache;
     _stakingService  = stakingService;
     _parameters      = parameters;
 }
 public EntropyStrategy(
     IMarketDataCache marketDataCache,
     ISearcher searcher,
     IStakingService stakingService,
     EntropyParameters parameters)
 {
     _searcher        = searcher;
     _stakingService  = stakingService;
     _marketDataCache = marketDataCache;
     _parameters      = parameters;
 }
Example #15
0
 public WeightedStrategy(
     ISimulationCache simulationCache,
     IStakingService stakingService,
     ISearcher searcher,
     WeightedParameters parameters)
 {
     _simulationCache = simulationCache;
     _stakingService  = stakingService;
     _searcher        = searcher;
     _parameters      = parameters;
 }
Example #16
0
 public LinearRegressionStrategy(
     IMarketDataCache marketDataCache,
     ISearcher searcher,
     IStakingService stakingService,
     LinearRegressionParameters parameters)
 {
     _searcher        = searcher;
     _marketDataCache = marketDataCache;
     _stakingService  = stakingService;
     _parameters      = parameters;
 }
 /// <summary>
 /// Generally used for unit testing to use an explicit examine searcher
 /// </summary>
 /// <param name="mediaService"></param>
 /// <param name="userService"></param>
 /// <param name="searchProvider"></param>
 /// <param name="appCache"></param>
 /// <param name="contentTypeCache"></param>
 /// <param name="entitySerializer"></param>
 internal PublishedMediaCache(IMediaService mediaService, IUserService userService, ISearcher searchProvider, IAppCache appCache, PublishedContentTypeCache contentTypeCache, IEntityXmlSerializer entitySerializer, IUmbracoContextAccessor umbracoContextAccessor)
     : base(false)
 {
     _mediaService           = mediaService ?? throw new ArgumentNullException(nameof(mediaService));
     _userService            = userService ?? throw new ArgumentNullException(nameof(userService));
     _searchProvider         = searchProvider ?? throw new ArgumentNullException(nameof(searchProvider));
     _appCache               = appCache;
     _contentTypeCache       = contentTypeCache;
     _entitySerializer       = entitySerializer;
     _umbracoContextAccessor = umbracoContextAccessor;
 }
Example #18
0
 public MovingAverageStrategy(
     IMarketDataCache marketDataCache,
     IStakingService stakingService,
     ISearcher searcher,
     MovingAverageParameters parameters)
 {
     _searcher        = searcher;
     _marketDataCache = marketDataCache;
     _stakingService  = stakingService;
     _parameters      = parameters;
 }
Example #19
0
        /// <summary>
        /// Search using ExternalSearcher and ExternalIndexer
        /// </summary>
        /// <param name="searchTerm"></param>
        /// <param name="skip"></param>
        /// <param name="take"></param>
        public CamelontaSearch(string searchTerm, int skip, int take)
        {
            FilterInvalidCharacters(ref searchTerm);
            SearchTerm = searchTerm;
            _take      = take;
            _skip      = skip;

            _searcher = ExamineManager.Instance.SearchProviderCollection["ExternalSearcher"];
            _indexer  = ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"];
            Initialize();
        }
 public GradientStrategy(
     IMarketDataCache marketDataCache,
     IStakingService stakingService,
     ISearcher searcher,
     GradientParameters parameters)
 {
     _marketDataCache = marketDataCache;
     _stakingService  = stakingService;
     _searcher        = searcher;
     _parameters      = parameters;
 }
Example #21
0
        /// <summary>
        /// Search using a custom Searcher/Indexer
        /// </summary>
        /// <param name="indexer"></param>
        /// <param name="searcher"></param>
        /// <param name="searchTerm"></param>
        /// <param name="skip"></param>
        /// <param name="take"></param>
        public CamelontaSearch(IIndexer indexer, ISearcher searcher, string searchTerm, int skip, int take)
        {
            FilterInvalidCharacters(ref searchTerm);
            SearchTerm = searchTerm;
            _take      = take;
            _skip      = skip;

            _searcher = searcher;
            _indexer  = indexer;
            Initialize();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="JobsDataFromExamine" /> class.
 /// </summary>
 /// <param name="searcher">The searcher.</param>
 /// <param name="keywordsQueryBuilder">The query analyser.</param>
 /// <param name="jobAdvertUrl">The job advert URL.</param>
 /// <exception cref="System.ArgumentNullException">searcher</exception>
 public JobsDataFromExamine(ISearcher searcher, IQueryBuilder keywordsQueryBuilder, ISalaryRangeQueryBuilder salaryQueryBuilder, IJobUrlGenerator urlGenerator)
 {
     if (searcher == null)
     {
         throw new ArgumentNullException(nameof(searcher));
     }
     _searcher             = searcher;
     _keywordsQueryBuilder = keywordsQueryBuilder;
     _salaryQueryBuilder   = salaryQueryBuilder;
     _urlGenerator         = urlGenerator;
 }
 public ProbabilityStrategy(
     IMarketDataCache marketDataCache,
     ISearcher searcher,
     IStakingService stakingService,
     ProbabilityParameters parameters)
 {
     _marketDataCache = marketDataCache;
     _searcher        = searcher;
     _stakingService  = stakingService;
     _parameters      = parameters;
 }
Example #24
0
        public static void Main(string[] args)
        {
            ISearcher searcher = AppConfigHelper.GetProxyInstance() as ISearcher;

            if (searcher != null)
            {
                string result = searcher.DoSearch("杨过", "玉女心经");
            }

            Console.ReadKey();
        }
 public ClientServer(ISearcher srch)
 {
     ClientServer.srch = srch;
     this.name = Dns.GetHostName(); 
     instanceContext = new InstanceContext(new ServerCallback());
     communicate = new ServerClient(instanceContext);
     if (communicate.Register(name))
         Console.WriteLine("Registered");
     else
         Console.WriteLine("Already exists");
 }
Example #26
0
        public override void TestSetup()
        {
            _luceneDir = new RAMDirectory();
            _indexer   = IndexInitializer.GetSimpleIndexer(_luceneDir);

            _reIndexDateTime = DateTime.Now;
            Thread.Sleep(1000);

            _indexer.RebuildIndex();

            _searcher = IndexInitializer.GetLuceneSearcher(_luceneDir);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="RightsOfWayDepositsViewModelFromExamine" /> class.
 /// </summary>
 /// <param name="umbracoParentNodeId">The umbraco parent node identifier.</param>
 /// <param name="baseUrl">The base URL for linking to details of each deposit - expected to be the URL of the deposits listings page.</param>
 /// <param name="searcher">The Examine searcher for rights of way deposits</param>
 /// <param name="searchTerm">The search term.</param>
 /// <param name="searchFilters">Search filters which modify the search term.</param>
 /// <param name="umbracoHelper">The Umbraco helper.</param>
 /// <exception cref="ArgumentNullException">baseUrl</exception>
 /// <exception cref="System.ArgumentNullException">baseUrl</exception>
 public RightsOfWayDepositsViewModelFromExamine(int umbracoParentNodeId, Uri baseUrl, ISearcher searcher, string searchTerm, IEnumerable <ISearchFilter> searchFilters, UmbracoHelper umbracoHelper)
 {
     if (baseUrl == null)
     {
         throw new ArgumentNullException(nameof(baseUrl));
     }
     _searcher            = searcher ?? throw new ArgumentNullException(nameof(searcher));
     _umbracoParentNodeId = umbracoParentNodeId;
     _baseUrl             = baseUrl;
     _umbracoHelper       = umbracoHelper;
     AddFilteredSearchTerm(searchTerm, searchFilters);
 }
Example #28
0
 public void SetupSearch()
 {
     docUrl       = Path.Combine(tempFolder, "docUrl");
     conversation = new Conversation()
     {
         ImportedUrl = docUrl, DataPoints = new List <DataPoint>()
         {
             match
         }
     };
     searcher = new LucenceSearch(tempFolder);
 }
        /// <summary>
        /// Creates a query with predefined criteria for published content
        /// </summary>
        public static IBooleanOperation CreatePublishedQuery(this ISearcher searcher, string category = null, BooleanOperation defaultOperation = BooleanOperation.And)
        {
            var query = searcher
                        .CreateQuery(category, defaultOperation)
                        .IsPublished();

            query.AndNot(x => x.IsVisble());

            query.AndNot(x => x.HasTemplate());

            return(query);
        }
 public ClusteringStrategy(
     ISearcher searcher,
     IMarketDataCache marketDataCache,
     RatingService ratingService,
     IStakingService stakingService,
     ClusteringParameters parameters)
 {
     _searcher        = searcher;
     _marketDataCache = marketDataCache;
     _ratingService   = ratingService;
     _stakingService  = stakingService;
     _parameters      = parameters;
 }
Example #31
0
        public ProducersController(BreadcrumbService breadcrumb,
                                   ISearcher <ProducerSearchResult> producerSearcher,
                                   Func <IWeeeClient> apiClient,
                                   IWeeeCache cache,
                                   ConfigurationService configurationService)
        {
            this.breadcrumb       = breadcrumb;
            this.producerSearcher = producerSearcher;
            this.apiClient        = apiClient;
            this.cache            = cache;

            maximumSearchResults = configurationService.CurrentConfiguration.MaximumProducerOrganisationSearchResults;
        }
Example #32
0
        public BLL(ISearcher searcher, IDatabaseService db = null)
        {
            if (db == null)
            {
                _db = new DatabaseService(new SqlStoreDatabaseFactory());
            }
            else
            {
                _db = db;
            }

            _searcher = searcher;
        }
Example #33
0
        static void GetResult(ISearcher searcher, string substring, string text)
        {
            var t = new Stopwatch();

            t.Start();

            var entries = searcher.GetAllEntries(substring, text);

            t.Stop();

            Console.WriteLine($"\nAlgorithm: {searcher.GetType().Name}\nEntries: {entries.Count()}\nTime: {t.ElapsedMilliseconds} ms\n");
            t.Reset();
        }
Example #34
0
        public MainForm()
        {
            addToTreeDelegate = AddToTree;
            searcher          = new Searcher();
            searcher.Found   += OnFound;
            InitializeComponent();

            Snapshot snapshot = Snapshot.Deserialize("parameters.xml");

            PathTextBox.Text          = snapshot.Path;
            searchPatternTextBox.Text = snapshot.Pattern;
            insideTextTextBox.Text    = snapshot.InsideText;
        }
Example #35
0
        static void Receive(ISearcher searcher, List <UdpClient> clients)
        {
            IPEndPoint received = new IPEndPoint(IPAddress.Parse("192.168.0.1"), 5351);

            foreach (UdpClient client in clients)
            {
                if (client.Available > 0)
                {
                    IPAddress localAddress = ((IPEndPoint)client.Client.LocalEndPoint).Address;
                    byte[]    data         = client.Receive(ref received);
                    searcher.Handle(localAddress, data, received);
                }
            }
        }
        public AddOrganisationControllerTests()
        {
            fixture = new Fixture();
            organisationSearcher = A.Dummy <ISearcher <OrganisationSearchResult> >();
            weeeClient           = A.Fake <IWeeeClient>();
            countries            = A.Dummy <IList <CountryData> >();
            breadcrumbService    = A.Fake <BreadcrumbService>();
            cache = A.Fake <IWeeeCache>();
            var configurationService = A.Fake <ConfigurationService>();

            A.CallTo(() => configurationService.CurrentConfiguration.MaximumAatfOrganisationSearchResults).Returns(5);

            controller = new AddOrganisationController(organisationSearcher, () => weeeClient, breadcrumbService, cache, configurationService);
        }
Example #37
0
        /// <summary>
        /// 日志详细页
        /// </summary>
        public ActionResult Detail(string spaceKey, long journalId)
        {
            Journal journal = journalsService.Get(journalId);

            if (journal == null)
            {
                return(HttpNotFound());
            }


            //更新浏览计数
            //CountService countService = new CountService(TenantTypeIds.Instance().Journals);
            //countService.ChangeCount(CountTypes.Instance().HitTimes(), blogThread.ThreadId, blogThread.UserId, 1, false);

            //设置SEO信息
            pageResourceManager.InsertTitlePart(journal.journal);
            pageResourceManager.InsertTitlePart(journal.publisher);

            //List<string> keywords = new List<string>();
            //keywords.AddRange(blogThread.TagNames);
            //keywords.AddRange(blogThread.OwnerCategoryNames);
            //string keyword = string.Join(" ", keywords.Distinct());
            //if (!string.IsNullOrEmpty(blogThread.Keywords))
            //{
            //   keyword += " " + blogThread.Keywords;
            //}

            //pageResourceManager.SetMetaOfKeywords(keyword);

            if (!string.IsNullOrEmpty(journal.jdescrip))
            {
                pageResourceManager.SetMetaOfDescription(HtmlUtility.StripHtml(journal.jdescrip, true, false));
            }

            ISearcher searcher = SearcherFactory.GetSearcher(JournalSearcher.CODE);

            searcher.RebuildIndex();

            /*JournalFullTextQuery query = new JournalFullTextQuery();
             * query.PageSize = 5;//每页记录数
             * query.PageIndex = 1;
             * query.Range = JournalSearchRange.SUBJECT;
             * query.Keyword = "history";
             *
             * //调用搜索器进行搜索
             * JournalSearcher journalSearcher = (JournalSearcher)SearcherFactory.GetSearcher(JournalSearcher.CODE);
             * PagingDataSet<Journal> journals = journalSearcher.Search(query);
             */
            return(View(journal));
        }
 public SearcherFactory(
     ISearcher blockSearcher,
     ISearcher transactionSearcher,
     ISearcher contractSearcher,
     ISearcher addressSearcher)
 {
     Searchers = new Dictionary <SearchType, ISearcher[]>
     {
         { SearchType.Unknown, new ISearcher[] { UnknownSearchTypeSearcher.Instance } },
         { SearchType.Block, new ISearcher[] { blockSearcher } },
         { SearchType.Transaction, new ISearcher[] { transactionSearcher } },
         { SearchType.Address, new ISearcher[] { contractSearcher, addressSearcher } }
     };
 }
        public AddOrganisationController(
            ISearcher <OrganisationSearchResult> organisationSearcher,
            Func <IWeeeClient> apiClient,
            BreadcrumbService breadcrumb,
            IWeeeCache cache,
            ConfigurationService configurationService)
        {
            this.organisationSearcher = organisationSearcher;
            this.apiClient            = apiClient;
            this.breadcrumb           = breadcrumb;
            this.cache = cache;

            maximumSearchResults = configurationService.CurrentConfiguration.MaximumAatfOrganisationSearchResults;
        }
Example #40
0
 private static Route RunSearch( Graph graph, ISearcher searcher, Route route = null, bool quiet = false )
 {
     if ( searcher is HillClimbSearcher && route != null )
     {
         route = new Route( route );
         _stopwatch.Restart();
         ( (HillClimbSearcher) searcher ).Improve( route, !quiet );
         _stopwatch.Stop();
     }
     else
     {
         _stopwatch.Restart();
         route = searcher.Search( graph, !quiet );
         _stopwatch.Stop();
     }
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine( "Search time: {0}ms", _stopwatch.ElapsedMilliseconds );
     Console.ForegroundColor = ConsoleColor.White;
     Console.WriteLine( route.ToString() );
     return route;
 }
		public override bool HasSearchChildren(ISearcher searcher)
		{
			return Nodes.Count > 0;
		}
Example #42
0
		static void Receive (ISearcher searcher, List<UdpClient> clients)
		{
			IPEndPoint received = new IPEndPoint(IPAddress.Parse("192.168.0.1"), 5351);
			foreach (UdpClient client in clients)
			{
				if (client.Available > 0)
				{
				    IPAddress localAddress = ((IPEndPoint)client.Client.LocalEndPoint).Address;
					byte[] data = client.Receive(ref received);
					searcher.Handle(localAddress, data, received);
				}
            }
        }
 public DocIdSearchRepl(ISearcher<string> searcher)
 {
     _searcher = searcher;
 }
Example #44
0
 public WebpageSearchService(ISearcher<Webpage, WebpageSearchIndexDefinition> documentSearcher, IGetBreadcrumbs getBreadcrumbs)
 {
     _documentSearcher = documentSearcher;
     _getBreadcrumbs = getBreadcrumbs;
 }
Example #45
0
 public CoffeeScraper()
 {
     this._coffeeSearcher = new SplitRegionSearcher(new CoffeeSearcher());
 }
 public AmazonOrderSearchService(ISearcher<AmazonOrder, AmazonOrderSearchDefinition> orderSearcher)
 {
     _orderSearcher = orderSearcher;
 }
		// Default implementation
		public virtual bool HasSearchChildren(ISearcher searcher)
		{
			ExpandNode();
			return _logicalNodes.Count > 0;
		}
Example #48
0
        public void TestSetup()
        {
            _luceneDir = new RAMDirectory();

            //_luceneDir = new SimpleFSDirectory(new DirectoryInfo(Path.Combine(TestHelper.AssemblyDirectory, Guid.NewGuid().ToString())));

            _indexer = IndexInitializer.GetUmbracoIndexer(_luceneDir);
            _indexer.RebuildIndex();
            _searcher = IndexInitializer.GetUmbracoSearcher(_luceneDir);
        }
Example #49
0
 public FhirIndex(Definitions definitions, IIndexer indexer, ISearcher searcher)
 {
     this.definitions = definitions;
     this.indexer = indexer;
     this.searcher = searcher;
 }
Example #50
0
		// ISearchNode interfaces
		public virtual ISearchMaterializer GetSearchMaterializer
			(ISearcher searcher)
		{
			return new ComSearchMaterializer((Stack)searcher.SearchStack.Clone());
		}
Example #51
0
		public virtual bool HasSearchChildren(ISearcher searcher)
		{
			if (_members != null && _members.Count > 0)
				return true;
			return false;
		}
 public CategoryProductsAdminService(ISession session, ISearcher<Product, ProductSearchIndex> productSearcher)
 {
     _session = session;
     _productSearcher = productSearcher;
 }
 public AmazonOrderSearchServiceTests()
 {
     _orderSearcher = A.Fake<ISearcher<AmazonOrder, AmazonOrderSearchDefinition>>();
     _amazonOrderSearchService = new AmazonOrderSearchService(_orderSearcher);
 }
		// ISearchNode
		// Default implementation
		public virtual ISearchMaterializer GetSearchMaterializer(ISearcher searcher)
		{
			return this;
		}
 public OrganisationRegistrationController(Func<IWeeeClient> apiClient, ISearcher<OrganisationSearchResult> organisationSearcher)
 {
     this.apiClient = apiClient;
     this.organisationSearcher = organisationSearcher;
 }
 public override bool HasSearchChildren(ISearcher searcher)
 {
     return _memberInfo.HasSearchChildren(searcher);
 }
 public override ISearchMaterializer GetSearchMaterializer
     (ISearcher searcher)
 {
     return _memberInfo.GetSearchMaterializer(searcher);
 }
Example #58
0
		public override bool HasSearchChildren(ISearcher searcher)
		{
			searcher.ReportStatus("Reading: ", GetName(PREFER_DESCRIPTION));
			try {
				_searchMode = true;
				ReadTypeLibInfo();
				_searchMode = false;
			} catch (Exception ex) {
				TraceUtil.WriteLineWarning
					(this, "Exception reading typelib info during find: " + 
					this + " ex: " + ex);
				return false;
			}
			return base.HasSearchChildren(searcher);
		}
Example #59
0
 public OrderAdminService(ISearcher<Order, OrderSearchIndex> orderSearcher, ISession session, IShippingMethodAdminService shippingMethodAdminService)
 {
     _orderSearcher = orderSearcher;
     _session = session;
     _shippingMethodAdminService = shippingMethodAdminService;
 }
		public override bool HasSearchChildren(ISearcher searcher)
		{
			return _typeLib.HasSearchChildren(searcher);
		}