
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Vitorm.ElasticSearch.QueryBuilder
Advanced tools
Tool to convert FilterRule or ExpressionNode to ElasticSearch Query Request
Tool to convert FilterRule or ExpressionNode to ElasticSearch Query Request
source address: https://github.com/Vit-Orm/Vitorm.ElasticSearch.QueryBuilder
Build | NuGet |
---|---|
Before using , install the necessary package:
dotnet add package Vitorm.ElasticSearch.QueryBuilder
dotnet add package Vit.Core
using Vit.Core.Module.Serialization;
using Vit.Linq.ComponentModel;
using Vitorm.ElasticSearch;
namespace App
{
public class Program
{
static void Main(string[] args)
{
var strPagedQuery = "{ 'filter':{'field':'children.id', 'operator': '=', 'value': 1 }, 'orders':[{'field':'id','asc':false}], 'page':{'pageSize':2, 'pageIndex':1} }".Replace("'", "\"");
var pagedQuery = Json.Deserialize<PagedQuery>(strPagedQuery);
var queryRequest = new FilterRuleBuilder().ConvertToQuery(pagedQuery.filter);
var strQuery = Json.Serialize(queryRequest);
}
// Entity Definition
[System.ComponentModel.DataAnnotations.Schema.Table("User")]
public class User
{
[System.ComponentModel.DataAnnotations.Key]
public int id { get; set; }
public string name { get; set; }
public DateTime? birth { get; set; }
public int? fatherId { get; set; }
public List<User> children { get; set; }
}
}
}
FAQs
Tool to convert FilterRule or ExpressionNode to ElasticSearch Query Request
We found that vitorm.elasticsearch.querybuilder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.