小编rob*_*sta的帖子

如何使用Microsoft.Azure.Search SearchContinuationToken

有人能指出我如何实现这个的正确方向?

到目前为止,我可以查询我的索引并获得响应

SearchIndexClient indexClient = service.Indexes.GetClient(indexName);
 SearchParameters sp = new SearchParameters()
        {
            Facets = new string[] { "Brand", "Price,values:10|25|100|500|1000|2500" },
            Filter = AzureUtils.BuildFilter(brand, priceFrom, priceTo),
            OrderBy = new string[] { "" },
            IncludeTotalResultCount = true,
            Top = 9,
            SearchMode = SearchMode.Any
        };
        DocumentSearchResponse<MyClass> response = response = indexClient.Documents.Search<MyClass>(searchText, sp);
Run Code Online (Sandbox Code Playgroud)

当结果返回时,response.ContinuationToken为null

如何让我的索引返回response.ContinuationToken属性的值.

另外,如何实现此功能以获取接下来的9个结果?

谢谢

.net c# azure azure-cognitive-search

8
推荐指数
2
解决办法
2279
查看次数

支持 Crystal Reports 的 Docker 容器

我正在尝试创建一个 Docker 映像来托管我的依赖于 Crystal Reports 的 asp.net MVC 应用程序。

我的 dockerfile 看起来像这样

FROM microsoft/iis

COPY ./bin/Release/Publish/ c:\\inetpub\\wwwroot

RUN ["powershell.exe", "Install-WindowsFeature NET-Framework-45-ASPNET"]  
RUN ["powershell.exe", "Install-WindowsFeature Web-Asp-Net45"]

#install Crystal reports runtime
COPY Resources/Files/CRRuntime_64bit_13_0_21.msi . 
RUN powershell.exe -Command Start-Process CRRuntime_64bit_13_0_21.msi -ArgumentList '/quiet' -Wait

Run Code Online (Sandbox Code Playgroud)

CRRuntime_64bit_13_0_21.msi 安装失败。我登录到我的容器并从 powershell 运行 msi install 并生成了一个日志。它很长,但这里有两件事很突出:

  1. 错误 1904。模块 C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\pageobjectmodel.dll 未能注册。HRESULT -2147024770。请联系您的支持人员。操作结束 17:20:50:InstallFinalize。返回值 3。

  2. 操作结束 17:23:56:安装。返回值 3. MSI (s) (3C:54) [17:23:56:467]:产品:适用于 .NET Framework(64 位)的 SAP Crystal Reports 运行时引擎——安装操作失败。MSI …

crystal-reports docker

8
推荐指数
2
解决办法
3752
查看次数