FilterInputs mustfilters;
mustfilters &= ms.Term("cityId", filterInputs.cities);
mustfilters &= ms.Terms("cityIds", filterInputs.cities);
What would difference be between above 2 lines?
As far i have tested, the second will allow multiple cities in document with kye cityIds. Any if any matches with filterInputs.cities=> record is returned.
While first will only allow once city.If it matches=>record return else not.
Please confirm.
Term
allows to match only one term. According to documentation:See here
while
Terms
allows you to specify multiple terms and match any of them.It works likein
inSql
. According to documentation:See here