示例#1
0
        public override System.Object Clone()
        {
            SpanFirstQuery spanFirstQuery = new SpanFirstQuery((SpanQuery)match.Clone(), end);

            spanFirstQuery.SetBoost(GetBoost());
            return(spanFirstQuery);
        }
示例#2
0
        public override System.Object Clone()
        {
            SpanNotQuery spanNotQuery = new SpanNotQuery((SpanQuery)include.Clone(), (SpanQuery)exclude.Clone());

            spanNotQuery.SetBoost(GetBoost());
            return(spanNotQuery);
        }
示例#3
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);
        }
示例#4
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();
            }
            SpanNearQuery spanNearQuery = new SpanNearQuery(newClauses, slop, inOrder);

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