Exemplo n.º 1
0
 public FormatResultsResultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
     if (IsEndOfPipeline())
     {
         formatter = new Helpers.ConsoleFormatter(cmdlet);
         formatter.FormatDividerLine();
     }
 }
Exemplo n.º 2
0
 public AllPropertiesInlineResultProcessor(SearchSPIndexCmdlet cmdlet, SearchQueryRequest searchQueryRequest) :
     base(cmdlet, searchQueryRequest)
 {
     MaxRows = 1;
 }
Exemplo n.º 3
0
 public RankContributionresultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 4
0
 public RankDetailResultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 5
0
 protected BaseRankDetailProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 6
0
 public AllResultsResultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 7
0
 public CrawledPropertiesResultProcessor(SearchSPIndexCmdlet cmdlet, SearchQueryRequest searchQueryRequest) :
     base(cmdlet)
 {
     this.request = searchQueryRequest;
 }
Exemplo n.º 8
0
 public PrimaryResultsResultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 9
0
 public RefinerResultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 10
0
        public static IQueryResultProcessor SelectQueryResultProcessor(ResultProcessor type, SearchSPIndexCmdlet cmdlet, SearchQueryRequest searchQueryRequest)
        {
            IQueryResultProcessor qrp = null;

            switch (type)
            {
            case ResultProcessor.Raw:
                qrp = new RawResultProcessor(cmdlet);
                break;

            case ResultProcessor.Primary:
                qrp = new PrimaryResultsResultProcessor(cmdlet);
                break;

            case ResultProcessor.All:
                qrp = new AllResultsResultProcessor(cmdlet);
                break;

            case ResultProcessor.Refiners:
                qrp = new RefinerResultProcessor(cmdlet);
                break;

            case ResultProcessor.Basic:
                qrp = new BasicResultProcessor(cmdlet);
                break;

            case ResultProcessor.BasicAll:
                qrp = new BasicAllResultProcessor(cmdlet);
                break;

            case ResultProcessor.RankXML:
                qrp = new RankXMLResultProcessor(cmdlet);
                break;

            case ResultProcessor.RankDetail:
                qrp = new RankDetailResultProcessor(cmdlet);
                break;

            case ResultProcessor.ExplainRank:
                qrp = new ExplainRankResultProcessor(cmdlet);
                break;

            case ResultProcessor.RankContribution:
                qrp = new RankContributionresultProcessor(cmdlet);
                break;

            case ResultProcessor.AllProperties:
                qrp = new AllPropertiesResultProcessor(cmdlet, searchQueryRequest);
                break;

            case ResultProcessor.AllPropertiesInline:
                qrp = new AllPropertiesInlineResultProcessor(cmdlet, searchQueryRequest);
                break;

            case ResultProcessor.ManagedProperties:
                qrp = new ManagedPropertiesResultProcessor(cmdlet, searchQueryRequest);
                break;

            case ResultProcessor.CrawledProperties:
                qrp = new CrawledPropertiesResultProcessor(cmdlet, searchQueryRequest);
                break;

            case ResultProcessor.FormatResults:
                qrp = new FormatResultsResultProcessor(cmdlet);
                break;

            default:
                throw new NotImplementedException("No result processor match " + type);
            }

            return(qrp);
        }
Exemplo n.º 11
0
 public BaseQueryResultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 12
0
 public AbstractQueryResultProcessor(SearchSPIndexCmdlet cmdlet)
 {
     this.Cmdlet  = cmdlet;
     retryHandler = new RetryHandler(Cmdlet);
 }
Exemplo n.º 13
0
 public AllPropertiesResultProcessor(SearchSPIndexCmdlet cmdlet, SearchQueryRequest searchQueryRequest) :
     base(cmdlet)
 {
     request = searchQueryRequest;
 }
Exemplo n.º 14
0
 public ExplainRankResultProcessor(SearchSPIndexCmdlet cmdlet) :
     base(cmdlet)
 {
 }
Exemplo n.º 15
0
 public AbstractQueryResultProcessor(SearchSPIndexCmdlet cmdlet)
 {
     this.Cmdlet = cmdlet;
 }