lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romseyg...@apache.org
Subject lucene-solr:master: LUCENE-7624: Remove deprecated TermsQuery
Date Mon, 09 Jan 2017 15:33:59 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 22940f5c4 -> 17cd0f00c


LUCENE-7624: Remove deprecated TermsQuery


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/17cd0f00
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/17cd0f00
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/17cd0f00

Branch: refs/heads/master
Commit: 17cd0f00cc1a7bce647eedfe56c860a02aa22654
Parents: 22940f5
Author: Alan Woodward <romseygeek@apache.org>
Authored: Mon Jan 9 15:33:07 2017 +0000
Committer: Alan Woodward <romseygeek@apache.org>
Committed: Mon Jan 9 15:33:07 2017 +0000

----------------------------------------------------------------------
 .../org/apache/lucene/queries/TermsQuery.java   | 65 --------------------
 1 file changed, 65 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/17cd0f00/lucene/queries/src/java/org/apache/lucene/queries/TermsQuery.java
----------------------------------------------------------------------
diff --git a/lucene/queries/src/java/org/apache/lucene/queries/TermsQuery.java b/lucene/queries/src/java/org/apache/lucene/queries/TermsQuery.java
deleted file mode 100644
index 5effa83..0000000
--- a/lucene/queries/src/java/org/apache/lucene/queries/TermsQuery.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.lucene.queries;
-
-import java.util.Arrays;
-import java.util.Collection;
-
-import org.apache.lucene.index.Term;
-import org.apache.lucene.search.TermInSetQuery;
-import org.apache.lucene.util.BytesRef;
-
-/**
- * @deprecated Use {@link org.apache.lucene.search.TermInSetQuery}
- */
-@Deprecated
-public class TermsQuery extends TermInSetQuery {
-
-  /**
-   * Creates a new {@link TermsQuery} from the given collection. It
-   * can contain duplicate terms and multiple fields.
-   */
-  public TermsQuery(Collection<Term> terms) {
-    super(terms);
-  }
-
-  /**
-   * Creates a new {@link TermsQuery} from the given collection for
-   * a single field. It can contain duplicate terms.
-   */
-  public TermsQuery(String field, Collection<BytesRef> terms) {
-    super(field, terms);
-  }
-
-  /**
-   * Creates a new {@link TermsQuery} from the given {@link BytesRef} array for
-   * a single field.
-   */
-  public TermsQuery(String field, BytesRef...terms) {
-    this(field, Arrays.asList(terms));
-  }
-
-  /**
-   * Creates a new {@link TermsQuery} from the given array. The array can
-   * contain duplicate terms and multiple fields.
-   */
-  public TermsQuery(final Term... terms) {
-    this(Arrays.asList(terms));
-  }
-
-
-}


Mime
View raw message