Bsa.Search.Core.Rest 3.1.11

There is a newer version of this package available.
See the version list below for details.
dotnet add package Bsa.Search.Core.Rest --version 3.1.11
NuGet\Install-Package Bsa.Search.Core.Rest -Version 3.1.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bsa.Search.Core.Rest" Version="3.1.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bsa.Search.Core.Rest --version 3.1.11
#r "nuget: Bsa.Search.Core.Rest, 3.1.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Bsa.Search.Core.Rest as a Cake Addin
#addin nuget:?package=Bsa.Search.Core.Rest&version=3.1.11

// Install Bsa.Search.Core.Rest as a Cake Tool
#tool nuget:?package=Bsa.Search.Core.Rest&version=3.1.11

Bsa.Search.Core is a .Net Core library providing indexing and fast full text search. Technical characteristics of approximately 100 thousand simple queries per minute, on the index of 40 million documents, or about 8 thousand complex queries

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.0.6 190 12/11/2023
7.0.5 117 9/15/2023
7.0.4 118 9/15/2023
7.0.3 136 8/31/2023
7.0.2 122 8/31/2023
7.0.1 112 8/31/2023
7.0.0 116 8/31/2023
6.0.6 92 12/11/2023
6.0.5 105 9/15/2023
6.0.4 91 9/15/2023
6.0.3 105 8/31/2023
6.0.2 112 8/31/2023
6.0.1 129 8/31/2023
6.0.0 110 8/31/2023
3.1.14 401 12/13/2023
3.1.13 92 12/11/2023
3.1.12 108 9/15/2023
3.1.11 95 9/15/2023
3.1.10 103 9/15/2023
3.1.9 160 8/31/2023
3.1.8 115 8/31/2023
3.1.7 129 8/31/2023
3.1.6 113 8/31/2023
2.0.5 439 11/24/2022
2.0.4 374 11/24/2022
2.0.2 379 11/18/2022
2.0.1 384 11/17/2022
2.0.0 394 11/17/2022

//Api version 2.0.22 or higher
// https://bsasearch.org/Bsa.Search.2.0.22.zip
var service = new SearchService("http://localhost:2664");
 var name = "test_index";

 if (!service.IsExists(name))
 {
  Console.WriteLine("Index does not exists");
  service.CreateIndex(name);
 }

 while (!service.IsReady(name))
 {
  Thread.Sleep(100);
 }

 var externalid = "ExternalId";
 var indexDocumentDatas = new List<IndexDocumentData>()
 {
  new IndexDocumentData()
  {
   Id = externalid,
   Overwrite = true,
   Fields = new List<IndexFieldData>()
  {
   new IndexFieldData(){Value = "one two nine", Name = "content"}
  }}
 };
 service.Indexing(new IndexingDocumentBulkRequest()
 {
  IndexName = name,
  Items = indexDocumentDatas,
 });
 var result = service.Search(new SearchDocumentRequest()
 {
  Field = "*",
  Count = 100000,
  IndexName = name,
  IsShort = false,
  Query = "one & two",

 });
 if (result.Hits.Length == 0)
  Console.WriteLine("Data not found");