-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
31 lines (25 loc) · 1.08 KB
/
Program.cs
File metadata and controls
31 lines (25 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using FluxIndex;
namespace FileFluxIndexSample;
class ProgramMinimal
{
static async Task Main(string[] args)
{
Console.WriteLine("=== FluxIndex Minimal Package Test ===");
var client = new FluxIndexClient();
// Test indexing
Console.WriteLine("\n1. Testing document indexing...");
var docId = await client.IndexDocumentAsync("This is a test document content", "test-doc-001");
Console.WriteLine($" ✓ Indexed document ID: {docId}");
// Test search
Console.WriteLine("\n2. Testing document search...");
var results = await client.SearchAsync("test", 5);
foreach (var result in results)
{
Console.WriteLine($" ✓ Found: {result.DocumentId}");
Console.WriteLine($" Content: {result.Content}");
Console.WriteLine($" Score: {result.Score:F2}");
}
Console.WriteLine("\n=== Test completed successfully! ===");
Console.WriteLine("FluxIndex package is working correctly from local NuGet source.");
}
}