manticoresoftware / manticoresearch-net

Official .NET client for Manticore Search
33 stars 3 forks source link

RangeFilters do not work on 64-bit integers #2

Open duk-37 opened 3 months ago

duk-37 commented 3 months ago

This line causes an exception to be thrown if the value passed to a RangeFilterValue does not fit in a 32-bit integer.

using ManticoreSearch.Api;
using ManticoreSearch.Model;

public static class Program
{
    public static void Main(string[] args)
    {
        var searchAPi = new SearchApi();
        var filters = new BoolFilter(must:
        [
            new RangeFilter("id", gt: new RangeFilterValue(111111111111L))
        ]);

        var searchReq = new SearchRequest("messages")
        {
            AttrFilter = filters
        };

        searchAPi.Search(searchReq);
    }
}
Nick-S-2018 commented 2 months ago

Hi, Sorry for delay with the response. This issue will be fixed in the next release coming in a few days.

Nick-S-2018 commented 2 months ago

Blocked by https://github.com/manticoresoftware/manticoresearch/issues/1807

Nick-S-2018 commented 2 weeks ago

Blocked by https://github.com/manticoresoftware/manticoresearch/issues/2269