예제 #1
0
        public override System.Object Clone()
        {
            SpanNotQuery spanNotQuery = new SpanNotQuery((SpanQuery)include.Clone(), (SpanQuery)exclude.Clone());

            spanNotQuery.Boost = Boost;
            return(spanNotQuery);
        }
예제 #2
0
        public override object Clone()
        {
            SpanNotQuery spanNotQuery = new SpanNotQuery((SpanQuery)include.Clone(), (SpanQuery)exclude.Clone(), pre, post);

            spanNotQuery.Boost = Boost;
            return(spanNotQuery);
        }
예제 #3
0
        public override System.Object Clone()
        {
            SpanFirstQuery spanFirstQuery = new SpanFirstQuery((SpanQuery)match.Clone(), end);

            spanFirstQuery.SetBoost(GetBoost());
            return(spanFirstQuery);
        }
예제 #4
0
        public override object Clone()
        {
            SpanFirstQuery spanFirstQuery = new SpanFirstQuery((SpanQuery)match.Clone(), end);

            spanFirstQuery.Boost = Boost;
            return(spanFirstQuery);
        }
예제 #5
0
        public override System.Object Clone()
        {
            var spanNotQuery = new SpanNotQuery((SpanQuery)include.Clone(), (SpanQuery)exclude.Clone())
            {
                Boost = Boost
            };

            return(spanNotQuery);
        }
예제 #6
0
        public override System.Object Clone()
        {
            var spanFirstQuery = new SpanFirstQuery((SpanQuery)match.Clone(), end)
            {
                Boost = Boost
            };

            return(spanFirstQuery);
        }
예제 #7
0
        public override System.Object Clone()
        {
            int sz = clauses.Count;

            SpanQuery[] newClauses = new SpanQuery[sz];

            for (int i = 0; i < sz; i++)
            {
                SpanQuery clause = clauses[i];
                newClauses[i] = (SpanQuery)clause.Clone();
            }
            SpanNearQuery spanNearQuery = new SpanNearQuery(newClauses, internalSlop, inOrder);

            spanNearQuery.Boost = Boost;
            return(spanNearQuery);
        }
예제 #8
0
        public override System.Object Clone()
        {
            int sz = clauses.Count;

            SpanQuery[] newClauses = new SpanQuery[sz];

            for (int i = 0; i < sz; i++)
            {
                SpanQuery clause = (SpanQuery)clauses[i];
                newClauses[i] = (SpanQuery)clause.Clone();
            }
            SpanOrQuery soq = new SpanOrQuery(newClauses);

            soq.SetBoost(GetBoost());
            return(soq);
        }