Good morning,
I'm using the library nest in C# to write bool queries but I would like create a termsquery with a list of integers, like when I use strings:
List<string> hiValues = new List<string>();
TermsQuery query = new()
{
Field = "fieldKey",
Terms = hiValues
};
The problem is the field Terms is an Enumerable, and I can't convert the list of integers of this type. My option now is convert the list of integers to string but I don't know if exists any better option.
Thanks for the help!!