Apache Solr open-source search software
LUCENE-3285: Moved flexible queryparser to queryparser module
Christopher John Malea684f6d497d1
diff --git a/dev-tools/eclipse/dot.classpath b/dev-tools/eclipse/dot.classpathindex a4d98e43aca..147664f6f31 100644--- a/dev-tools/eclipse/dot.classpath+++ b/dev-tools/eclipse/dot.classpath@@ -15,9 +15,6 @@<classpathentry kind="src" path="lucene/contrib/misc/src/test"/><classpathentry kind="src" path="lucene/contrib/queries/src/java"/><classpathentry kind="src" path="lucene/contrib/queries/src/test"/>- <classpathentry kind="src" path="lucene/contrib/queryparser/src/java"/>- <classpathentry kind="src" path="lucene/contrib/queryparser/src/resources"/>- <classpathentry kind="src" path="lucene/contrib/queryparser/src/test"/><classpathentry kind="src" path="lucene/contrib/spatial/src/java"/><classpathentry kind="src" path="lucene/contrib/spatial/src/test"/><classpathentry kind="src" path="lucene/contrib/xml-query-parser/src/java"/>diff --git a/dev-tools/idea/.idea/modules.xml b/dev-tools/idea/.idea/modules.xmlindex b497aa65423..44203dcee47 100644--- a/dev-tools/idea/.idea/modules.xml+++ b/dev-tools/idea/.idea/modules.xml@@ -10,7 +10,6 @@<module filepath="$PROJECT_DIR$/lucene/contrib/memory/memory.iml" /><module filepath="$PROJECT_DIR$/lucene/contrib/misc/misc.iml" /><module filepath="$PROJECT_DIR$/lucene/contrib/queries/queries-contrib.iml" />- <module filepath="$PROJECT_DIR$/lucene/contrib/queryparser/queryparser-contrib.iml" /><module filepath="$PROJECT_DIR$/lucene/contrib/spatial/spatial.iml" /><module filepath="$PROJECT_DIR$/lucene/contrib/xml-query-parser/xml-query-parser.iml" /><module filepath="$PROJECT_DIR$/modules/analysis/common/analysis-common.iml" />diff --git a/dev-tools/idea/.idea/workspace.xml b/dev-tools/idea/.idea/workspace.xmlindex 3e50b27ff86..71b698dd430 100644--- a/dev-tools/idea/.idea/workspace.xml+++ b/dev-tools/idea/.idea/workspace.xml@@ -148,13 +148,6 @@<option name="VM_PARAMETERS" value="-ea -DtempDir=temp" /><option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option></configuration>- <configuration default="false" name="queryparser contrib" type="JUnit" factoryName="JUnit">- <module name="queryparser-contrib" />- <option name="TEST_OBJECT" value="package" />- <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/lucene/build/contrib/queryparser" />- <option name="VM_PARAMETERS" value="-ea -DtempDir=temp" />- <option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option>- </configuration><configuration default="false" name="smartcn analysis module" type="JUnit" factoryName="JUnit"><module name="smartcn" /><option name="TEST_OBJECT" value="package" />@@ -204,7 +197,7 @@<option name="VM_PARAMETERS" value="-ea -DtempDir=temp" /><option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option></configuration>- <list size="29">+ <list size="28"><item index="0" class="java.lang.String" itemvalue="JUnit.analysis-extras contrib" /><item index="1" class="java.lang.String" itemvalue="JUnit.benchmark module" /><item index="2" class="java.lang.String" itemvalue="JUnit.clustering contrib" />@@ -226,14 +219,13 @@<item index="18" class="java.lang.String" itemvalue="JUnit.queries contrib" /><item index="19" class="java.lang.String" itemvalue="JUnit.queries module" /><item index="20" class="java.lang.String" itemvalue="JUnit.queryparser module" />- <item index="21" class="java.lang.String" itemvalue="JUnit.queryparser contrib" />- <item index="22" class="java.lang.String" itemvalue="JUnit.smartcn analysis module" />- <item index="23" class="java.lang.String" itemvalue="JUnit.solr" />- <item index="24" class="java.lang.String" itemvalue="JUnit.spatial contrib" />- <item index="25" class="java.lang.String" itemvalue="JUnit.stempel analysis module" />- <item index="26" class="java.lang.String" itemvalue="JUnit.suggest module" />- <item index="27" class="java.lang.String" itemvalue="JUnit.uima contrib" />- <item index="28" class="java.lang.String" itemvalue="JUnit.xml-query-parser contrib" />+ <item index="21" class="java.lang.String" itemvalue="JUnit.smartcn analysis module" />+ <item index="22" class="java.lang.String" itemvalue="JUnit.solr" />+ <item index="23" class="java.lang.String" itemvalue="JUnit.spatial contrib" />+ <item index="24" class="java.lang.String" itemvalue="JUnit.stempel analysis module" />+ <item index="25" class="java.lang.String" itemvalue="JUnit.suggest module" />+ <item index="26" class="java.lang.String" itemvalue="JUnit.uima contrib" />+ <item index="27" class="java.lang.String" itemvalue="JUnit.xml-query-parser contrib" /></list></component></project>diff --git a/dev-tools/idea/lucene/contrib/queryparser/queryparser-contrib.iml b/dev-tools/idea/lucene/contrib/queryparser/queryparser-contrib.imldeleted file mode 100644index 28e1a4134a4..00000000000--- a/dev-tools/idea/lucene/contrib/queryparser/queryparser-contrib.iml+++ /dev/null@@ -1,20 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<module type="JAVA_MODULE" version="4">- <component name="NewModuleRootManager" inherit-compiler-output="false">- <output url="file://$MODULE_DIR$/../../build/contrib/queryparser/classes/java" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/queryparser/classes/test" />- <exclude-output />- <content url="file://$MODULE_DIR$">- <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />- <sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />- <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />- </content>- <orderEntry type="inheritedJdk" />- <orderEntry type="sourceFolder" forTests="false" />- <orderEntry type="library" scope="TEST" name="JUnit" level="project" />- <orderEntry type="module" module-name="queries-contrib" />- <orderEntry type="module" module-name="misc" />- <orderEntry type="module" module-name="lucene" />- <orderEntry type="module" module-name="queryparser" />- </component>-</module>diff --git a/dev-tools/idea/modules/queryparser/queryparser.iml b/dev-tools/idea/modules/queryparser/queryparser.imlindex 50cb2814087..e0fddecf1d8 100644--- a/dev-tools/idea/modules/queryparser/queryparser.iml+++ b/dev-tools/idea/modules/queryparser/queryparser.iml@@ -6,6 +6,7 @@<exclude-output /><content url="file://$MODULE_DIR$"><sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />+ <sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" /><sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" /><excludeFolder url="file://$MODULE_DIR$/work" /></content>diff --git a/dev-tools/maven/lucene/contrib/pom.xml.template b/dev-tools/maven/lucene/contrib/pom.xml.templateindex 42edcf6bd53..b138041f227 100644--- a/dev-tools/maven/lucene/contrib/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/pom.xml.template@@ -37,7 +37,6 @@<module>memory</module><module>misc</module><module>queries</module>- <module>queryparser</module><module>spatial</module><module>xml-query-parser</module></modules>diff --git a/dev-tools/maven/lucene/contrib/queryparser/pom.xml.template b/dev-tools/maven/lucene/contrib/queryparser/pom.xml.templatedeleted file mode 100644index 4f67518685c..00000000000--- a/dev-tools/maven/lucene/contrib/queryparser/pom.xml.template+++ /dev/null@@ -1,90 +0,0 @@-<project xmlns="http://maven.apache.org/POM/4.0.0"- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">- <!--- 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.- -->- <modelVersion>4.0.0</modelVersion>- <parent>- <groupId>org.apache.lucene</groupId>- <artifactId>lucene-parent</artifactId>- <version>@version@</version>- <relativePath>../../pom.xml</relativePath>- </parent>- <groupId>org.apache.lucene</groupId>- <artifactId>lucene-queryparser-contrib</artifactId>- <packaging>jar</packaging>- <name>Lucene Query Parser</name>- <description>- This is the Flexible Query Parser for apache lucene java- </description>- <properties>- <module-directory>lucene/contrib/queryparser</module-directory>- <build-directory>../../build/contrib/queryparser</build-directory>- </properties>- <dependencies>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>- <version>${project.version}</version>- </dependency>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-queryparser</artifactId>- <version>${project.version}</version>- </dependency>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>- <version>${project.version}</version>- <type>test-jar</type>- <scope>test</scope>- </dependency>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-test-framework</artifactId>- <version>${project.version}</version>- <scope>test</scope>- </dependency>- <dependency>- <groupId>junit</groupId>- <artifactId>junit</artifactId>- <scope>test</scope>- </dependency>- </dependencies>- <build>- <directory>${build-directory}</directory>- <outputDirectory>${build-directory}/classes/java</outputDirectory>- <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>- <sourceDirectory>src/java</sourceDirectory>- <testSourceDirectory>src/test</testSourceDirectory>- <resources>- <resource>- <directory>src/resources</directory>- </resource>- </resources>- <testResources>- <testResource>- <directory>${project.build.testSourceDirectory}</directory>- <excludes>- <exclude>**/*.java</exclude>- </excludes>- </testResource>- </testResources>- </build>-</project>diff --git a/lucene/build.xml b/lucene/build.xmlindex 276e16f22db..8916e78a1b4 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -232,7 +232,6 @@<packageset dir="contrib/queries/src/java"/><packageset dir="contrib/spatial/src/java"/><packageset dir="contrib/xml-query-parser/src/java"/>- <packageset dir="contrib/queryparser/src/java"/><!-- end alpha sort --><!-- If the main javadoc Group listing includes an "Other -->@@ -248,7 +247,6 @@<group title="contrib: Memory" packages="org.apache.lucene.index.memory*"/><group title="contrib: Misc " packages="org.apache.lucene.misc*"/><group title="contrib: Queries" packages="org.apache.lucene.search.similar*:org.apache.lucene.search.regex*:org.apache.regexp*"/>- <group title="contrib: Query Parser" packages="org.apache.lucene.queryParser.*"/><group title="contrib: Spatial" packages="org.apache.lucene.spatial*"/><group title="contrib: XML Query Parser" packages="org.apache.lucene.xmlparser*"/>@@ -415,22 +413,8 @@<!-- ================================================================== --><!-- Build the JavaCC files into the source tree --><!-- ================================================================== -->- <target name="clean-javacc">- <delete>- <fileset dir="contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser" includes="*.java">- <containsregexp expression="Generated.*By.*JavaCC"/>- </fileset>- </delete>- </target>- <target name="javacc" depends="init,javacc-check,clean-javacc,javacc-contrib-queryparser,javacc-contrib-demo"/>-- <target name="javacc-contrib-queryparser" depends="init,javacc-check" if="javacc.present">- <ant target="javacc"- dir="contrib/queryparser"- antfile="build.xml"- />- </target>+ <target name="javacc" depends="init,javacc-check,javacc-contrib-demo"/><target name="javacc-contrib-demo" depends="init,javacc-check" if="javacc.present"><ant target="javacc"diff --git a/lucene/contrib/CHANGES.txt b/lucene/contrib/CHANGES.txtindex e496228670a..b26d5753793 100644--- a/lucene/contrib/CHANGES.txt+++ b/lucene/contrib/CHANGES.txt@@ -11,6 +11,8 @@ Build* LUCENE-2995: Moved contrib/spellchecker into modules/suggest.+ * LUCENE-3285: Moved contrib/queryparser into modules/queryparser+New Features* LUCENE-2604: Added RegexpQuery support to contrib/queryparser.diff --git a/lucene/contrib/queryparser/build.xml b/lucene/contrib/queryparser/build.xmldeleted file mode 100644index ab7e453f4ad..00000000000--- a/lucene/contrib/queryparser/build.xml+++ /dev/null@@ -1,111 +0,0 @@-<?xml version="1.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.- -->--<project name="queryparser-contrib" default="default">-- <description>- Flexible Query Parser- </description>-- <import file="../contrib-build.xml"/>-- <module-uptodate name="queryparser" property="queryparser.uptodate" classpath.property="queryparser.jar"/>-- <path id="classpath">- <pathelement path="${queryparser.jar}"/>- <path refid="base.classpath"/>- </path>-- <target name="compile-core" depends="javacc-notice,build-queryparser,common.compile-core"/>-- <!--- NOTE: see the README.javacc for details on how to fully regenerate the parser- -->- <target name="javacc" depends="javacc-flexible"/>-- <target name="javacc-flexible" depends="javacc-check">- <delete>- <fileset dir="src/java/org/apache/lucene/queryParser/standard/parser" includes="*.java">- <containsregexp expression="Generated.*By.*JavaCC"/>- </fileset>- </delete>- <invoke-javacc target="src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.jj"- outputDir="src/java/org/apache/lucene/queryParser/standard/parser"- />- <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"- match="public class ParseException extends Exception"- replace="public class ParseException extends QueryNodeParseException"- flags="g"- byline="false"/>- <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"- match="package org.apache.lucene.queryParser.standard.parser;"- replace="package org.apache.lucene.queryParser.standard.parser;${line.separator}-${line.separator}-import org.apache.lucene.messages.Message;${line.separator}-import org.apache.lucene.messages.MessageImpl;${line.separator}-import org.apache.lucene.queryParser.core.*;${line.separator}-import org.apache.lucene.queryParser.core.messages.*;"- flags="g"- byline="false"/>- <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"- match="^ public ParseException\(Token currentTokenVal.*$(\s\s[^}].*\n)* \}"- replace=" public ParseException(Token currentTokenVal,${line.separator}- int[][] expectedTokenSequencesVal, String[] tokenImageVal) {${line.separator}- super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, initialise(${line.separator}- currentTokenVal, expectedTokenSequencesVal, tokenImageVal)));${line.separator}- this.currentToken = currentTokenVal;${line.separator}- this.expectedTokenSequences = expectedTokenSequencesVal;${line.separator}- this.tokenImage = tokenImageVal;${line.separator}- }"- flags="gm"- byline="false"/>- <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"- match="^ public ParseException\(String message.*$(\s\s[^}].*\n)* \}"- replace=" public ParseException(Message message) {${line.separator}- super(message);${line.separator}- }"- flags="gm"- byline="false"/>- <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"- match="^ public ParseException\(\).*$(\s\s[^}].*\n)* \}"- replace=" public ParseException() {${line.separator}- super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, "Error"));${line.separator}- }"- flags="gm"- byline="false"/>- <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"- match="^ public String getMessage\(\).*$(\s\s\s\s[^}].*\n)* \}"- replace=" private static String initialise(Token currentToken, int[][] expectedTokenSequences, String[] tokenImage) {${line.separator}- String eol = System.getProperty("line.separator", "\n");"- flags="gm"- byline="false"/>- <replaceregexp file="src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java"- match="\s*protected String add_escapes.*"- replace=" static private String add_escapes(String str) {"- flags="g"- byline="true"/>- </target>-- <target name="build-queryparser" unless="queryparser.uptodate">- <echo>QueryParser Contrib building dependency modules/queryparser</echo>- <subant target="default">- <fileset dir="${common.dir}/../modules/queryparser" includes="build.xml"/>- </subant>- </target>-</project>diff --git a/lucene/contrib/xml-query-parser/build.xml b/lucene/contrib/xml-query-parser/build.xmlindex 63391bed3e0..c1965bf000b 100644--- a/lucene/contrib/xml-query-parser/build.xml+++ b/lucene/contrib/xml-query-parser/build.xml@@ -95,7 +95,7 @@</subant></target>- <target name="build-queries" unless="queryparser.uptodate">+ <target name="build-queries" unless="queries.uptodate"><echo>XML QueryParser building dependency modules/queries</echo><subant target="default"><fileset dir="${common.dir}/../modules/queries" includes="build.xml"/>diff --git a/modules/queryparser/build.xml b/modules/queryparser/build.xmlindex ff34f9c40de..c75166905b5 100644--- a/modules/queryparser/build.xml+++ b/modules/queryparser/build.xml@@ -28,21 +28,15 @@<target name="dist-maven" depends="jar-core,javadocs,contrib-build.dist-maven"/>- <target name="clean-javacc">- <delete>- <fileset dir="src/java/org/apache/lucene/queryparser/classic" includes="*.java">- <containsregexp expression="Generated.*By.*JavaCC"/>- </fileset>- <fileset dir="src/java/org/apache/lucene/queryparser/surround/parser" includes="*.java">- <containsregexp expression="Generated.*By.*JavaCC"/>- </fileset>- </delete>- </target>-- <target name="javacc" depends="init,javacc-check,clean-javacc,javacc-QueryParser,javacc-surround"/>+ <target name="javacc" depends="init,javacc-check,javacc-QueryParser,javacc-surround,javacc-flexible"/><target name="javacc-QueryParser" depends="init,javacc-check" if="javacc.present"><sequential>+ <delete>+ <fileset dir="src/java/org/apache/lucene/queryparser/classic" includes="*.java">+ <containsregexp expression="Generated.*By.*JavaCC"/>+ </fileset>+ </delete><invoke-javacc target="src/java/org/apache/lucene/queryparser/classic/QueryParser.jj"outputDir="src/java/org/apache/lucene/queryparser/classic"/>@@ -60,9 +54,77 @@</target><target name="javacc-surround" depends="javacc-check" description="generate surround query parser from jj (requires javacc 4.1">+ <delete>+ <fileset dir="src/java/org/apache/lucene/queryparser/surround/parser" includes="*.java">+ <containsregexp expression="Generated.*By.*JavaCC"/>+ </fileset>+ </delete><invoke-javacc target="src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj"outputDir="src/java/org/apache/lucene/queryparser/surround/parser"/></target>+ <target name="javacc-flexible" depends="javacc-check">+ <delete>+ <fileset dir="src/java/org/apache/lucene/queryparser/flexible/standard/parser" includes="*.java">+ <containsregexp expression="Generated.*By.*JavaCC"/>+ </fileset>+ </delete>+ <invoke-javacc target="src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.jj"+ outputDir="src/java/org/apache/lucene/queryparser/flexible/standard/parser"+ />+ <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"+ match="public class ParseException extends Exception"+ replace="public class ParseException extends QueryNodeParseException"+ flags="g"+ byline="false"/>+ <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"+ match="package org.apache.lucene.queryparser.flexible.standard.parser;"+ replace="package org.apache.lucene.queryparser.flexible.standard.parser;${line.separator}+${line.separator}+import org.apache.lucene.messages.Message;${line.separator}+import org.apache.lucene.messages.MessageImpl;${line.separator}+import org.apache.lucene.queryparser.flexible.core.*;${line.separator}+import org.apache.lucene.queryparser.flexible.core.messages.*;"+ flags="g"+ byline="false"/>+ <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"+ match="^ public ParseException\(Token currentTokenVal.*$(\s\s[^}].*\n)* \}"+ replace=" public ParseException(Token currentTokenVal,${line.separator}+ int[][] expectedTokenSequencesVal, String[] tokenImageVal) {${line.separator}+ super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, initialise(${line.separator}+ currentTokenVal, expectedTokenSequencesVal, tokenImageVal)));${line.separator}+ this.currentToken = currentTokenVal;${line.separator}+ this.expectedTokenSequences = expectedTokenSequencesVal;${line.separator}+ this.tokenImage = tokenImageVal;${line.separator}+ }"+ flags="gm"+ byline="false"/>+ <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"+ match="^ public ParseException\(String message.*$(\s\s[^}].*\n)* \}"+ replace=" public ParseException(Message message) {${line.separator}+ super(message);${line.separator}+ }"+ flags="gm"+ byline="false"/>+ <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"+ match="^ public ParseException\(\).*$(\s\s[^}].*\n)* \}"+ replace=" public ParseException() {${line.separator}+ super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, "Error"));${line.separator}+ }"+ flags="gm"+ byline="false"/>+ <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"+ match="^ public String getMessage\(\).*$(\s\s\s\s[^}].*\n)* \}"+ replace=" private static String initialise(Token currentToken, int[][] expectedTokenSequences, String[] tokenImage) {${line.separator}+ String eol = System.getProperty("line.separator", "\n");"+ flags="gm"+ byline="false"/>+ <replaceregexp file="src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java"+ match="\s*protected String add_escapes.*"+ replace=" static private String add_escapes(String str) {"+ flags="g"+ byline="true"/>+ </target>+</project>diff --git a/lucene/contrib/queryparser/README.javacc b/modules/queryparser/docs/flexible/README.javaccsimilarity index 100%rename from lucene/contrib/queryparser/README.javaccrename to modules/queryparser/docs/flexible/README.javaccdiff --git a/lucene/contrib/queryparser/README.txt b/modules/queryparser/docs/surround/README.txtsimilarity index 100%rename from lucene/contrib/queryparser/README.txtrename to modules/queryparser/docs/surround/README.txtdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeError.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeError.javasimilarity index 97%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeError.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeError.javaindex cb3e77e25c6..636567fc90b 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeError.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeError.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core;+package org.apache.lucene.queryparser.flexible.core;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeException.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeException.javasimilarity index 91%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeException.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeException.javaindex 22db1d5b37a..2e7ceec3ba8 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeException.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeException.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core;+package org.apache.lucene.queryparser.flexible.core;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -23,8 +23,8 @@ import org.apache.lucene.messages.Message;import org.apache.lucene.messages.MessageImpl;import org.apache.lucene.messages.NLS;import org.apache.lucene.messages.NLSException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** <p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeParseException.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeParseException.javasimilarity index 91%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeParseException.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeParseException.javaindex a628574eaf4..24c8e2a2d60 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryNodeParseException.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryNodeParseException.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core;+package org.apache.lucene.queryparser.flexible.core;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,9 +19,9 @@ package org.apache.lucene.queryParser.core;import org.apache.lucene.messages.Message;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** This should be thrown when an exception happens during the query parsing fromdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryParserHelper.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryParserHelper.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryParserHelper.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryParserHelper.javaindex 626d8a56ce2..1cd2f5ddf4e 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/QueryParserHelper.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/QueryParserHelper.java@@ -1,4 +1,10 @@-package org.apache.lucene.queryParser.core;+package org.apache.lucene.queryparser.flexible.core;++import org.apache.lucene.queryparser.flexible.core.builders.QueryBuilder;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,12 +23,7 @@ package org.apache.lucene.queryParser.core;* limitations under the License.*/-import org.apache.lucene.queryParser.core.builders.QueryBuilder;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessor;-+/*** <p>* This class is a helper for the query parser framework, it does all the threediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/QueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryBuilder.javasimilarity index 86%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/QueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryBuilder.javaindex 509833f4076..445f8e59e08 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/QueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryBuilder.java@@ -1,4 +1,7 @@-package org.apache.lucene.queryParser.core.builders;+package org.apache.lucene.queryparser.flexible.core.builders;++import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,8 +20,6 @@ package org.apache.lucene.queryParser.core.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.QueryNode;/*** This interface is used by implementors classes that builds some kind ofdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/QueryTreeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryTreeBuilder.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/QueryTreeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryTreeBuilder.javaindex fe20a8452bb..f557a2931d9 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/QueryTreeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryTreeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.builders;+package org.apache.lucene.queryparser.flexible.core.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -21,11 +21,11 @@ import java.util.HashMap;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.FieldableNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.parser.EscapeQuerySyntaxImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl;/*** This class should be used when there is a builder for each type of node.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/package.htmlsimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/package.htmlindex d85cebbe9cb..dde8a212a17 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/builders/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/package.html@@ -26,7 +26,7 @@ Contains the necessary classes to implement query builders<h2>Query Parser Builders</h2><p>The package <tt>org.apache.lucene.queryParser.builders</tt> contains the interface that-builders must implement, it also contain a utility {@link org.apache.lucene.queryParser.core.builders.QueryTreeBuilder}, which walks the tree+builders must implement, it also contain a utility {@link org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder}, which walks the treeand call the Builder for each node in the tree.Builder normally convert QueryNode Object into a Lucene Query Object,and normally it's a one-to-one mapping class.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/AbstractQueryConfig.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/AbstractQueryConfig.javasimilarity index 98%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/AbstractQueryConfig.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/AbstractQueryConfig.javaindex 2ddf8b56b87..a2f4f5aee4f 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/AbstractQueryConfig.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/AbstractQueryConfig.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.config;+package org.apache.lucene.queryparser.flexible.core.config;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/ConfigurationKey.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/ConfigurationKey.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/ConfigurationKey.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/ConfigurationKey.javaindex 758eedfd1a1..ac8138d7d51 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/ConfigurationKey.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/ConfigurationKey.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.config;+package org.apache.lucene.queryparser.flexible.core.config;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/FieldConfig.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/FieldConfig.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/FieldConfig.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/FieldConfig.javaindex b7060b4526d..b59c5794df6 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/FieldConfig.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/FieldConfig.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.config;+package org.apache.lucene.queryparser.flexible.core.config;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/FieldConfigListener.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/FieldConfigListener.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/FieldConfigListener.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/FieldConfigListener.javaindex f255027d0f6..a1f791109c5 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/FieldConfigListener.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/FieldConfigListener.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.config;+package org.apache.lucene.queryparser.flexible.core.config;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/QueryConfigHandler.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/QueryConfigHandler.javasimilarity index 92%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/QueryConfigHandler.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/QueryConfigHandler.javaindex bcc423a9f28..b60bdbe7fac 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/QueryConfigHandler.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/QueryConfigHandler.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.config;+package org.apache.lucene.queryparser.flexible.core.config;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,8 +19,8 @@ package org.apache.lucene.queryParser.core.config;import java.util.LinkedList;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessor;-import org.apache.lucene.queryParser.core.util.StringUtils;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor;+import org.apache.lucene.queryparser.flexible.core.util.StringUtils;/*** This class can be used to hold any query configuration and no fielddiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/package.htmlsimilarity index 69%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/package.htmlindex 4efcfe272bf..14407656f23 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/config/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/package.html@@ -25,19 +25,19 @@ Contains the base classes used to configure the query processing<h2>Query Configuration Interfaces</h2><p>-The package <tt>org.apache.lucene.queryParser.config</tt> contains query configuration handler+The package <tt>org.apache.lucene.queryparser.flexible.config</tt> contains query configuration handlerabstract class that all config handlers should extend.</p><p>-See {@link org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler} for a reference+See {@link org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler} for a referenceimplementation.</p><p>-The {@link org.apache.lucene.queryParser.core.config.QueryConfigHandler} and {@link org.apache.lucene.queryParser.core.config.FieldConfig} are used in the processors to access config+The {@link org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler} and {@link org.apache.lucene.queryparser.flexible.core.config.FieldConfig} are used in the processors to access configinformation in a flexible and independent way.-See {@link org.apache.lucene.queryParser.standard.processors.ParametricRangeQueryNodeProcessor} for a+See {@link org.apache.lucene.queryparser.flexible.standard.processors.ParametricRangeQueryNodeProcessor} for areference implementation.</p></body>-</html+</html>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/messages/QueryParserMessages.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/messages/QueryParserMessages.javasimilarity index 97%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/messages/QueryParserMessages.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/messages/QueryParserMessages.javaindex 4e069caf374..de06b304059 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/messages/QueryParserMessages.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/messages/QueryParserMessages.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.messages;+package org.apache.lucene.queryparser.flexible.core.messages;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/messages/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/messages/package.htmlsimilarity index 100%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/messages/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/messages/package.htmldiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/AndQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/AndQueryNode.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/AndQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/AndQueryNode.javaindex 421be88ee33..430395b4083 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/AndQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/AndQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,10 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import java.util.List;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;/*** A {@link AndQueryNode} represents an AND boolean operation performed on adiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/AnyQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/AnyQueryNode.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/AnyQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/AnyQueryNode.javaindex cd6d7e25395..22ad5b4e55c 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/AnyQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/AnyQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,10 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import java.util.List;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;/*** A {@link AnyQueryNode} represents an ANY operator performed on a list ofdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/BooleanQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/BooleanQueryNode.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/BooleanQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/BooleanQueryNode.javaindex 56cd2203cda..3b6091965d1 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/BooleanQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/BooleanQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,10 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import java.util.List;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;/*** A {@link BooleanQueryNode} represents a list of elements which do not have andiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/BoostQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/BoostQueryNode.javasimilarity index 89%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/BoostQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/BoostQueryNode.javaindex cd8620d782b..eb0bc62a369 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/BoostQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/BoostQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,10 +20,10 @@ package org.apache.lucene.queryParser.core.nodes;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link BoostQueryNode} boosts the QueryNode tree which is under this node.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/DeletedQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/DeletedQueryNode.javasimilarity index 86%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/DeletedQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/DeletedQueryNode.javaindex cb859f65c7e..f29201b21e5 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/DeletedQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/DeletedQueryNode.java@@ -1,4 +1,6 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;++import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,8 +19,7 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;-import org.apache.lucene.queryParser.core.processors.RemoveDeletedQueryNodesProcessor;+import org.apache.lucene.queryparser.flexible.core.processors.RemoveDeletedQueryNodesProcessor;/*** A {@link DeletedQueryNode} represents a node that was deleted from the querydiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldQueryNode.javasimilarity index 92%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldQueryNode.javaindex b1d3b7b5bdf..e276d3b4d4e 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import java.util.Locale;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax.Type;/*** A {@link FieldQueryNode} represents a element that contains field/text tuple@@ -73,11 +73,11 @@ public class FieldQueryNode extends QueryNodeImpl implements FieldValuePairQuery}protected CharSequence getTermEscaped(EscapeQuerySyntax escaper) {- return escaper.escape(this.text, Locale.getDefault(), Type.NORMAL);+ return escaper.escape(this.text, Locale.getDefault(), EscapeQuerySyntax.Type.NORMAL);}protected CharSequence getTermEscapeQuoted(EscapeQuerySyntax escaper) {- return escaper.escape(this.text, Locale.getDefault(), Type.STRING);+ return escaper.escape(this.text, Locale.getDefault(), EscapeQuerySyntax.Type.STRING);}public CharSequence toQueryString(EscapeQuerySyntax escaper) {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldValuePairQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldValuePairQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldValuePairQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldValuePairQueryNode.javaindex f73b42b193e..87adff458d3 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldValuePairQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldValuePairQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldableNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldableNode.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldableNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldableNode.javaindex ca666263a9d..f069215f275 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FieldableNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FieldableNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FuzzyQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FuzzyQueryNode.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FuzzyQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FuzzyQueryNode.javaindex e86b3ca0637..9a3ffcd4672 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/FuzzyQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/FuzzyQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link FuzzyQueryNode} represents a element that containsdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/GroupQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/GroupQueryNode.javasimilarity index 89%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/GroupQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/GroupQueryNode.javaindex dcf1788fa43..eef196370f2 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/GroupQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/GroupQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -21,9 +21,9 @@ import java.util.ArrayList;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link GroupQueryNode} represents a location where the original user typeddiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/MatchAllDocsQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/MatchAllDocsQueryNode.javasimilarity index 91%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/MatchAllDocsQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/MatchAllDocsQueryNode.javaindex 45507250c48..ffcf8a7939e 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/MatchAllDocsQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/MatchAllDocsQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link MatchAllDocsQueryNode} indicates that a query node tree or subtreediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/MatchNoDocsQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/MatchNoDocsQueryNode.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/MatchNoDocsQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/MatchNoDocsQueryNode.javaindex c6147f3450c..90e8ced72b9 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/MatchNoDocsQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/MatchNoDocsQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ModifierQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ModifierQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ModifierQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ModifierQueryNode.javaindex cd35224bd81..c6747ac23b5 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ModifierQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ModifierQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -21,9 +21,9 @@ import java.util.ArrayList;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;/*** A {@link ModifierQueryNode} indicates the modifier value (+,-,?,NONE) fordiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/NoTokenFoundQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/NoTokenFoundQueryNode.javasimilarity index 91%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/NoTokenFoundQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/NoTokenFoundQueryNode.javaindex 19083fe8682..b5e503a0c59 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/NoTokenFoundQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/NoTokenFoundQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link NoTokenFoundQueryNode} is used if a term is convert into no tokensdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/NumberQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/NumberQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/NumberQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/NumberQueryNode.javaindex 847d78f1652..ce94f158fe8 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/NumberQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/NumberQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/OpaqueQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/OpaqueQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/OpaqueQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/OpaqueQueryNode.javaindex 68ad4d4fafd..4edcf89c406 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/OpaqueQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/OpaqueQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link OpaqueQueryNode} is used for specify values that are not supposed todiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/OrQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/OrQueryNode.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/OrQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/OrQueryNode.javaindex eeb58695b41..eed480c64e2 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/OrQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/OrQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,7 +20,7 @@ package org.apache.lucene.queryParser.core.nodes;import java.util.Iterator;import java.util.List;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link OrQueryNode} represents an OR boolean operation performed on a listdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ParametricQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ParametricQueryNode.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ParametricQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ParametricQueryNode.javaindex ce5cff6b819..5f02007258d 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ParametricQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ParametricQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link ParametricQueryNode} represents LE, LT, GE, GT, EQ, NE query.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ParametricRangeQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ParametricRangeQueryNode.javasimilarity index 82%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ParametricRangeQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ParametricRangeQueryNode.javaindex 4580d84ed2d..24e070aa189 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ParametricRangeQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ParametricRangeQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import java.util.List;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode.CompareOperator;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;/*** A {@link ParametricRangeQueryNode} represents LE, LT, GE, GT, EQ, NE query.@@ -32,16 +32,16 @@ public class ParametricRangeQueryNode extends QueryNodeImpl implementspublic ParametricRangeQueryNode(ParametricQueryNode lowerBound,ParametricQueryNode upperBound) {- if (upperBound.getOperator() != CompareOperator.LE- && upperBound.getOperator() != CompareOperator.LT) {+ if (upperBound.getOperator() != ParametricQueryNode.CompareOperator.LE+ && upperBound.getOperator() != ParametricQueryNode.CompareOperator.LT) {throw new IllegalArgumentException("upper bound should have "- + CompareOperator.LE + " or " + CompareOperator.LT);+ + ParametricQueryNode.CompareOperator.LE + " or " + ParametricQueryNode.CompareOperator.LT);}- if (lowerBound.getOperator() != CompareOperator.GE- && lowerBound.getOperator() != CompareOperator.GT) {+ if (lowerBound.getOperator() != ParametricQueryNode.CompareOperator.GE+ && lowerBound.getOperator() != ParametricQueryNode.CompareOperator.GT) {throw new IllegalArgumentException("lower bound should have "- + CompareOperator.GE + " or " + CompareOperator.GT);+ + ParametricQueryNode.CompareOperator.GE + " or " + ParametricQueryNode.CompareOperator.GT);}if (upperBound.getField() != lowerBound.getField()diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/PathQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PathQueryNode.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/PathQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PathQueryNode.javaindex dfa3f7a775f..ea89768808d 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/PathQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PathQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -21,8 +21,8 @@ import java.util.ArrayList;import java.util.List;import java.util.Locale;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax.Type;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax.Type;/*** A {@link PathQueryNode} is used to store queries likediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/PhraseSlopQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PhraseSlopQueryNode.javasimilarity index 86%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/PhraseSlopQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PhraseSlopQueryNode.javaindex 46561f1afe5..175113997e1 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/PhraseSlopQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/PhraseSlopQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,11 +18,11 @@ package org.apache.lucene.queryParser.core.nodes;*/import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;public class PhraseSlopQueryNode extends QueryNodeImpl implements FieldableNode {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ProximityQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ProximityQueryNode.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ProximityQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ProximityQueryNode.javaindex 80fbcde5828..9929d94d9c7 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ProximityQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ProximityQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,9 +20,9 @@ package org.apache.lucene.queryParser.core.nodes;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;/*** A {@link ProximityQueryNode} represents a query where the terms should meetdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNode.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNode.javaindex dcb980562e7..1e2af9ed118 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,11 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import java.util.List;import java.util.Map;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;/*** A {@link QueryNode} is a interface implemented by all nodes on a QueryNodediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QueryNodeImpl.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNodeImpl.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QueryNodeImpl.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNodeImpl.javaindex dcc4811febc..fba4bdc9d5e 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QueryNodeImpl.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNodeImpl.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -24,8 +24,8 @@ import java.util.Map;import java.util.ResourceBundle;import org.apache.lucene.messages.NLS;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.util.StringUtils;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.util.StringUtils;/*** A {@link QueryNodeImpl} is the default implementation of the interface@@ -212,7 +212,7 @@ public abstract class QueryNodeImpl implements QueryNode, Cloneable {** For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>*- * @see org.apache.lucene.queryParser.core.nodes.QueryNode#toString()+ * @see org.apache.lucene.queryparser.flexible.core.nodes.QueryNode#toString()*/@Overridepublic String toString() {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QuotedFieldQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QuotedFieldQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QuotedFieldQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QuotedFieldQueryNode.javaindex 7c39f57abad..9e2f7cfdfe1 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QuotedFieldQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QuotedFieldQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.core.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link QuotedFieldQueryNode} represents phrase query. Example:diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/SlopQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/SlopQueryNode.javasimilarity index 91%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/SlopQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/SlopQueryNode.javaindex fe87560025e..e47912b4712 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/SlopQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/SlopQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,9 +18,9 @@ package org.apache.lucene.queryParser.core.nodes;*/import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;/*** A {@link SlopQueryNode} represents phrase query with a slop.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TextableQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/TextableQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TextableQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/TextableQueryNode.javaindex d77bdfa1f8d..fa05986f0b1 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TextableQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/TextableQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TokenizedPhraseQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/TokenizedPhraseQueryNode.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TokenizedPhraseQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/TokenizedPhraseQueryNode.javaindex 0529d73a8dc..9a0910532e8 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TokenizedPhraseQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/TokenizedPhraseQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,7 +19,7 @@ package org.apache.lucene.queryParser.core.nodes;import java.util.List;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link TokenizedPhraseQueryNode} represents a node created by a code thatdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ValueQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ValueQueryNode.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ValueQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ValueQueryNode.javaindex f219f604142..c2324245d00 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ValueQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ValueQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/package.htmlsimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/package.htmlindex 6d9b507d265..501e848fc63 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/package.html@@ -26,17 +26,17 @@ Contains query nodes that are commonly used by query parser implementations<h2>Query Nodes</h2><p>The package <tt>org.apache.lucene.queryParser.nodes</tt> contains all the basic query nodes. The interface-that represents a query node is {@link org.apache.lucene.queryParser.core.nodes.QueryNode}.+that represents a query node is {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}.</p><p>-{@link org.apache.lucene.queryParser.core.nodes.QueryNode}s are used by the text parser to create a syntax tree.+{@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}s are used by the text parser to create a syntax tree.These nodes are designed to be used by UI or other text parsers.-The default Lucene text parser is {@link org.apache.lucene.queryParser.standard.parser.StandardSyntaxParser},+The default Lucene text parser is {@link org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser},it implements Lucene's standard syntax.</p><p>-{@link org.apache.lucene.queryParser.core.nodes.QueryNode} interface should be implemented by all query nodes,-the class {@link org.apache.lucene.queryParser.core.nodes.QueryNodeImpl} implements {@link org.apache.lucene.queryParser.core.nodes.QueryNode} and is extended+{@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} interface should be implemented by all query nodes,+the class {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl} implements {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} and is extendedby all current query node implementations.</p><p>@@ -68,7 +68,7 @@ Grouping nodes:Leaf Nodes:<ul><li>FieldQueryNode - field/value node</li>-<li>PathQueryNode - {@link org.apache.lucene.queryParser.core.nodes.QueryNode} object used with path-like queries</li>+<li>PathQueryNode - {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} object used with path-like queries</li><li>OpaqueQueryNode - Used as for part of the query that can be parsed by other parsers. schema/value</li><li>ParametricQueryNode - used for parametric field [>=|<=|=|<|>] value</li><li>PrefixWildcardQueryNode - non-phrase wildcard query</li>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/package.htmlsimilarity index 74%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/package.htmlindex 7a7dfcc225e..4480b65ec6c 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/package.html@@ -35,23 +35,23 @@ A query parser is divided in at least 2 phases, text parsing and query building,<h3>First Phase: Text Parsing</h3><p>-The text parsing phase is performed by a text parser, which implements {@link org.apache.lucene.queryParser.core.parser.SyntaxParser} interface.-A text parser is responsible to get a query string and convert it to a {@link org.apache.lucene.queryParser.core.nodes.QueryNode} tree,+The text parsing phase is performed by a text parser, which implements {@link org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser} interface.+A text parser is responsible to get a query string and convert it to a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree,which is an object structure that represents the elements defined in the query string.</p><h3>Second (optional) Phase: Query Processing</h3><p>-The query processing phase is performed by a query processor, which implements {@link org.apache.lucene.queryParser.core.processors.QueryNodeProcessor}.-A query processor is responsible to perform any processing on a {@link org.apache.lucene.queryParser.core.nodes.QueryNode} tree. This phase-is optional and is used only if an extra processing, validation, query expansion, etc needs to be performed in a {@link org.apache.lucene.queryParser.core.nodes.QueryNode} tree.-The {@link org.apache.lucene.queryParser.core.nodes.QueryNode} tree can be either be generated by a text parser or programmatically created.+The query processing phase is performed by a query processor, which implements {@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor}.+A query processor is responsible to perform any processing on a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree. This phase+is optional and is used only if an extra processing, validation, query expansion, etc needs to be performed in a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree.+The {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree can be either be generated by a text parser or programmatically created.</p><h3>Third Phase: Query Building</h3><p>-The query building phase is performed by a query builder, which implements {@link org.apache.lucene.queryParser.core.builders.QueryBuilder}.-A query builder is responsible to convert a {@link org.apache.lucene.queryParser.core.nodes.QueryNode} tree into an arbitrary object, which+The query building phase is performed by a query builder, which implements {@link org.apache.lucene.queryparser.flexible.core.builders.QueryBuilder}.+A query builder is responsible to convert a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree into an arbitrary object, whichis usually used to be executed against a search index.</p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/EscapeQuerySyntax.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/EscapeQuerySyntax.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/EscapeQuerySyntax.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/EscapeQuerySyntax.javaindex be03a6af66c..ddbd126b6eb 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/EscapeQuerySyntax.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/EscapeQuerySyntax.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.parser;+package org.apache.lucene.queryparser.flexible.core.parser;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/SyntaxParser.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/SyntaxParser.javasimilarity index 85%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/SyntaxParser.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/SyntaxParser.javaindex fde61a1a7b6..29d4a98bc43 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/SyntaxParser.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/SyntaxParser.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.parser;+package org.apache.lucene.queryparser.flexible.core.parser;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,8 +17,8 @@ package org.apache.lucene.queryParser.core.parser;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** A parser needs to implement {@link SyntaxParser} interfacediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/package.htmlsimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/package.htmlindex 3202d8dfc76..4f91c0c8712 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/parser/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/parser/package.html@@ -25,7 +25,7 @@ Contains the necessary interfaces to implement text parsers<h2>Parser</h2><p>-The package <tt>org.apache.lucene.queryParser.parser</tt> contains interfaces+The package <tt>org.apache.lucene.queryparser.flexible.parser</tt> contains interfacesthat should be implemented by the parsers.Parsers produce QueryNode Trees from a string object.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/NoChildOptimizationQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/NoChildOptimizationQueryNodeProcessor.javasimilarity index 79%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/NoChildOptimizationQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/NoChildOptimizationQueryNodeProcessor.javaindex c08a7a86217..0aaee467ccc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/NoChildOptimizationQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/NoChildOptimizationQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.processors;+package org.apache.lucene.queryparser.flexible.core.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,14 +19,8 @@ package org.apache.lucene.queryParser.core.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.BoostQueryNode;-import org.apache.lucene.queryParser.core.nodes.DeletedQueryNode;-import org.apache.lucene.queryParser.core.nodes.MatchNoDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.TokenizedPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.*;/*** <p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessor.javasimilarity index 90%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessor.javaindex b58fbcdbed6..ad47cdc5118 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.processors;+package org.apache.lucene.queryparser.flexible.core.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,9 @@ package org.apache.lucene.queryParser.core.processors;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** <p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessorImpl.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessorImpl.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessorImpl.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessorImpl.javaindex 3a9d9bb0c1c..a34acf5379f 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessorImpl.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessorImpl.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.processors;+package org.apache.lucene.queryparser.flexible.core.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,9 +20,9 @@ package org.apache.lucene.queryParser.core.processors;import java.util.ArrayList;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** <p>@@ -69,7 +69,7 @@ import org.apache.lucene.queryParser.core.nodes.QueryNode;* postProcessNode( a )* </pre>*- * @see org.apache.lucene.queryParser.core.processors.QueryNodeProcessor+ * @see org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor*/public abstract class QueryNodeProcessorImpl implements QueryNodeProcessor {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessorPipeline.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessorPipeline.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessorPipeline.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessorPipeline.javaindex 68d3638f8e1..dee780cc33a 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/QueryNodeProcessorPipeline.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessorPipeline.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.processors;+package org.apache.lucene.queryparser.flexible.core.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,9 +19,9 @@ package org.apache.lucene.queryParser.core.processors;import java.util.*;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** A {@link QueryNodeProcessorPipeline} class should be used to build a querydiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/RemoveDeletedQueryNodesProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/RemoveDeletedQueryNodesProcessor.javasimilarity index 88%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/RemoveDeletedQueryNodesProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/RemoveDeletedQueryNodesProcessor.javaindex dcb3335e60c..dd0933c1937 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/RemoveDeletedQueryNodesProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/RemoveDeletedQueryNodesProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.processors;+package org.apache.lucene.queryparser.flexible.core.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,10 +20,10 @@ package org.apache.lucene.queryParser.core.processors;import java.util.Iterator;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.DeletedQueryNode;-import org.apache.lucene.queryParser.core.nodes.MatchNoDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.DeletedQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.MatchNoDocsQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;/*** A {@link QueryNodeProcessorPipeline} class removes every instance ofdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/package.htmlsimilarity index 59%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/package.htmlindex ae599fd6026..67fe9732334 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/processors/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/package.html@@ -29,28 +29,28 @@ The package <tt>org.apache.lucene.queryParser.processors</tt> contains interfacethat should be implemented by every query node processor.</p><p>-The interface that every query node processor should implement is {@link org.apache.lucene.queryParser.core.processors.QueryNodeProcessor}.+The interface that every query node processor should implement is {@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor}.</p><p>-A query node processor should be used to process a {@link org.apache.lucene.queryParser.core.nodes.QueryNode} tree.-{@link org.apache.lucene.queryParser.core.nodes.QueryNode} trees can be programmatically created or generated by a-text parser. See {@link org.apache.lucene.queryParser.core.parser} for more details about text parsers.+A query node processor should be used to process a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree.+{@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} trees can be programmatically created or generated by a+text parser. See {@link org.apache.lucene.queryparser.flexible.core.parser} for more details about text parsers.</p><p>-A query node processor should be used to process a {@link org.apache.lucene.queryParser.core.nodes.QueryNode} tree.-{@link org.apache.lucene.queryParser.core.nodes.QueryNode} trees can be programmatically created or generated by a-text parser. See {@link org.apache.lucene.queryParser.core.parser} for more details about text parsers.+A query node processor should be used to process a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} tree.+{@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode} trees can be programmatically created or generated by a+text parser. See {@link org.apache.lucene.queryparser.flexible.core.parser} for more details about text parsers.</p><p>-A pipeline of processors can be assembled using {@link org.apache.lucene.queryParser.core.processors.QueryNodeProcessorPipeline}.+A pipeline of processors can be assembled using {@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline}.</p><p>-Implementors may want to extend {@link org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl}, which simplifies-the implementation, because it walks automatically the {@link org.apache.lucene.queryParser.core.nodes.QueryNode}. See-{@link org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl} for more details.+Implementors may want to extend {@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl}, which simplifies+the implementation, because it walks automatically the {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}. See+{@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl} for more details.</p></body>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/QueryNodeOperation.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.javasimilarity index 91%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/QueryNodeOperation.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.javaindex e43ac73f4c9..51b359d4e48 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/QueryNodeOperation.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.util;+package org.apache.lucene.queryparser.flexible.core.util;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,12 +17,13 @@ package org.apache.lucene.queryParser.core.util;* limitations under the License.*/+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.nodes.AndQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import java.util.ArrayList;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.nodes.AndQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;/*** Allow joining 2 QueryNode Trees, into one.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/StringUtils.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/StringUtils.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/StringUtils.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/StringUtils.javaindex fe0e51b9e8c..35cf53741ff 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/StringUtils.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/StringUtils.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.util;+package org.apache.lucene.queryparser.flexible.core.util;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/UnescapedCharSequence.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/UnescapedCharSequence.javasimilarity index 98%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/UnescapedCharSequence.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/UnescapedCharSequence.javaindex 1c64b443f2d..83e5be837dc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/UnescapedCharSequence.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/UnescapedCharSequence.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.util;+package org.apache.lucene.queryparser.flexible.core.util;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/package.htmlsimilarity index 100%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/util/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/package.htmldiff --git a/lucene/contrib/queryparser/src/java/overview.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/package.htmlsimilarity index 100%rename from lucene/contrib/queryparser/src/java/overview.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/package.htmldiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.javasimilarity index 84%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.javaindex 68d1bff7575..785ae1d31cb 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/PrecedenceQueryParser.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.precedence;+package org.apache.lucene.queryparser.flexible.precedence;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,9 +18,9 @@ package org.apache.lucene.queryParser.precedence;*/import org.apache.lucene.analysis.Analyzer;-import org.apache.lucene.queryParser.precedence.processors.PrecedenceQueryNodeProcessorPipeline;-import org.apache.lucene.queryParser.standard.StandardQueryParser;-import org.apache.lucene.queryParser.standard.processors.StandardQueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.standard.StandardQueryParser;+import org.apache.lucene.queryparser.flexible.standard.processors.StandardQueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.precedence.processors.PrecedenceQueryNodeProcessorPipeline;/*** <p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/package.htmlsimilarity index 92%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/package.htmlindex f15ebadb3ea..a9112ce4aed 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/package.html@@ -31,7 +31,7 @@ the boolean precedence. So, the query <a AND b OR c AND d> is parsed to<(+a +b) (+c +d)> instead of <+a +b +c +d>.</p><p>-Check {@link org.apache.lucene.queryParser.standard.StandardQueryParser} for more details about the+Check {@link org.apache.lucene.queryparser.flexible.standard.StandardQueryParser} for more details about thesupported syntax and query parser functionalities.</p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/BooleanModifiersQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/BooleanModifiersQueryNodeProcessor.javasimilarity index 74%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/BooleanModifiersQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/BooleanModifiersQueryNodeProcessor.javaindex 0a31fb640bc..754ba11b50d 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/BooleanModifiersQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/BooleanModifiersQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.precedence.processors;+package org.apache.lucene.queryparser.flexible.precedence.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,18 +20,14 @@ package org.apache.lucene.queryParser.precedence.processors;import java.util.ArrayList;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.AndQueryNode;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode.Modifier;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.precedence.PrecedenceQueryParser;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;+import org.apache.lucene.queryparser.flexible.precedence.PrecedenceQueryParser;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.*;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode.Modifier;/*** <p>@@ -81,7 +77,7 @@ public class BooleanModifiersQueryNodeProcessor extends QueryNodeProcessorImpl {List<QueryNode> children = node.getChildren();for (QueryNode child : children) {- this.childrenBuffer.add(applyModifier(child, Modifier.MOD_REQ));+ this.childrenBuffer.add(applyModifier(child, ModifierQueryNode.Modifier.MOD_REQ));}node.set(this.childrenBuffer);@@ -93,7 +89,7 @@ public class BooleanModifiersQueryNodeProcessor extends QueryNodeProcessorImpl {List<QueryNode> children = node.getChildren();for (QueryNode child : children) {- this.childrenBuffer.add(applyModifier(child, Modifier.MOD_REQ));+ this.childrenBuffer.add(applyModifier(child, ModifierQueryNode.Modifier.MOD_REQ));}node.set(this.childrenBuffer);@@ -104,7 +100,7 @@ public class BooleanModifiersQueryNodeProcessor extends QueryNodeProcessorImpl {}- private QueryNode applyModifier(QueryNode node, Modifier mod) {+ private QueryNode applyModifier(QueryNode node, ModifierQueryNode.Modifier mod) {// check if modifier is not already defined and is defaultif (!(node instanceof ModifierQueryNode)) {@@ -113,7 +109,7 @@ public class BooleanModifiersQueryNodeProcessor extends QueryNodeProcessorImpl {} else {ModifierQueryNode modNode = (ModifierQueryNode) node;- if (modNode.getModifier() == Modifier.MOD_NONE) {+ if (modNode.getModifier() == ModifierQueryNode.Modifier.MOD_NONE) {return new ModifierQueryNode(modNode.getChild(), mod);}diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/PrecedenceQueryNodeProcessorPipeline.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/PrecedenceQueryNodeProcessorPipeline.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/PrecedenceQueryNodeProcessorPipeline.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/PrecedenceQueryNodeProcessorPipeline.javaindex 724c150ed26..70be2a1da3e 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/PrecedenceQueryNodeProcessorPipeline.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/PrecedenceQueryNodeProcessorPipeline.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.precedence.processors;+package org.apache.lucene.queryparser.flexible.precedence.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.precedence.processors;* limitations under the License.*/-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.precedence.PrecedenceQueryParser;-import org.apache.lucene.queryParser.standard.processors.GroupQueryNodeProcessor;-import org.apache.lucene.queryParser.standard.processors.StandardQueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.precedence.PrecedenceQueryParser;+import org.apache.lucene.queryparser.flexible.standard.processors.GroupQueryNodeProcessor;+import org.apache.lucene.queryparser.flexible.standard.processors.StandardQueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;/*** <p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/package.htmlsimilarity index 55%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/package.htmlindex 3bef35582d1..dfaf3a93e12 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/precedence/processors/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/precedence/processors/package.html@@ -26,20 +26,20 @@ This package contains the processors used by Precedence Query Parser<h2>Lucene Precedence Query Parser Processors</h2><p>-This package contains the 2 {@link org.apache.lucene.queryParser.core.processors.QueryNodeProcessor}s used by-{@link org.apache.lucene.queryParser.precedence.PrecedenceQueryParser}.+This package contains the 2 {@link org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor}s used by+{@link org.apache.lucene.queryparser.flexible.precedence.PrecedenceQueryParser}.</p><p>-{@link org.apache.lucene.queryParser.precedence.processors.BooleanModifiersQueryNodeProcessor}: this processor-is used to apply {@link org.apache.lucene.queryParser.core.nodes.ModifierQueryNode}s on-{@link org.apache.lucene.queryParser.core.nodes.BooleanQueryNode} children according to the boolean type+{@link org.apache.lucene.queryparser.flexible.precedence.processors.BooleanModifiersQueryNodeProcessor}: this processor+is used to apply {@link org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode}s on+{@link org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode} children according to the boolean typeor the default operator.</p><p>-{@link org.apache.lucene.queryParser.precedence.processors.PrecedenceQueryNodeProcessorPipeline}: this-processor pipeline is used by {@link org.apache.lucene.queryParser.precedence.PrecedenceQueryParser}. It extends-{@link org.apache.lucene.queryParser.standard.processors.StandardQueryNodeProcessorPipeline} and rearrange-the pipeline so the boolean precedence is processed correctly. Check {@link org.apache.lucene.queryParser.precedence.processors.PrecedenceQueryNodeProcessorPipeline}+{@link org.apache.lucene.queryparser.flexible.precedence.processors.PrecedenceQueryNodeProcessorPipeline}: this+processor pipeline is used by {@link org.apache.lucene.queryparser.flexible.precedence.PrecedenceQueryParser}. It extends+{@link org.apache.lucene.queryparser.flexible.standard.processors.StandardQueryNodeProcessorPipeline} and rearrange+the pipeline so the boolean precedence is processed correctly. Check {@link org.apache.lucene.queryparser.flexible.precedence.processors.PrecedenceQueryNodeProcessorPipeline}for more details.</p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/QueryParserUtil.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/QueryParserUtil.javasimilarity index 98%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/QueryParserUtil.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/QueryParserUtil.javaindex 7b70f23b057..73aa6bb6082 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/QueryParserUtil.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/QueryParserUtil.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard;+package org.apache.lucene.queryparser.flexible.standard;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,7 +18,7 @@ package org.apache.lucene.queryParser.standard;*/import org.apache.lucene.analysis.Analyzer;-import org.apache.lucene.queryParser.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/StandardQueryParser.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/StandardQueryParser.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.javaindex 014addfda30..5ba0487a683 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/StandardQueryParser.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard;+package org.apache.lucene.queryparser.flexible.standard;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -24,17 +24,17 @@ import java.util.TooManyListenersException;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.document.DateTools;import org.apache.lucene.document.DateTools.Resolution;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryParserHelper;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.standard.builders.StandardQueryTreeBuilder;-import org.apache.lucene.queryParser.standard.config.FuzzyConfig;-import org.apache.lucene.queryParser.standard.config.NumericConfig;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;-import org.apache.lucene.queryParser.standard.parser.StandardSyntaxParser;-import org.apache.lucene.queryParser.standard.processors.StandardQueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryParserHelper;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.builders.StandardQueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.standard.config.FuzzyConfig;+import org.apache.lucene.queryparser.flexible.standard.config.NumericConfig;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator;+import org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser;+import org.apache.lucene.queryparser.flexible.standard.processors.StandardQueryNodeProcessorPipeline;import org.apache.lucene.search.FuzzyQuery;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.Query;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/AnyQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/AnyQueryNodeBuilder.javasimilarity index 83%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/AnyQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/AnyQueryNodeBuilder.javaindex 61e471e060e..1c08ea897a4 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/AnyQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/AnyQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,11 +20,11 @@ package org.apache.lucene.queryParser.standard.builders;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.AnyQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.AnyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/BooleanQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/BooleanQueryNodeBuilder.javasimilarity index 83%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/BooleanQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/BooleanQueryNodeBuilder.javaindex bcd2c2f8a6f..e3a419fb156 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/BooleanQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/BooleanQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,13 +20,13 @@ package org.apache.lucene.queryParser.standard.builders;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.parser.EscapeQuerySyntaxImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/BoostQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/BoostQueryNodeBuilder.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/BoostQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/BoostQueryNodeBuilder.javaindex 2bc1f959bda..ee86c964925 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/BoostQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/BoostQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.BoostQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.BoostQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.Query;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/DummyQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/DummyQueryNodeBuilder.javasimilarity index 80%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/DummyQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/DummyQueryNodeBuilder.javaindex 76284bafd13..5ec5f369a69 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/DummyQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/DummyQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,9 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.TermQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/FieldQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/FieldQueryNodeBuilder.javasimilarity index 82%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/FieldQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/FieldQueryNodeBuilder.javaindex 886e1a09467..738ecaeab3f 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/FieldQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/FieldQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,9 +18,9 @@ package org.apache.lucene.queryParser.standard.builders;*/import org.apache.lucene.index.Term;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.TermQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/FuzzyQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/FuzzyQueryNodeBuilder.javasimilarity index 83%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/FuzzyQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/FuzzyQueryNodeBuilder.javaindex 5ee87a88806..dfd3b3d9dce 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/FuzzyQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/FuzzyQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,9 +18,9 @@ package org.apache.lucene.queryParser.standard.builders;*/import org.apache.lucene.index.Term;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.FuzzyQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/GroupQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/GroupQueryNodeBuilder.javasimilarity index 79%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/GroupQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/GroupQueryNodeBuilder.javaindex f6c1e094c52..0e4ece90d2f 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/GroupQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/GroupQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.Query;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MatchAllDocsQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MatchAllDocsQueryNodeBuilder.javasimilarity index 77%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MatchAllDocsQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MatchAllDocsQueryNodeBuilder.javaindex 3b4cdb28a45..733728f7fb4 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MatchAllDocsQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MatchAllDocsQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,11 +18,11 @@ package org.apache.lucene.queryParser.standard.builders;*/import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.MatchAllDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.parser.EscapeQuerySyntaxImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.MatchAllDocsQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl;import org.apache.lucene.search.MatchAllDocsQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MatchNoDocsQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MatchNoDocsQueryNodeBuilder.javasimilarity index 77%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MatchNoDocsQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MatchNoDocsQueryNodeBuilder.javaindex fb2c95cbbcf..903c6fc8abc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MatchNoDocsQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MatchNoDocsQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,11 +18,11 @@ package org.apache.lucene.queryParser.standard.builders;*/import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.MatchNoDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.parser.EscapeQuerySyntaxImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.MatchNoDocsQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl;import org.apache.lucene.search.BooleanQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/ModifierQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/ModifierQueryNodeBuilder.javasimilarity index 79%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/ModifierQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/ModifierQueryNodeBuilder.javaindex 072f5cd5e7c..169d8bd45fa 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/ModifierQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/ModifierQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.Query;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MultiPhraseQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MultiPhraseQueryNodeBuilder.javasimilarity index 84%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MultiPhraseQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MultiPhraseQueryNodeBuilder.javaindex bfd291b0d7a..256bba6886b 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/MultiPhraseQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/MultiPhraseQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -22,11 +22,11 @@ import java.util.List;import java.util.TreeMap;import org.apache.lucene.index.Term;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.nodes.MultiPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.MultiPhraseQueryNode;import org.apache.lucene.search.MultiPhraseQuery;import org.apache.lucene.search.TermQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/NumericRangeQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/NumericRangeQueryNodeBuilder.javasimilarity index 83%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/NumericRangeQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/NumericRangeQueryNodeBuilder.javaindex 10cf888a723..6779c02f3e0 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/NumericRangeQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/NumericRangeQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,13 +19,13 @@ package org.apache.lucene.queryParser.standard.builders;import org.apache.lucene.document.NumericField;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.util.StringUtils;-import org.apache.lucene.queryParser.standard.config.NumericConfig;-import org.apache.lucene.queryParser.standard.nodes.NumericQueryNode;-import org.apache.lucene.queryParser.standard.nodes.NumericRangeQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.util.StringUtils;+import org.apache.lucene.queryparser.flexible.standard.config.NumericConfig;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericRangeQueryNode;import org.apache.lucene.search.NumericRangeQuery;public class NumericRangeQueryNodeBuilder implements StandardQueryBuilder {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/PhraseQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/PhraseQueryNodeBuilder.javasimilarity index 80%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/PhraseQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/PhraseQueryNodeBuilder.javaindex a1128ae2ae1..e5e2405e1ed 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/PhraseQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/PhraseQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,11 +19,11 @@ package org.apache.lucene.queryParser.standard.builders;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.TokenizedPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.TokenizedPhraseQueryNode;import org.apache.lucene.search.PhraseQuery;import org.apache.lucene.search.TermQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/PrefixWildcardQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/PrefixWildcardQueryNodeBuilder.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/PrefixWildcardQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/PrefixWildcardQueryNodeBuilder.javaindex 14a91493c76..f35f5e55640 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/PrefixWildcardQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/PrefixWildcardQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,10 +18,10 @@ package org.apache.lucene.queryParser.standard.builders;*/import org.apache.lucene.index.Term;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.nodes.PrefixWildcardQueryNode;-import org.apache.lucene.queryParser.standard.processors.MultiTermRewriteMethodProcessor;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.PrefixWildcardQueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.MultiTermRewriteMethodProcessor;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.PrefixQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/RangeQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/RangeQueryNodeBuilder.javasimilarity index 79%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/RangeQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/RangeQueryNodeBuilder.javaindex 7786fca566b..0cd68f85c9f 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/RangeQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/RangeQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,12 +17,12 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode.CompareOperator;-import org.apache.lucene.queryParser.standard.nodes.RangeQueryNode;-import org.apache.lucene.queryParser.standard.processors.MultiTermRewriteMethodProcessor;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode.CompareOperator;+import org.apache.lucene.queryparser.flexible.standard.nodes.RangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.MultiTermRewriteMethodProcessor;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.TermRangeQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/RegexpQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/RegexpQueryNodeBuilder.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/RegexpQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/RegexpQueryNodeBuilder.javaindex ff9bd4bdccd..796ce2bf758 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/RegexpQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/RegexpQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,10 +18,10 @@ package org.apache.lucene.queryParser.standard.builders;*/import org.apache.lucene.index.Term;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.nodes.RegexpQueryNode;-import org.apache.lucene.queryParser.standard.processors.MultiTermRewriteMethodProcessor;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.MultiTermRewriteMethodProcessor;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.RegexpQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/SlopQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/SlopQueryNodeBuilder.javasimilarity index 83%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/SlopQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/SlopQueryNodeBuilder.javaindex 07ed876a731..e580a0e65aa 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/SlopQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/SlopQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.SlopQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.SlopQueryNode;import org.apache.lucene.search.MultiPhraseQuery;import org.apache.lucene.search.PhraseQuery;import org.apache.lucene.search.Query;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardBooleanQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardBooleanQueryNodeBuilder.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardBooleanQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardBooleanQueryNodeBuilder.javaindex b2e898dc870..04616bed4bc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardBooleanQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardBooleanQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,14 +20,14 @@ package org.apache.lucene.queryParser.standard.builders;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode.Modifier;-import org.apache.lucene.queryParser.standard.nodes.StandardBooleanQueryNode;-import org.apache.lucene.queryParser.standard.parser.EscapeQuerySyntaxImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode.Modifier;+import org.apache.lucene.queryparser.flexible.standard.nodes.StandardBooleanQueryNode;+import org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardQueryBuilder.javasimilarity index 76%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardQueryBuilder.javaindex 3ee8a7569ed..6f8dca98bb6 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardQueryBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryBuilder;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryBuilder;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.Query;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardQueryTreeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardQueryTreeBuilder.javasimilarity index 61%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardQueryTreeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardQueryTreeBuilder.javaindex e2860c6e635..789a2fb5a38 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/StandardQueryTreeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/StandardQueryTreeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,28 +17,28 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.BoostQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.MatchAllDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.MatchNoDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.SlopQueryNode;-import org.apache.lucene.queryParser.core.nodes.TokenizedPhraseQueryNode;-import org.apache.lucene.queryParser.standard.nodes.MultiPhraseQueryNode;-import org.apache.lucene.queryParser.standard.nodes.NumericQueryNode;-import org.apache.lucene.queryParser.standard.nodes.NumericRangeQueryNode;-import org.apache.lucene.queryParser.standard.nodes.PrefixWildcardQueryNode;-import org.apache.lucene.queryParser.standard.nodes.TermRangeQueryNode;-import org.apache.lucene.queryParser.standard.nodes.RegexpQueryNode;-import org.apache.lucene.queryParser.standard.nodes.StandardBooleanQueryNode;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;-import org.apache.lucene.queryParser.standard.processors.StandardQueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BoostQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.MatchAllDocsQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.MatchNoDocsQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.SlopQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.TokenizedPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.MultiPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.PrefixWildcardQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.TermRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.StandardBooleanQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.StandardQueryNodeProcessorPipeline;import org.apache.lucene.search.Query;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/TermRangeQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/TermRangeQueryNodeBuilder.javasimilarity index 78%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/TermRangeQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/TermRangeQueryNodeBuilder.javaindex f9186114d5d..9f7fc64f9fc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/TermRangeQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/TermRangeQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,12 +17,12 @@ package org.apache.lucene.queryParser.standard.builders;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.util.StringUtils;-import org.apache.lucene.queryParser.standard.nodes.TermRangeQueryNode;-import org.apache.lucene.queryParser.standard.processors.MultiTermRewriteMethodProcessor;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.util.StringUtils;+import org.apache.lucene.queryparser.flexible.standard.nodes.TermRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.MultiTermRewriteMethodProcessor;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.TermRangeQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/WildcardQueryNodeBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/WildcardQueryNodeBuilder.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/WildcardQueryNodeBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/WildcardQueryNodeBuilder.javaindex 18cad5ddf9e..bc5c7c8f8bc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/WildcardQueryNodeBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/WildcardQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.builders;+package org.apache.lucene.queryparser.flexible.standard.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,10 +18,10 @@ package org.apache.lucene.queryParser.standard.builders;*/import org.apache.lucene.index.Term;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;-import org.apache.lucene.queryParser.standard.processors.MultiTermRewriteMethodProcessor;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.MultiTermRewriteMethodProcessor;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.WildcardQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/package.htmlsimilarity index 74%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/package.htmlindex ac72d26fbc8..ef7e27a8790 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/builders/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/builders/package.html@@ -23,12 +23,12 @@<h2>Standard Lucene Query Node Builders</h2><p>-The package org.apache.lucene.queryParser.standard.builders contains all the builders needed+The package org.apache.lucene.queryparser.flexible.standard.builders contains all the builders neededto build a Lucene Query object from a query node tree. These builders expect the query node tree was-already processed by the {@link org.apache.lucene.queryParser.standard.processors.StandardQueryNodeProcessorPipeline}.+already processed by the {@link org.apache.lucene.queryparser.flexible.standard.processors.StandardQueryNodeProcessorPipeline}.</p><p>-{@link org.apache.lucene.queryParser.standard.builders.StandardQueryTreeBuilder} is a builder that already contains a defined map that maps each QueryNode object+{@link org.apache.lucene.queryparser.flexible.standard.builders.StandardQueryTreeBuilder} is a builder that already contains a defined map that maps each QueryNode objectwith its respective builder.</p></body>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FieldBoostMapFCListener.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FieldBoostMapFCListener.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FieldBoostMapFCListener.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FieldBoostMapFCListener.javaindex 0ad2182c8ed..fd2b4760f55 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FieldBoostMapFCListener.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FieldBoostMapFCListener.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.config;+package org.apache.lucene.queryparser.flexible.standard.config;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,10 +19,10 @@ package org.apache.lucene.queryParser.standard.config;import java.util.Map;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.FieldConfigListener;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfigListener;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;/*** This listener listens for every field configuration request and assign adiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FieldDateResolutionFCListener.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FieldDateResolutionFCListener.javasimilarity index 84%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FieldDateResolutionFCListener.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FieldDateResolutionFCListener.javaindex 056ea0ba75b..2cd2b1f61db 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FieldDateResolutionFCListener.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FieldDateResolutionFCListener.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.config;+package org.apache.lucene.queryparser.flexible.standard.config;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -21,10 +21,10 @@ import java.util.Map;import org.apache.lucene.document.DateTools;import org.apache.lucene.document.DateTools.Resolution;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.FieldConfigListener;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfigListener;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;/*** This listener listens for every field configuration request and assign adiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FuzzyConfig.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FuzzyConfig.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FuzzyConfig.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FuzzyConfig.javaindex 8be9bbfd6ca..90596f7f863 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/FuzzyConfig.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/FuzzyConfig.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.config;+package org.apache.lucene.queryparser.flexible.standard.config;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumberDateFormat.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumberDateFormat.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumberDateFormat.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumberDateFormat.javaindex b1e1272ad61..9ba54dbfb41 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumberDateFormat.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumberDateFormat.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.config;+package org.apache.lucene.queryparser.flexible.standard.config;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumericConfig.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.javasimilarity index 97%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumericConfig.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.javaindex df2570a2ab2..234f290b7cc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumericConfig.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericConfig.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.config;+package org.apache.lucene.queryparser.flexible.standard.config;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumericFieldConfigListener.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericFieldConfigListener.javasimilarity index 80%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumericFieldConfigListener.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericFieldConfigListener.javaindex 95457810fef..45703b67cc5 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/NumericFieldConfigListener.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/NumericFieldConfigListener.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.config;+package org.apache.lucene.queryparser.flexible.standard.config;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,10 +19,10 @@ package org.apache.lucene.queryParser.standard.config;import java.util.Map;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.FieldConfigListener;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfigListener;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;public class NumericFieldConfigListener implements FieldConfigListener {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/StandardQueryConfigHandler.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/StandardQueryConfigHandler.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/StandardQueryConfigHandler.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/StandardQueryConfigHandler.javaindex 7bc23493a9b..4b5dc2f8434 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/StandardQueryConfigHandler.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/StandardQueryConfigHandler.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.config;+package org.apache.lucene.queryparser.flexible.standard.config;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -25,11 +25,11 @@ import java.util.Map;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.document.DateTools;import org.apache.lucene.document.DateTools.Resolution;-import org.apache.lucene.queryParser.core.config.ConfigurationKey;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.standard.StandardQueryParser;-import org.apache.lucene.queryParser.standard.processors.StandardQueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.core.config.ConfigurationKey;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.StandardQueryParser;+import org.apache.lucene.queryparser.flexible.standard.processors.StandardQueryNodeProcessorPipeline;import org.apache.lucene.search.MultiTermQuery;import org.apache.lucene.search.MultiTermQuery.RewriteMethod;@@ -80,7 +80,7 @@ public class StandardQueryConfigHandler extends QueryConfigHandler {/*** Key used to set the default boolean operator*- * @see StandardQueryParser#setDefaultOperator(org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator)+ * @see StandardQueryParser#setDefaultOperator(org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator)* @see StandardQueryParser#getDefaultOperator()*/final public static ConfigurationKey<Operator> DEFAULT_OPERATOR = ConfigurationKey.newInstance();diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/package.htmlsimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/package.htmlindex e4503185182..242056fbf16 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/config/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/package.html@@ -23,7 +23,7 @@<h2>Standard Lucene Query Configuration</h2><p>-The package org.apache.lucene.queryParser.standard.config contains the Lucene+The package org.apache.lucene.queryparser.flexible.standard.config contains the Lucenequery configuration handler (StandardQueryConfigHandler). This configurationhandler reproduces almost everything that could be set on the old query parser.</p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/AbstractRangeQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/AbstractRangeQueryNode.javasimilarity index 87%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/AbstractRangeQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/AbstractRangeQueryNode.javaindex ea9d8ea7424..0dfcda213a5 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/AbstractRangeQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/AbstractRangeQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,12 +19,12 @@ package org.apache.lucene.queryParser.standard.nodes;import java.util.ArrayList;-import org.apache.lucene.queryParser.core.nodes.FieldValuePairQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldableNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNodeImpl;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;-import org.apache.lucene.queryParser.core.util.StringUtils;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldValuePairQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.util.StringUtils;public abstract class AbstractRangeQueryNode<T extends FieldValuePairQueryNode<?>>extends QueryNodeImpl implements FieldableNode {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/BooleanModifierNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/BooleanModifierNode.javasimilarity index 80%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/BooleanModifierNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/BooleanModifierNode.javaindex 93b11008e04..2f27bf8f770 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/BooleanModifierNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/BooleanModifierNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,9 @@ package org.apache.lucene.queryParser.standard.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.processors.GroupQueryNodeProcessor;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.GroupQueryNodeProcessor;/*** A {@link BooleanModifierNode} has the same behaviour asdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/MultiPhraseQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/MultiPhraseQueryNode.javasimilarity index 88%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/MultiPhraseQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/MultiPhraseQueryNode.javaindex 2736789c1e3..5d399f3be2b 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/MultiPhraseQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/MultiPhraseQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,10 +19,10 @@ package org.apache.lucene.queryParser.standard.nodes;import java.util.List;-import org.apache.lucene.queryParser.core.nodes.FieldableNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNodeImpl;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;import org.apache.lucene.search.MultiPhraseQuery;import org.apache.lucene.search.PhraseQuery;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/NumericQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/NumericQueryNode.javasimilarity index 86%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/NumericQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/NumericQueryNode.javaindex abf0af8c4a1..adef571d583 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/NumericQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/NumericQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,10 +20,10 @@ package org.apache.lucene.queryParser.standard.nodes;import java.text.NumberFormat;import java.util.Locale;-import org.apache.lucene.queryParser.core.nodes.FieldValuePairQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNodeImpl;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax.Type;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldValuePairQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax.Type;public class NumericQueryNode extends QueryNodeImpl implementsFieldValuePairQueryNode<Number> {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/NumericRangeQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/NumericRangeQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/NumericRangeQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/NumericRangeQueryNode.javaindex d718733c8e9..3b0a85bd5d5 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/NumericRangeQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/NumericRangeQueryNode.java@@ -1,10 +1,10 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;import org.apache.lucene.document.NumericField;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.standard.config.NumericConfig;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.standard.config.NumericConfig;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/PrefixWildcardQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/PrefixWildcardQueryNode.javasimilarity index 93%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/PrefixWildcardQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/PrefixWildcardQueryNode.javaindex 7741d6021de..7b5bd4e6a95 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/PrefixWildcardQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/PrefixWildcardQueryNode.java@@ -1,6 +1,6 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/RangeQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/RangeQueryNode.javasimilarity index 81%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/RangeQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/RangeQueryNode.javaindex 6412983b890..49d907c9d82 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/RangeQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/RangeQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,9 @@ package org.apache.lucene.queryParser.standard.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricRangeQueryNode;-import org.apache.lucene.queryParser.standard.processors.ParametricRangeQueryNodeProcessor;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.processors.ParametricRangeQueryNodeProcessor;/*** This query node represents a range query.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/RegexpQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/RegexpQueryNode.javasimilarity index 87%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/RegexpQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/RegexpQueryNode.javaindex be8659d5c95..5345fb6c45a 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/RegexpQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/RegexpQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,10 +17,10 @@ package org.apache.lucene.queryParser.standard.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.nodes.FieldableNode;-import org.apache.lucene.queryParser.core.nodes.QueryNodeImpl;-import org.apache.lucene.queryParser.core.nodes.TextableQueryNode;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl;+import org.apache.lucene.queryparser.flexible.core.nodes.TextableQueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;import org.apache.lucene.search.RegexpQuery;import org.apache.lucene.util.BytesRef;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/StandardBooleanQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/StandardBooleanQueryNode.javasimilarity index 88%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/StandardBooleanQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/StandardBooleanQueryNode.javaindex 13e922121d3..b72dd045198 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/StandardBooleanQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/StandardBooleanQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,8 +19,8 @@ package org.apache.lucene.queryParser.standard.nodes;import java.util.List;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.SimilarityProvider;diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/TermRangeQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/TermRangeQueryNode.javasimilarity index 83%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/TermRangeQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/TermRangeQueryNode.javaindex dc0194045a1..bec3ba6474d 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/TermRangeQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/TermRangeQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,12 +17,12 @@ package org.apache.lucene.queryParser.standard.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;/*** This query node represents a range query.*- * @see org.apache.lucene.queryParser.standard.processors.ParametricRangeQueryNodeProcessor+ * @see org.apache.lucene.queryparser.flexible.standard.processors.ParametricRangeQueryNodeProcessor* @see org.apache.lucene.search.TermRangeQuery*/public class TermRangeQueryNode extends AbstractRangeQueryNode<FieldQueryNode> {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/WildcardQueryNode.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/WildcardQueryNode.javasimilarity index 90%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/WildcardQueryNode.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/WildcardQueryNode.javaindex 3e4d938101d..fc179616641 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/WildcardQueryNode.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/WildcardQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.nodes;+package org.apache.lucene.queryparser.flexible.standard.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,8 +17,8 @@ package org.apache.lucene.queryParser.standard.nodes;* limitations under the License.*/-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;/*** A {@link WildcardQueryNode} represents wildcard query This does not apply todiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/package.htmlsimilarity index 92%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/package.htmlindex 7f4db887e1d..20f6be8a8ad 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/nodes/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/package.html@@ -23,7 +23,7 @@<h2>Standard Lucene Query Nodes</h2><p>-The package org.apache.lucene.queryParser.standard.nodes contains QueryNode classes+The package org.apache.lucene.queryparser.flexible.standard.nodes contains QueryNode classesthat are used specifically for Lucene query node tree. Any other generic QueryNode isdefined under org.apache.lucene.queryParser.nodes.</p>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/package.htmlsimilarity index 92%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/package.htmlindex 5b5075f8350..211edbbe1f3 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/package.html@@ -36,7 +36,7 @@ are used to reproduce the same behavior as the old query parser.</p><p>-Check <tt>org.apache.lucene.queryParser.standard.StandardQueryParser</tt> to quick start using the Lucene query parser.+Check <tt>org.apache.lucene.queryparser.flexible.standard.StandardQueryParser</tt> to quick start using the Lucene query parser.</p></body>diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/EscapeQuerySyntaxImpl.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/EscapeQuerySyntaxImpl.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/EscapeQuerySyntaxImpl.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/EscapeQuerySyntaxImpl.javaindex 5288502581f..f581f14841e 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/EscapeQuerySyntaxImpl.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/EscapeQuerySyntaxImpl.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,9 +20,9 @@ package org.apache.lucene.queryParser.standard.parser;import java.util.Locale;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;-import org.apache.lucene.queryParser.core.util.UnescapedCharSequence;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.core.util.UnescapedCharSequence;/***/diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/JavaCharStream.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/JavaCharStream.javasimilarity index 99%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/JavaCharStream.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/JavaCharStream.javaindex 94cd1c92b0a..48e8e3314e7 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/JavaCharStream.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/JavaCharStream.java@@ -1,6 +1,6 @@/* Generated By:JavaCC: Do not edit this line. JavaCharStream.java Version 4.1 *//* JavaCCOptions:STATIC=false */-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/*** An implementation of interface CharStream, where the stream is assumed todiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.javasimilarity index 96%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/ParseException.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.javaindex eee1116dccf..bbc3de7ef69 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/ParseException.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/ParseException.java@@ -1,11 +1,11 @@/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 4.1 *//* JavaCCOptions:KEEP_LINE_COL=null */-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;import org.apache.lucene.messages.Message;import org.apache.lucene.messages.MessageImpl;- import org.apache.lucene.queryParser.core.*;- import org.apache.lucene.queryParser.core.messages.*;+ import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+ import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;/*** This exception is thrown when parse errors are encountered.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.javasimilarity index 94%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.javaindex 7b6aaa7538a..c5aed4b2929 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.java@@ -1,5 +1,5 @@/* Generated By:JavaCC: Do not edit this line. StandardSyntaxParser.java */-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -25,28 +25,28 @@ import java.util.Vector;import org.apache.lucene.messages.Message;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.AndQueryNode;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.BoostQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.OpaqueQueryNode;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricRangeQueryNode;-import org.apache.lucene.queryParser.standard.nodes.RegexpQueryNode;-import org.apache.lucene.queryParser.core.nodes.SlopQueryNode;-import org.apache.lucene.queryParser.core.nodes.ProximityQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNodeImpl;-import org.apache.lucene.queryParser.core.nodes.QuotedFieldQueryNode;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.AndQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BoostQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OpaqueQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OrQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.SlopQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ProximityQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl;+import org.apache.lucene.queryparser.flexible.core.nodes.QuotedFieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;public class StandardSyntaxParser implements SyntaxParser, StandardSyntaxParserConstants {@@ -59,7 +59,7 @@ public class StandardSyntaxParser implements SyntaxParser, StandardSyntaxParserCpublic StandardSyntaxParser() {this(new StringReader(""));}- /** Parses a query string, returning a {@link org.apache.lucene.queryParser.core.nodes.QueryNode}.+ /** Parses a query string, returning a {@link org.apache.lucene.queryparser.flexible.core.nodes.QueryNode}.* @param query the query string to be parsed.* @throws ParseException if the parsing fails*/diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.jj b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.jjsimilarity index 88%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.jjrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.jjindex 428c4d959ec..11d866177f3 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParser.jj+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParser.jj@@ -11,7 +11,7 @@ options {}PARSER_BEGIN(StandardSyntaxParser)-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -37,28 +37,28 @@ import java.util.Vector;import org.apache.lucene.messages.Message;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.AndQueryNode;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.BoostQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.OpaqueQueryNode;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricRangeQueryNode;-import org.apache.lucene.queryParser.standard.nodes.RegexpQueryNode;-import org.apache.lucene.queryParser.core.nodes.SlopQueryNode;-import org.apache.lucene.queryParser.core.nodes.ProximityQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNodeImpl;-import org.apache.lucene.queryParser.core.nodes.QuotedFieldQueryNode;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.AndQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BoostQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OpaqueQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OrQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.SlopQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ProximityQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl;+import org.apache.lucene.queryparser.flexible.core.nodes.QuotedFieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;public class StandardSyntaxParser implements SyntaxParser {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParserConstants.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserConstants.javasimilarity index 97%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParserConstants.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserConstants.javaindex bd4a5d15621..15d141a748b 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParserConstants.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserConstants.java@@ -1,5 +1,5 @@/* Generated By:JavaCC: Do not edit this line. StandardSyntaxParserConstants.java */-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParserTokenManager.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserTokenManager.javasimilarity index 95%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParserTokenManager.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserTokenManager.javaindex 66cfbdd1807..830f79c5001 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/StandardSyntaxParserTokenManager.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/StandardSyntaxParserTokenManager.java@@ -1,5 +1,5 @@/* Generated By:JavaCC: Do not edit this line. StandardSyntaxParserTokenManager.java */-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/*** Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See the NOTICE file distributed with@@ -23,28 +23,28 @@ import java.util.List;import java.util.Vector;import org.apache.lucene.messages.Message;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeError;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.AndQueryNode;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.BoostQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.OpaqueQueryNode;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricRangeQueryNode;-import org.apache.lucene.queryParser.standard.nodes.RegexpQueryNode;-import org.apache.lucene.queryParser.core.nodes.SlopQueryNode;-import org.apache.lucene.queryParser.core.nodes.ProximityQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNodeImpl;-import org.apache.lucene.queryParser.core.nodes.QuotedFieldQueryNode;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.QueryNodeError;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.AndQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BoostQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OpaqueQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OrQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.SlopQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ProximityQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl;+import org.apache.lucene.queryparser.flexible.core.nodes.QuotedFieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;/** Token Manager. */public class StandardSyntaxParserTokenManager implements StandardSyntaxParserConstantsdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/Token.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/Token.javasimilarity index 98%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/Token.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/Token.javaindex cb0e250a0eb..299eb3129fc 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/Token.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/Token.java@@ -1,6 +1,6 @@/* Generated By:JavaCC: Do not edit this line. Token.java Version 4.1 *//* JavaCCOptions:TOKEN_EXTENDS=,KEEP_LINE_COL=null */-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/*** Describes the input token stream.diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/TokenMgrError.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/TokenMgrError.javasimilarity index 98%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/TokenMgrError.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/TokenMgrError.javaindex bfe8feea01c..5b603461f47 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/TokenMgrError.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/TokenMgrError.java@@ -1,6 +1,6 @@/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 4.1 *//* JavaCCOptions: */-package org.apache.lucene.queryParser.standard.parser;+package org.apache.lucene.queryparser.flexible.standard.parser;/** Token Manager Error. */@SuppressWarnings("serial")diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/package.htmlsimilarity index 92%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/package.htmlindex 21c6d3d0a34..12cdd3199cb 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/parser/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/parser/package.html@@ -23,7 +23,7 @@<h2>Lucene Query Parser</h2><p>-The package org.apache.lucene.queryParser.standard.parser contains the query parser.+The package org.apache.lucene.queryparser.flexible.standard.parser contains the query parser.</p><p>This text parser only performs the syntax validation and creates an QueryNode treediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/AllowLeadingWildcardProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/AllowLeadingWildcardProcessor.javasimilarity index 77%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/AllowLeadingWildcardProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/AllowLeadingWildcardProcessor.javaindex 32c0a902185..1b3e0b58b92 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/AllowLeadingWildcardProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/AllowLeadingWildcardProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,15 +20,15 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.core.util.UnescapedCharSequence;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;-import org.apache.lucene.queryParser.standard.parser.EscapeQuerySyntaxImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.util.UnescapedCharSequence;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl;/*** This processor verifies ifdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/AnalyzerQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/AnalyzerQueryNodeProcessor.javasimilarity index 87%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/AnalyzerQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/AnalyzerQueryNodeProcessor.javaindex e4302c7bb56..b13220253f2 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/AnalyzerQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/AnalyzerQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -28,22 +28,22 @@ import org.apache.lucene.analysis.CachingTokenFilter;import org.apache.lucene.analysis.TokenStream;import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.NoTokenFoundQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.QuotedFieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.TextableQueryNode;-import org.apache.lucene.queryParser.core.nodes.TokenizedPhraseQueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.MultiPhraseQueryNode;-import org.apache.lucene.queryParser.standard.nodes.StandardBooleanQueryNode;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.NoTokenFoundQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QuotedFieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.TextableQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.TokenizedPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.MultiPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.StandardBooleanQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;/*** This processor verifies if {@link ConfigurationKeys#ANALYZER}diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/BooleanSingleChildOptimizationQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/BooleanSingleChildOptimizationQueryNodeProcessor.javasimilarity index 78%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/BooleanSingleChildOptimizationQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/BooleanSingleChildOptimizationQueryNodeProcessor.javaindex beb3c640e4c..758834165ef 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/BooleanSingleChildOptimizationQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/BooleanSingleChildOptimizationQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,13 +19,13 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode.Modifier;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.nodes.BooleanModifierNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode.Modifier;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.nodes.BooleanModifierNode;/*** This processor removes every {@link BooleanQueryNode} that contains only onediff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/BoostQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/BoostQueryNodeProcessor.javasimilarity index 74%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/BoostQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/BoostQueryNodeProcessor.javaindex 3195daa37cc..264ba689f2c 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/BoostQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/BoostQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,15 +19,15 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.BoostQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldableNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.core.util.StringUtils;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.BoostQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.util.StringUtils;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;/*** This processor iterates the query node tree looking for everydiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/DefaultPhraseSlopQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/DefaultPhraseSlopQueryNodeProcessor.javasimilarity index 80%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/DefaultPhraseSlopQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/DefaultPhraseSlopQueryNodeProcessor.javaindex 1cf1c1c846b..5f92a120699 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/DefaultPhraseSlopQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/DefaultPhraseSlopQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,14 +19,14 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.SlopQueryNode;-import org.apache.lucene.queryParser.core.nodes.TokenizedPhraseQueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.MultiPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.SlopQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.TokenizedPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.MultiPhraseQueryNode;/*** This processor verifies if {@link ConfigurationKeys#PHRASE_SLOP}diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/FuzzyQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/FuzzyQueryNodeProcessor.javasimilarity index 79%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/FuzzyQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/FuzzyQueryNodeProcessor.javaindex 16db38b3733..f7daf5d6a29 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/FuzzyQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/FuzzyQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,13 +19,13 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.config.FuzzyConfig;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.config.FuzzyConfig;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;import org.apache.lucene.search.FuzzyQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/GroupQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/GroupQueryNodeProcessor.javasimilarity index 79%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/GroupQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/GroupQueryNodeProcessor.javaindex 866cd4a3ad8..051df6a703d 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/GroupQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/GroupQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,21 +20,21 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.ArrayList;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.AndQueryNode;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode.Modifier;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessor;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;-import org.apache.lucene.queryParser.standard.nodes.BooleanModifierNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.AndQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OrQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode.Modifier;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessor;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator;+import org.apache.lucene.queryparser.flexible.standard.nodes.BooleanModifierNode;/*** The {@link SyntaxParser}@@ -48,7 +48,7 @@ import org.apache.lucene.queryParser.standard.nodes.BooleanModifierNode;** Example: TODO: describe a good example to show how this processor works*- * @see org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler+ * @see org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler*/public class GroupQueryNodeProcessor implements QueryNodeProcessor {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/LowercaseExpandedTermsQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/LowercaseExpandedTermsQueryNodeProcessor.javasimilarity index 72%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/LowercaseExpandedTermsQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/LowercaseExpandedTermsQueryNodeProcessor.javaindex 98deba99f34..7f35e759933 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/LowercaseExpandedTermsQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/LowercaseExpandedTermsQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,17 +19,17 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.TextableQueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.core.util.UnescapedCharSequence;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.RegexpQueryNode;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.TextableQueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.util.UnescapedCharSequence;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;/*** This processor verifies ifdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MatchAllDocsQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MatchAllDocsQueryNodeProcessor.javasimilarity index 77%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MatchAllDocsQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MatchAllDocsQueryNodeProcessor.javaindex 2927a4adb4e..7a19d011701 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MatchAllDocsQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MatchAllDocsQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,12 +19,12 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.MatchAllDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.MatchAllDocsQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;import org.apache.lucene.search.MatchAllDocsQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MultiFieldQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MultiFieldQueryNodeProcessor.javasimilarity index 83%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MultiFieldQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MultiFieldQueryNodeProcessor.javaindex 4351cea402c..13c25b9ab4b 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MultiFieldQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MultiFieldQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,14 +20,14 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.LinkedList;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldableNode;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;/*** This processor is used to expand terms so the query looks for the same termdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MultiTermRewriteMethodProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MultiTermRewriteMethodProcessor.javasimilarity index 80%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MultiTermRewriteMethodProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MultiTermRewriteMethodProcessor.javaindex bea7ac5cd24..1f0fc72c9aa 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/MultiTermRewriteMethodProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/MultiTermRewriteMethodProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,12 +19,12 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.AbstractRangeQueryNode;-import org.apache.lucene.queryParser.standard.nodes.RegexpQueryNode;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.AbstractRangeQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.RegexpQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;import org.apache.lucene.search.MultiTermQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/NumericQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/NumericQueryNodeProcessor.javasimilarity index 75%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/NumericQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/NumericQueryNodeProcessor.javaindex 1b09056e5c1..3bbe7fc74b5 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/NumericQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/NumericQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -22,19 +22,19 @@ import java.text.ParseException;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.config.NumericConfig;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.NumericQueryNode;-import org.apache.lucene.queryParser.standard.nodes.NumericRangeQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.config.NumericConfig;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericRangeQueryNode;public class NumericQueryNodeProcessor extends QueryNodeProcessorImpl {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/NumericRangeQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/NumericRangeQueryNodeProcessor.javasimilarity index 78%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/NumericRangeQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/NumericRangeQueryNodeProcessor.javaindex c7c95a6307f..2f2f76c89f6 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/NumericRangeQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/NumericRangeQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -22,21 +22,21 @@ import java.text.ParseException;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricRangeQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode.CompareOperator;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.core.util.StringUtils;-import org.apache.lucene.queryParser.standard.config.NumericConfig;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.NumericQueryNode;-import org.apache.lucene.queryParser.standard.nodes.NumericRangeQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricRangeQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode.CompareOperator;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.util.StringUtils;+import org.apache.lucene.queryparser.flexible.standard.config.NumericConfig;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.NumericRangeQueryNode;public class NumericRangeQueryNodeProcessor extends QueryNodeProcessorImpl {diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/ParametricRangeQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/ParametricRangeQueryNodeProcessor.javasimilarity index 84%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/ParametricRangeQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/ParametricRangeQueryNodeProcessor.javaindex decb18a4073..258253f12b3 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/ParametricRangeQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/ParametricRangeQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -25,16 +25,16 @@ import java.util.Locale;import org.apache.lucene.document.DateTools;import org.apache.lucene.document.DateTools.Resolution;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricRangeQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode.CompareOperator;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.ConfigurationKeys;-import org.apache.lucene.queryParser.standard.nodes.TermRangeQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricRangeQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode.CompareOperator;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.ConfigurationKeys;+import org.apache.lucene.queryparser.flexible.standard.nodes.TermRangeQueryNode;/*** This processor converts {@link ParametricRangeQueryNode} objects todiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/PhraseSlopQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/PhraseSlopQueryNodeProcessor.javasimilarity index 78%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/PhraseSlopQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/PhraseSlopQueryNodeProcessor.javaindex 148af4781de..2a0ca6ff476 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/PhraseSlopQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/PhraseSlopQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,12 +19,12 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.SlopQueryNode;-import org.apache.lucene.queryParser.core.nodes.TokenizedPhraseQueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.standard.nodes.MultiPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.SlopQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.TokenizedPhraseQueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.standard.nodes.MultiPhraseQueryNode;/*** This processor removes invalid {@link SlopQueryNode} objects in the querydiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/RemoveEmptyNonLeafQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/RemoveEmptyNonLeafQueryNodeProcessor.javasimilarity index 84%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/RemoveEmptyNonLeafQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/RemoveEmptyNonLeafQueryNodeProcessor.javaindex 0f182a9f0f4..852dd8e3c39 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/RemoveEmptyNonLeafQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/RemoveEmptyNonLeafQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,12 +20,12 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.LinkedList;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.GroupQueryNode;-import org.apache.lucene.queryParser.core.nodes.MatchNoDocsQueryNode;-import org.apache.lucene.queryParser.core.nodes.ModifierQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.GroupQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.MatchNoDocsQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ModifierQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;/*** This processor removes every {@link QueryNode} that is not a leaf and has notdiff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/StandardQueryNodeProcessorPipeline.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/StandardQueryNodeProcessorPipeline.javasimilarity index 78%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/StandardQueryNodeProcessorPipeline.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/StandardQueryNodeProcessorPipeline.javaindex a381084d92d..4a73f23bce8 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/StandardQueryNodeProcessorPipeline.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/StandardQueryNodeProcessorPipeline.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,13 +17,13 @@ package org.apache.lucene.queryParser.standard.processors;* limitations under the License.*/-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.processors.NoChildOptimizationQueryNodeProcessor;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorPipeline;-import org.apache.lucene.queryParser.core.processors.RemoveDeletedQueryNodesProcessor;-import org.apache.lucene.queryParser.standard.builders.StandardQueryTreeBuilder;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.parser.StandardSyntaxParser;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.processors.NoChildOptimizationQueryNodeProcessor;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.core.processors.RemoveDeletedQueryNodesProcessor;+import org.apache.lucene.queryparser.flexible.standard.builders.StandardQueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser;import org.apache.lucene.search.Query;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/WildcardQueryNodeProcessor.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/WildcardQueryNodeProcessor.javasimilarity index 82%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/WildcardQueryNodeProcessor.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/WildcardQueryNodeProcessor.javaindex 9f8ef3a8dc2..331f8fd6e1f 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/WildcardQueryNodeProcessor.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/WildcardQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard.processors;+package org.apache.lucene.queryparser.flexible.standard.processors;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,17 +19,17 @@ package org.apache.lucene.queryParser.standard.processors;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.ParametricQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.nodes.QuotedFieldQueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.core.util.UnescapedCharSequence;-import org.apache.lucene.queryParser.standard.nodes.PrefixWildcardQueryNode;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;-import org.apache.lucene.queryParser.standard.parser.StandardSyntaxParser;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.ParametricQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QuotedFieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.util.UnescapedCharSequence;+import org.apache.lucene.queryparser.flexible.standard.nodes.PrefixWildcardQueryNode;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser;import org.apache.lucene.search.PrefixQuery;/**diff --git a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/package.htmlsimilarity index 90%rename from lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/package.htmlindex 32283fe4cee..c65a24c4ab9 100644--- a/lucene/contrib/queryparser/src/java/org/apache/lucene/queryParser/standard/processors/package.html+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/processors/package.html@@ -23,7 +23,7 @@<h2>Lucene Query Node Processors</h2><p>-The package org.apache.lucene.queryParser.standard.processors contains every processor needed to assembly a pipeline+The package org.apache.lucene.queryparser.flexible.standard.processors contains every processor needed to assembly a pipelinethat modifies the query node tree according to the actual Lucene queries.</p><p>diff --git a/lucene/contrib/queryparser/src/resources/org/apache/lucene/queryParser/core/messages/QueryParserMessages.properties b/modules/queryparser/src/resources/org/apache/lucene/queryparser/flexible/core/messages/QueryParserMessages.propertiessimilarity index 100%rename from lucene/contrib/queryparser/src/resources/org/apache/lucene/queryParser/core/messages/QueryParserMessages.propertiesrename to modules/queryparser/src/resources/org/apache/lucene/queryparser/flexible/core/messages/QueryParserMessages.propertiesdiff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/core/builders/TestQueryTreeBuilder.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/core/builders/TestQueryTreeBuilder.javasimilarity index 80%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/core/builders/TestQueryTreeBuilder.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/core/builders/TestQueryTreeBuilder.javaindex 88ad9a21b16..9a40c700181 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/core/builders/TestQueryTreeBuilder.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/core/builders/TestQueryTreeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.builders;+package org.apache.lucene.queryparser.flexible.core.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,10 +19,10 @@ package org.apache.lucene.queryParser.core.builders;import junit.framework.Assert;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.util.UnescapedCharSequence;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.util.UnescapedCharSequence;import org.apache.lucene.util.LuceneTestCase;import org.junit.Test;diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/core/nodes/TestQueryNode.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/core/nodes/TestQueryNode.javasimilarity index 96%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/core/nodes/TestQueryNode.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/core/nodes/TestQueryNode.javaindex b805a438ce1..53caba829ae 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/core/nodes/TestQueryNode.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/core/nodes/TestQueryNode.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.core.nodes;+package org.apache.lucene.queryparser.flexible.core.nodes;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/precedence/TestPrecedenceQueryParser.javasimilarity index 98%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/precedence/TestPrecedenceQueryParser.javaindex b53ec6850a0..311fec59570 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/precedence/TestPrecedenceQueryParser.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/precedence/TestPrecedenceQueryParser.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.precedence;+package org.apache.lucene.queryparser.flexible.precedence;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -35,10 +35,10 @@ import org.apache.lucene.analysis.TokenStream;import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;import org.apache.lucene.document.DateTools;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.QueryNodeParseException;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.parser.ParseException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.QueryNodeParseException;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.parser.ParseException;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.FuzzyQuery;import org.apache.lucene.search.PhraseQuery;diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpanOrQueryNodeBuilder.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpanOrQueryNodeBuilder.javasimilarity index 79%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpanOrQueryNodeBuilder.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpanOrQueryNodeBuilder.javaindex c4bc9b92d54..75fcbf42c61 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpanOrQueryNodeBuilder.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpanOrQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,11 +19,11 @@ package org.apache.lucene.queryParser.spans;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.builders.StandardQueryBuilder;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.builders.StandardQueryBuilder;import org.apache.lucene.search.spans.SpanOrQuery;import org.apache.lucene.search.spans.SpanQuery;diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpanTermQueryNodeBuilder.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpanTermQueryNodeBuilder.javasimilarity index 78%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpanTermQueryNodeBuilder.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpanTermQueryNodeBuilder.javaindex 8fa90962921..6fb7e10554b 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpanTermQueryNodeBuilder.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpanTermQueryNodeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -18,10 +18,10 @@ package org.apache.lucene.queryParser.spans;*/import org.apache.lucene.index.Term;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.builders.StandardQueryBuilder;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.builders.StandardQueryBuilder;import org.apache.lucene.search.spans.SpanTermQuery;/**diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansQueryConfigHandler.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansQueryConfigHandler.javasimilarity index 82%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansQueryConfigHandler.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansQueryConfigHandler.javaindex 52721422a2b..96ccd807b08 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansQueryConfigHandler.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansQueryConfigHandler.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,9 +17,9 @@ package org.apache.lucene.queryParser.spans;* limitations under the License.*/-import org.apache.lucene.queryParser.core.config.ConfigurationKey;-import org.apache.lucene.queryParser.core.config.FieldConfig;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.config.ConfigurationKey;+import org.apache.lucene.queryparser.flexible.core.config.FieldConfig;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;/*** This query config handler only adds the {@link UniqueFieldAttribute} to it.<br/>diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansQueryTreeBuilder.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansQueryTreeBuilder.javasimilarity index 75%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansQueryTreeBuilder.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansQueryTreeBuilder.javaindex 8d0f7d68d78..e8711a56a79 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansQueryTreeBuilder.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansQueryTreeBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,12 +17,12 @@ package org.apache.lucene.queryParser.spans;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.builders.QueryTreeBuilder;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.standard.builders.StandardQueryBuilder;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.standard.builders.StandardQueryBuilder;import org.apache.lucene.search.spans.SpanQuery;/**diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansValidatorQueryNodeProcessor.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansValidatorQueryNodeProcessor.javasimilarity index 75%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansValidatorQueryNodeProcessor.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansValidatorQueryNodeProcessor.javaindex 335adb447d2..3ebc3063305 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/SpansValidatorQueryNodeProcessor.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/SpansValidatorQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,14 +20,14 @@ package org.apache.lucene.queryParser.spans;import java.util.List;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.AndQueryNode;-import org.apache.lucene.queryParser.core.nodes.BooleanQueryNode;-import org.apache.lucene.queryParser.core.nodes.FieldQueryNode;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.AndQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.BooleanQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.OrQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;/*** Validates every query node in a query node tree. This processor will passdiff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/TestSpanQueryParser.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/TestSpanQueryParser.javasimilarity index 92%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/TestSpanQueryParser.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/TestSpanQueryParser.javaindex deb608c24f5..5d5da8530a2 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/TestSpanQueryParser.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/TestSpanQueryParser.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,13 +17,13 @@ package org.apache.lucene.queryParser.spans;* limitations under the License.*/-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorPipeline;-import org.apache.lucene.queryParser.standard.parser.StandardSyntaxParser;-import org.apache.lucene.queryParser.standard.processors.WildcardQueryNodeProcessor;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.nodes.OrQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser;+import org.apache.lucene.queryparser.flexible.standard.processors.WildcardQueryNodeProcessor;import org.apache.lucene.search.spans.SpanOrQuery;import org.apache.lucene.search.spans.SpanQuery;import org.apache.lucene.search.spans.SpanTermQuery;diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/TestSpanQueryParserSimpleSample.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/TestSpanQueryParserSimpleSample.javasimilarity index 91%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/TestSpanQueryParserSimpleSample.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/TestSpanQueryParserSimpleSample.javaindex 0c696dec157..24e7e1cfc83 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/TestSpanQueryParserSimpleSample.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/TestSpanQueryParserSimpleSample.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,12 +19,12 @@ package org.apache.lucene.queryParser.spans;import javax.management.Query;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.OrQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.parser.SyntaxParser;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorPipeline;-import org.apache.lucene.queryParser.standard.parser.StandardSyntaxParser;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.OrQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.standard.parser.StandardSyntaxParser;import org.apache.lucene.search.spans.SpanQuery;import org.apache.lucene.search.spans.SpanTermQuery;import org.apache.lucene.util.LuceneTestCase;diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldAttribute.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldAttribute.javasimilarity index 90%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldAttribute.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldAttribute.javaindex adbae05cbe7..c4f873b64ad 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldAttribute.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldAttribute.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.spans;* limitations under the License.*/-import org.apache.lucene.queryParser.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;import org.apache.lucene.util.Attribute;/**diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldAttributeImpl.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldAttributeImpl.javasimilarity index 95%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldAttributeImpl.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldAttributeImpl.javaindex 7fce3a8460c..50c75714fe7 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldAttributeImpl.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldAttributeImpl.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -17,7 +17,7 @@ package org.apache.lucene.queryParser.spans;* limitations under the License.*/-import org.apache.lucene.queryParser.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;import org.apache.lucene.util.AttributeImpl;/**diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldQueryNodeProcessor.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldQueryNodeProcessor.javasimilarity index 84%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldQueryNodeProcessor.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldQueryNodeProcessor.javaindex 95997be6927..e4ecba3a70b 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/spans/UniqueFieldQueryNodeProcessor.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/spans/UniqueFieldQueryNodeProcessor.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.spans;+package org.apache.lucene.queryparser.flexible.spans;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -19,11 +19,11 @@ package org.apache.lucene.queryParser.spans;import java.util.List;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.config.QueryConfigHandler;-import org.apache.lucene.queryParser.core.nodes.FieldableNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.config.QueryConfigHandler;+import org.apache.lucene.queryparser.flexible.core.nodes.FieldableNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;/*** This processor changes every field name of each {@link FieldableNode} querydiff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestMultiAnalyzerQPHelper.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiAnalyzerQPHelper.javasimilarity index 96%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestMultiAnalyzerQPHelper.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiAnalyzerQPHelper.javaindex dc876fed696..a35ef97f3e8 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestMultiAnalyzerQPHelper.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiAnalyzerQPHelper.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard;+package org.apache.lucene.queryparser.flexible.standard;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -27,9 +27,9 @@ import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;import org.apache.lucene.analysis.tokenattributes.TypeAttribute;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator;import org.apache.lucene.util.LuceneTestCase;/**diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestMultiFieldQPHelper.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiFieldQPHelper.javasimilarity index 97%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestMultiFieldQPHelper.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiFieldQPHelper.javaindex 6dd278f9f5e..19cbc7bf3f7 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestMultiFieldQPHelper.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestMultiFieldQPHelper.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard;+package org.apache.lucene.queryparser.flexible.standard;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -27,9 +27,9 @@ import org.apache.lucene.analysis.MockAnalyzer;import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;import org.apache.lucene.index.IndexWriter;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler.Operator;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler.Operator;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.IndexSearcher;import org.apache.lucene.search.Query;diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestNumericQueryParser.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestNumericQueryParser.javasimilarity index 97%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestNumericQueryParser.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestNumericQueryParser.javaindex 2b03eaa6099..bb2cd67821b 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestNumericQueryParser.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestNumericQueryParser.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard;+package org.apache.lucene.queryparser.flexible.standard;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -37,11 +37,11 @@ import org.apache.lucene.document.Field;import org.apache.lucene.document.NumericField;import org.apache.lucene.index.IndexReader;import org.apache.lucene.index.RandomIndexWriter;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.parser.EscapeQuerySyntax;-import org.apache.lucene.queryParser.standard.config.NumberDateFormat;-import org.apache.lucene.queryParser.standard.config.NumericConfig;-import org.apache.lucene.queryParser.standard.parser.EscapeQuerySyntaxImpl;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;+import org.apache.lucene.queryparser.flexible.standard.config.NumberDateFormat;+import org.apache.lucene.queryparser.flexible.standard.config.NumericConfig;+import org.apache.lucene.queryparser.flexible.standard.parser.EscapeQuerySyntaxImpl;import org.apache.lucene.search.IndexSearcher;import org.apache.lucene.search.Query;import org.apache.lucene.search.TopDocs;diff --git a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestQPHelper.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.javasimilarity index 98%rename from lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestQPHelper.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.javaindex d191145fc59..9f6f753a612 100644--- a/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/standard/TestQPHelper.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java@@ -1,4 +1,4 @@-package org.apache.lucene.queryParser.standard;+package org.apache.lucene.queryparser.flexible.standard;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -45,14 +45,14 @@ import org.apache.lucene.index.IndexWriter;import org.apache.lucene.index.IndexReader;import org.apache.lucene.index.Term;import org.apache.lucene.messages.MessageImpl;-import org.apache.lucene.queryParser.core.QueryNodeException;-import org.apache.lucene.queryParser.core.messages.QueryParserMessages;-import org.apache.lucene.queryParser.core.nodes.FuzzyQueryNode;-import org.apache.lucene.queryParser.core.nodes.QueryNode;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl;-import org.apache.lucene.queryParser.core.processors.QueryNodeProcessorPipeline;-import org.apache.lucene.queryParser.standard.config.StandardQueryConfigHandler;-import org.apache.lucene.queryParser.standard.nodes.WildcardQueryNode;+import org.apache.lucene.queryparser.flexible.core.QueryNodeException;+import org.apache.lucene.queryparser.flexible.core.messages.QueryParserMessages;+import org.apache.lucene.queryparser.flexible.core.nodes.FuzzyQueryNode;+import org.apache.lucene.queryparser.flexible.core.nodes.QueryNode;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorImpl;+import org.apache.lucene.queryparser.flexible.core.processors.QueryNodeProcessorPipeline;+import org.apache.lucene.queryparser.flexible.standard.config.StandardQueryConfigHandler;+import org.apache.lucene.queryparser.flexible.standard.nodes.WildcardQueryNode;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.FuzzyQuery;