Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Commit #572

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Meilisearch/MeilisearchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,14 @@
return await response.Content.ReadFromJsonAsync<TaskInfo>(cancellationToken: cancellationToken).ConfigureAwait(false);
}


///<summary>
///</summary>
public async Task<SearchSimilarDocuments> SearchSimilarDocuments(SearchSimilarDocuments searchSimilarDocuments)

Check warning on line 402 in src/Meilisearch/MeilisearchClient.cs

View workflow job for this annotation

GitHub Actions / integration-tests

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 402 in src/Meilisearch/MeilisearchClient.cs

View workflow job for this annotation

GitHub Actions / integration-tests

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
throw NotImplementedException();

Check failure on line 404 in src/Meilisearch/MeilisearchClient.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Non-invocable member 'NotImplementedException' cannot be used like a method.

Check failure on line 404 in src/Meilisearch/MeilisearchClient.cs

View workflow job for this annotation

GitHub Actions / integration-tests

Non-invocable member 'NotImplementedException' cannot be used like a method.
}

/// <summary>
/// Generate a tenant token string to be used during search.
/// </summary>
Expand Down
37 changes: 37 additions & 0 deletions src/Meilisearch/SearchSimilarDocuments.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Meilisearch
{
public class SearchSimilarDocuments
{

public int Id { get; set; }

[DefaultValue("default")]
public string Embedder { get; set; }

public string[] AttributesToRetrieve { get; set; }

[DefaultValue(0)]
public int Offset { get; set; }

[DefaultValue(20)]
public int Limit { get; set; }

public string Filter { get; set; }

[DefaultValue(false)]
public bool ShowRankingScore { get; set; }

[DefaultValue(false)]
public bool ShowRankingScoreDetails { get; set; }

public int RankingScoreThreshold { get; set; }

[DefaultValue(false)]
public bool RetrieveVectors { get; set; }
}
}
Loading