예제 #1
0
        public static Term IsEqualOnly(this MatchField<string> field, EqualOnlyBehaviour behaviour, params string[] conditions)
        {
            if (behaviour == EqualOnlyBehaviour.SkipFieldCheck)
            {
                return new Term(field, conditions) { TermType = TermType.MatchCover };
            }

            return (new Term(field, conditions) { TermType = TermType.MatchCover }) & field.Exists();
        }
예제 #2
0
        public static Term IsEqualOnly(this MatchField <string> field, EqualOnlyBehaviour behaviour, params string[] conditions)
        {
            if (behaviour == EqualOnlyBehaviour.SkipFieldCheck)
            {
                return(new Term(field, conditions)
                {
                    TermType = TermType.MatchCover
                });
            }

            return((new Term(field, conditions)
            {
                TermType = TermType.MatchCover
            }) & field.Exists());
        }