Пример #1
0
 public ContentSearchService(
     IIntelligentTaggingSettings settings,
     IContentSearchWrapper contentSearch)
 {
     Settings      = settings;
     ContentSearch = contentSearch;
 }
        public IntelligentTaggingController(
            IWebUtilWrapper webUtil,
            ISitecoreDataWrapper dataWrapper,
            IIntelligentTaggingSettings settings,
            ISetupInformationFactory setupFactory,
            ISetupService setupService,
            IContentSearchWrapper contentSearch,
            INaturalLanguageClassifierService naturalLanguageClassifier,
            IContentService contentService,
            IContentSearchService contentSearchService,
            IClassifierFactory classifierFactory)
        {
            WebUtil                   = webUtil;
            DataWrapper               = dataWrapper;
            Settings                  = settings;
            SetupFactory              = setupFactory;
            SetupService              = setupService;
            ContentSearch             = contentSearch;
            NaturalLanguageClassifier = naturalLanguageClassifier;
            ContentService            = contentService;
            ContentSearchService      = contentSearchService;
            ClassifierFactory         = classifierFactory;

            Id       = WebUtil.GetQueryString("id");
            Language = WebUtil.GetQueryString("language");
            Database = WebUtil.GetQueryString("db");
        }
Пример #3
0
 public RebuildIndexIntent(
     IContentSearchWrapper searchWrapper,
     IIntentOptionSetFactory optionSetFactory,
     IConversationResponseFactory responseFactory,
     IOleSettings settings) : base(optionSetFactory, responseFactory, settings)
 {
     ContentSearchWrapper = searchWrapper;
 }
 public SearchService(
     ISitecoreDataWrapper dataWrapper,
     IIntelligentSearchSettings settings,
     IContentSearchWrapper contentSearch)
 {
     DataWrapper   = dataWrapper;
     Settings      = settings;
     ContentSearch = contentSearch;
 }
 public UnlockItemsIntent(
     IAuthenticationWrapper authWrapper,
     IContentSearchWrapper searchWrapper,
     IIntentInputFactory inputFactory,
     IConversationResponseFactory responseFactory,
     IOleSettings settings) : base(inputFactory, responseFactory, settings)
 {
     AuthenticationWrapper = authWrapper;
     ContentSearchWrapper  = searchWrapper;
 }
Пример #6
0
 public LockedItemCountIntent(
     IAuthenticationWrapper authWrapper,
     IContentSearchWrapper searchWrapper,
     IIntentOptionSetFactory optionSetFactory,
     IConversationResponseFactory responseFactory,
     IOleSettings settings) : base(optionSetFactory, responseFactory, settings)
 {
     AuthenticationWrapper = authWrapper;
     ContentSearchWrapper  = searchWrapper;
 }
        public RebuildIndexIntent(
            IContentSearchWrapper searchWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IParameterResultFactory resultFactory,
            IOleSettings settings) : base(inputFactory, responseFactory, settings)
        {
            ContentSearchWrapper = searchWrapper;

            ConversationParameters.Add(new IndexParameter(IndexKey, inputFactory, searchWrapper, resultFactory));
        }
 public UnlockItemsIntent(
     ITextTranslatorWrapper translator,
     IAuthenticationWrapper authWrapper,
     IContentSearchWrapper searchWrapper,
     IIntentOptionSetFactory optionSetFactory,
     IConversationResponseFactory responseFactory,
     IOleSettings settings) : base(optionSetFactory, responseFactory, settings)
 {
     Translator            = translator;
     AuthenticationWrapper = authWrapper;
     ContentSearchWrapper  = searchWrapper;
 }
