[Rename] modules/percolator (#213)

Refactor percolator module as part of the Elasticsearch to OpenSearch renaming effort.

Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
Rabi Panda 2021-03-05 14:24:57 -08:00 committed by Nick Knize
parent 03bd0b36fd
commit ccefe895d2
22 changed files with 32 additions and 32 deletions

View File

@ -28,7 +28,7 @@ import org.elasticsearch.common.network.NetworkModule;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.reindex.ReindexPlugin;
import org.elasticsearch.join.ParentJoinPlugin;
import org.elasticsearch.percolator.PercolatorPlugin;
import org.opensearch.percolator.PercolatorPlugin;
import org.elasticsearch.plugins.Plugin;
import org.opensearch.script.mustache.MustachePlugin;
import org.elasticsearch.transport.Netty4Plugin;

View File

@ -25,7 +25,7 @@ import org.elasticsearch.common.network.NetworkModule;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.index.reindex.ReindexPlugin;
import org.elasticsearch.join.ParentJoinPlugin;
import org.elasticsearch.percolator.PercolatorPlugin;
import org.opensearch.percolator.PercolatorPlugin;
import org.elasticsearch.plugins.Plugin;
import org.opensearch.script.mustache.MustachePlugin;
import org.elasticsearch.transport.Netty4Plugin;

View File

@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
apply plugin: 'elasticsearch.yaml-rest-test'
apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'opensearch.yaml-rest-test'
apply plugin: 'opensearch.internal-cluster-test'
esplugin {
description 'Percolator module adds capability to index queries and query these queries by specifying documents'
classname 'org.elasticsearch.percolator.PercolatorPlugin'
classname 'org.opensearch.percolator.PercolatorPlugin'
hasClientJar = true
}

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.search.join.ScoreMode;
import org.elasticsearch.OpenSearchException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.index.LeafReaderContext;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.DelegatingAnalyzerWrapper;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.BinaryRange;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.IndexSearcher;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.BooleanClause;
@ -46,7 +46,7 @@ import java.util.stream.Collectors;
import java.util.stream.IntStream;
import static org.apache.lucene.search.DocIdSetIterator.NO_MORE_DOCS;
import static org.elasticsearch.percolator.PercolatorHighlightSubFetchPhase.locatePercolatorQuery;
import static org.opensearch.percolator.PercolatorHighlightSubFetchPhase.locatePercolatorQuery;
/**
* Adds a special field to a percolator query hit to indicate which documents matched with the percolator query.

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.elasticsearch.common.settings.Setting;
import org.elasticsearch.index.mapper.Mapper;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.document.BinaryRange;
import org.apache.lucene.index.PrefixCodedTerms;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.document.Document;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.search.Query;
import org.elasticsearch.OpenSearchException;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.document.Field;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest;
import org.elasticsearch.common.Strings;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.document.DoublePoint;
@ -116,9 +116,9 @@ import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
import static org.elasticsearch.index.query.QueryBuilders.termsLookupQuery;
import static org.elasticsearch.index.query.QueryBuilders.wildcardQuery;
import static org.elasticsearch.percolator.PercolatorFieldMapper.EXTRACTION_COMPLETE;
import static org.elasticsearch.percolator.PercolatorFieldMapper.EXTRACTION_FAILED;
import static org.elasticsearch.percolator.PercolatorFieldMapper.EXTRACTION_PARTIAL;
import static org.opensearch.percolator.PercolatorFieldMapper.EXTRACTION_COMPLETE;
import static org.opensearch.percolator.PercolatorFieldMapper.EXTRACTION_FAILED;
import static org.opensearch.percolator.PercolatorFieldMapper.EXTRACTION_PARTIAL;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.search.BooleanClause;
import org.apache.lucene.search.BooleanQuery;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.document.Document;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.join.ScoreMode;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.document.DoublePoint;
import org.apache.lucene.document.FloatPoint;
@ -62,8 +62,8 @@ import org.elasticsearch.common.lucene.search.function.FunctionScoreQuery;
import org.elasticsearch.common.lucene.search.function.RandomScoreFunction;
import org.elasticsearch.common.network.InetAddresses;
import org.elasticsearch.index.search.ESToParentBlockJoinQuery;
import org.elasticsearch.percolator.QueryAnalyzer.QueryExtraction;
import org.elasticsearch.percolator.QueryAnalyzer.Result;
import org.opensearch.percolator.QueryAnalyzer.QueryExtraction;
import org.opensearch.percolator.QueryAnalyzer.Result;
import org.elasticsearch.test.ESTestCase;
import java.util.ArrayList;
@ -76,8 +76,8 @@ import java.util.Set;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import static org.elasticsearch.percolator.QueryAnalyzer.analyze;
import static org.elasticsearch.percolator.QueryAnalyzer.selectBestResult;
import static org.opensearch.percolator.QueryAnalyzer.analyze;
import static org.opensearch.percolator.QueryAnalyzer.selectBestResult;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.sameInstance;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.index.DirectoryReader;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.percolator;
package org.opensearch.percolator;
import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;