本文整理汇总了C#中ISearchService类的典型用法代码示例。如果您正苦于以下问题:C# ISearchService类的具体用法?C# ISearchService怎么用?C# ISearchService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISearchService类属于命名空间,在下文中一共展示了ISearchService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestableV1Feed
public TestableV1Feed(
IEntityRepository<Package> repo,
IGalleryConfigurationService configuration,
ISearchService searchService)
: base(repo, configuration, searchService)
{
}
示例2: SearchHighlightService
public SearchHighlightService(ISearchService searchService)
{
Argument.IsNotNull(() => searchService);
_searchService = searchService;
_searchService.Searched += OnSearched;
}
示例3: ListController
public ListController(
IMemberService _memberService
, IAreaAttService _areaAttService
, IAreaService _areaService
, IOutDoorMediaCateService _outDoorMediaCateService
, IOutDoorService _outDoorService
, IFormatCateService _formatCateService
, ICompanyBussinessService _companyBussinessService
, ICompanyFundService _companyFundService
, ICompanyScaleService _companyScaleService
, IPeriodCateService _periodCateService
, IOwnerCateService _ownerCateService
, IAuctionCalendarService _auctionCalendarService
, ISourceService _sourceService
, ISearchService _searchService
)
{
areaAttService = _areaAttService;
areaService = _areaService;
memberService = _memberService;
outDoorMediaCateService = _outDoorMediaCateService;
outDoorService = _outDoorService;
formatCateService = _formatCateService;
companyBussinessService = _companyBussinessService;
companyFundService = _companyFundService;
companyScaleService = _companyScaleService;
periodCateService = _periodCateService;
ownerCateService = _ownerCateService;
auctionCalendarService = _auctionCalendarService;
sourceService = _sourceService;
searchService = _searchService;
}
示例4: SearchServiceDemo
public SearchServiceDemo(String defaultRepository, String secondaryRepository, String userName, String password)
: base(defaultRepository, secondaryRepository, userName, password)
{
ServiceFactory serviceFactory = ServiceFactory.Instance;
searchService =
serviceFactory.GetRemoteService<ISearchService>(DemoServiceContext, "search");
}
示例5: GetModel
public static HomeViewModel GetModel(ISearchService SearchService)
{
return new HomeViewModel() {
UltimasPublicaciones = SearchService.Latest("RSS",20).Entries,
UltimosVideos = SearchService.Latest("Video", 10).Entries
};
}
示例6: TopicsService
public TopicsService(ITopicsDataAccess da, IMessagesDataAccess messagesDa, ISearchService searchIndex, ILoggerService loggerService)
{
_dataAccess = da;
_messagesDataAccess = messagesDa;
_searchIndex = searchIndex;
_loggerService = loggerService;
}
示例7: WordController
public WordController(
ISearchService searchService,
IMaintainService maintainService)
{
_searchService = searchService;
_maintainService = maintainService;
}
示例8: WikiPageController
public WikiPageController(IOrchardServices orchardServices,
IRepository<WikiPageAttachmentRecord> repoWikiAttachment,
ITagService tagService,
IAuthorizationService authorizationService,
INotifier notifier,
ISiteService siteService,
ISearchService searchService,
IShapeFactory shapeFactory,
IWikiPageService wikiPageService,
IMediaService mediaService
){
_orchardServices = orchardServices;
_repoWikiAttachment = repoWikiAttachment;
_tagService = tagService;
_authorizationService = authorizationService;
_notifier = notifier;
_searchService = searchService;
_siteService = siteService;
_wikiPageService = wikiPageService;
_mediaService = mediaService;
Logger = NullLogger.Instance;
Shape = shapeFactory;
}
示例9: MorphemeController
public MorphemeController(
ISearchService searchService,
IMaintainService maintainService)
{
_searchService = searchService;
_maintainService = maintainService;
}
示例10: SearchController
public SearchController(IResourceService resourceService, IUserService userService, IProfileService profileService, ISearchService searchService, IStateService stateService, IConversationService conversationService)
: base(resourceService, userService, profileService, stateService, conversationService)
{
_searchService = searchService;
ResourceService = resourceService;
}
示例11: SearchController
public SearchController(ISearchService searchService, IQueryRepositoryFactory queryRepositoryFactory, IUserIdentity userIdentity, IAccessQueryService accessQueryService)
{
_searchService = searchService;
_queryRepositoryFactory = queryRepositoryFactory;
_userIdentity = userIdentity;
_accessQueryService = accessQueryService;
}
示例12: ApiController
public ApiController(
IEntitiesContext entitiesContext,
IPackageService packageService,
IPackageFileService packageFileService,
IUserService userService,
INuGetExeDownloaderService nugetExeDownloaderService,
IContentService contentService,
IIndexingService indexingService,
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratePackage,
IStatusService statusService,
IAppConfiguration config)
{
EntitiesContext = entitiesContext;
PackageService = packageService;
PackageFileService = packageFileService;
UserService = userService;
NugetExeDownloaderService = nugetExeDownloaderService;
ContentService = contentService;
StatisticsService = null;
IndexingService = indexingService;
SearchService = searchService;
AutoCuratePackage = autoCuratePackage;
StatusService = statusService;
_config = config;
}
示例13: PackagesController
public PackagesController(
IPackageService packageService,
IUploadFileService uploadFileService,
IUserService userService,
IMessageService messageService,
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
INuGetExeDownloaderService nugetExeDownloaderService,
IPackageFileService packageFileService,
IEntitiesContext entitiesContext,
IAppConfiguration config,
IIndexingService indexingService,
ICacheService cacheService)
{
_packageService = packageService;
_uploadFileService = uploadFileService;
_userService = userService;
_messageService = messageService;
_searchService = searchService;
_autoCuratedPackageCmd = autoCuratedPackageCmd;
_nugetExeDownloaderService = nugetExeDownloaderService;
_packageFileService = packageFileService;
_entitiesContext = entitiesContext;
_config = config;
_indexingService = indexingService;
_cacheService = cacheService;
}
示例14: PackagesController
public PackagesController(
IPackageService packageService,
IUploadFileService uploadFileService,
IMessageService messageService,
ISearchService searchService,
IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
IPackageFileService packageFileService,
IEntitiesContext entitiesContext,
IAppConfiguration config,
IIndexingService indexingService,
ICacheService cacheService,
EditPackageService editPackageService,
IPackageDeleteService packageDeleteService,
ISupportRequestService supportRequestService,
AuditingService auditingService)
{
_packageService = packageService;
_uploadFileService = uploadFileService;
_messageService = messageService;
_searchService = searchService;
_autoCuratedPackageCmd = autoCuratedPackageCmd;
_packageFileService = packageFileService;
_entitiesContext = entitiesContext;
_config = config;
_indexingService = indexingService;
_cacheService = cacheService;
_editPackageService = editPackageService;
_packageDeleteService = packageDeleteService;
_supportRequestService = supportRequestService;
_auditingService = auditingService;
}
示例15: SearchCore
public static async Task<IQueryable<Package>> SearchCore(
ISearchService searchService,
HttpRequestBase request,
IQueryable<Package> packages,
string searchTerm,
string targetFramework,
bool includePrerelease,
CuratedFeed curatedFeed)
{
SearchFilter searchFilter;
// We can only use Lucene if:
// a) We are looking for the latest version of a package OR the Index contains all versions of each package
// b) The sort order is something Lucene can handle
if (TryReadSearchFilter(searchService.ContainsAllVersions, request.RawUrl, out searchFilter))
{
searchFilter.SearchTerm = searchTerm;
searchFilter.IncludePrerelease = includePrerelease;
searchFilter.CuratedFeed = curatedFeed;
searchFilter.SupportedFramework = targetFramework;
var results = await GetResultsFromSearchService(searchService, searchFilter);
return results;
}
if (!includePrerelease)
{
packages = packages.Where(p => !p.IsPrerelease);
}
return packages.Search(searchTerm);
}