Пример #9
0
 public ImageSearchService(
     IContentSearchWrapper contentSearch,
     ISitecoreDataWrapper dataWrapper,
     IImageSearchSettings imageSearchSettings,
     IImageDescriptionFactory imageDescriptionFactory,
     ICognitiveImageAnalysisFactory imageAnalysisFactory)
 {
     ContentSearch           = contentSearch;
     DataWrapper             = dataWrapper;
     ImageSearchSettings     = imageSearchSettings;
     ImageDescriptionFactory = imageDescriptionFactory;
     ImageAnalysisFactory    = imageAnalysisFactory;
 }
 public IndexParameter(
     string paramName,
     IIntentInputFactory inputFactory,
     IContentSearchWrapper searchWrapper,
     IParameterResultFactory resultFactory)
 {
     ParamName          = paramName;
     ParamMessage       = Translator.Text("Chat.Parameters.IndexParameterRequest");
     IntentInputFactory = inputFactory;
     SearchWrapper      = searchWrapper;
     ResultFactory      = resultFactory;
     IsOptional         = false;
 }
Пример #11
0
 public ContentService(
     ISitecoreDataWrapper dataWrapper,
     IIntelligentTaggingSettings settings,
     IContentSearchWrapper contentSearch,
     IContentMappingFactory contentMappingFactory,
     IClassifierFactory classifierFactory)
 {
     DataWrapper           = dataWrapper;
     Settings              = settings;
     ContentSearch         = contentSearch;
     ContentMappingFactory = contentMappingFactory;
     ClassifierFactory     = classifierFactory;
 }
 public IntelligentMediaSearchService(
     IContentSearchWrapper contentSearch,
     ISitecoreDataWrapper dataWrapper,
     IIntelligentMediaSettings settings,
     IImageDescriptionFactory imageDescriptionFactory,
     IImageAnalysisFactory imageAnalysisFactory,
     IMediaWrapper mediaWrapper)
 {
     ContentSearch           = contentSearch;
     DataWrapper             = dataWrapper;
     Settings                = settings;
     ImageDescriptionFactory = imageDescriptionFactory;
     ImageAnalysisFactory    = imageAnalysisFactory;
     MediaWrapper            = mediaWrapper;
 }
Пример #13
0
 public SetupService(
     IMicrosoftCognitiveServicesApiKeys mscsApiKeys,
     ILuisService luisService,
     IOleSettings oleSettings,
     ISitecoreDataWrapper dataWrapper,
     IContentSearchWrapper contentSearch,
     IPublishWrapper publishWrapper,
     HttpContextBase context
     )
 {
     MSCSApiKeys    = mscsApiKeys;
     LuisService    = luisService;
     OleSettings    = oleSettings;
     Context        = context;
     DataWrapper    = dataWrapper;
     ContentSearch  = contentSearch;
     PublishWrapper = publishWrapper;
 }
        public WatsonClassifier(IServiceProvider provider, Item classifierItem) : base(provider, classifierItem)
        {
            ContentSearch             = provider.GetService <IContentSearchWrapper>();
            DataWrapper               = provider.GetService <ISitecoreDataWrapper>();
            ContentService            = provider.GetService <IContentService>();
            ContentSearchService      = provider.GetService <IContentSearchService>();
            NaturalLanguageClassifier = provider.GetService <INaturalLanguageClassifierService>();

            ClassifierId = GetString(classifierItem, Settings.ClassifierIdFieldId);
            Language     = GetID(classifierItem, Settings.ClassifierLanguageFieldId);
            var languageItem = classifierItem.Database.GetItem(Language);

            LanguageCode    = GetString(languageItem, Settings.EnumerationValueFieldId);
            Created         = GetDate(classifierItem, Settings.ClassifierCreatedFieldId); var typeItems = GetDelimitedItems(classifierItem, Settings.LearnedTypesFieldId);
            ContentMappings = typeItems
                              .Select(a => Mappingfactory.Create(a))
                              .Where(b => b != null)
                              .ToList();
            ItemTrainingCount = GetInt(classifierItem, Settings.ItemTrainingCountFieldId);
            ItemTestingCount  = GetInt(classifierItem, Settings.ItemTestingCountFieldId);
            TrainingData      = GetString(classifierItem, Settings.TrainingDataFieldId);
        }
 public SearchService(
     IContentSearchWrapper contentSearch)
 {
     ContentSearch = contentSearch;
 }