public static Term IsNotEqual(this NumericField field, int condition) { return(new Term(field, condition.ToString()) { TermType = TermType.Equal, Inverted = true }); }
public static Term IsEqual(this NumericField field, int condition) { return(new Term(field, condition.ToString()) { TermType = TermType.Equal }); }