Apache Solr open-source search software
LUCENE-3286: Consolidated XML QP into queryparser module
Christopher John Male7f90632562f7
diff --git a/dev-tools/eclipse/dot.classpath b/dev-tools/eclipse/dot.classpathindex 426ca921d0b..8e6c3db2966 100644--- a/dev-tools/eclipse/dot.classpath+++ b/dev-tools/eclipse/dot.classpath@@ -18,8 +18,6 @@<classpathentry kind="src" path="lucene/contrib/sandbox/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"/>- <classpathentry kind="src" path="lucene/contrib/xml-query-parser/src/test"/><classpathentry kind="src" path="modules/analysis/common/src/java"/><classpathentry kind="src" path="modules/analysis/common/src/resources"/><classpathentry kind="src" path="modules/analysis/common/src/test"/>diff --git a/dev-tools/idea/.idea/modules.xml b/dev-tools/idea/.idea/modules.xmlindex 94dcb9871cf..7bdd26f8f97 100644--- a/dev-tools/idea/.idea/modules.xml+++ b/dev-tools/idea/.idea/modules.xml@@ -11,7 +11,6 @@<module filepath="$PROJECT_DIR$/lucene/contrib/misc/misc.iml" /><module filepath="$PROJECT_DIR$/lucene/contrib/spatial/spatial.iml" /><module filepath="$PROJECT_DIR$/lucene/contrib/sandbox/sandbox.iml" />- <module filepath="$PROJECT_DIR$/lucene/contrib/xml-query-parser/xml-query-parser.iml" /><module filepath="$PROJECT_DIR$/modules/analysis/common/analysis-common.iml" /><module filepath="$PROJECT_DIR$/modules/analysis/icu/icu.iml" /><module filepath="$PROJECT_DIR$/modules/analysis/morfologik/morfologik.iml" />diff --git a/dev-tools/idea/.idea/workspace.xml b/dev-tools/idea/.idea/workspace.xmlindex e181d3194ef..f43696798ac 100644--- a/dev-tools/idea/.idea/workspace.xml+++ b/dev-tools/idea/.idea/workspace.xml@@ -190,14 +190,7 @@<option name="VM_PARAMETERS" value="-ea -Dtests.luceneMatchVersion=4.0 -DtempDir=temp -Djetty.testMode=1 -Djetty.insecurerandom=1 -Dsolr.directoryFactory=org.apache.solr.core.MockDirectoryFactory" /><option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option></configuration>- <configuration default="false" name="xml-query-parser contrib" type="JUnit" factoryName="JUnit">- <module name="xml-query-parser" />- <option name="TEST_OBJECT" value="package" />- <option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/lucene/build/contrib/xml-query-parser" />- <option name="VM_PARAMETERS" value="-ea -DtempDir=temp" />- <option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option>- </configuration>- <list size="28">+ <list size="27"><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" />@@ -225,7 +218,6 @@<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/demo/demo.iml b/dev-tools/idea/lucene/contrib/demo/demo.imlindex fab85b19be5..a1d44c55ddc 100644--- a/dev-tools/idea/lucene/contrib/demo/demo.iml+++ b/dev-tools/idea/lucene/contrib/demo/demo.iml@@ -22,7 +22,6 @@</library></orderEntry><orderEntry type="module" module-name="analysis-common" />- <orderEntry type="module" module-name="xml-query-parser" /><orderEntry type="module" module-name="lucene" /><orderEntry type="module" module-name="queryparser" /></component>diff --git a/dev-tools/idea/lucene/contrib/xml-query-parser/xml-query-parser.iml b/dev-tools/idea/lucene/contrib/xml-query-parser/xml-query-parser.imldeleted file mode 100644index 5e20f9dcc54..00000000000--- a/dev-tools/idea/lucene/contrib/xml-query-parser/xml-query-parser.iml+++ /dev/null@@ -1,21 +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/xml-query-parser/classes/java" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/xml-query-parser/classes/test" />- <exclude-output />- <content url="file://$MODULE_DIR$">- <sourceFolder url="file://$MODULE_DIR$/src/java" 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="misc" />- <orderEntry type="module" module-name="sandbox" />- <orderEntry type="module" module-name="analysis-common" />- <orderEntry type="module" module-name="lucene" />- <orderEntry type="module" module-name="queryparser" />- <orderEntry type="module" module-name="queries" />- </component>-</module>diff --git a/dev-tools/idea/modules/queryparser/queryparser.iml b/dev-tools/idea/modules/queryparser/queryparser.imlindex e0fddecf1d8..d8bf0a2b99f 100644--- a/dev-tools/idea/modules/queryparser/queryparser.iml+++ b/dev-tools/idea/modules/queryparser/queryparser.iml@@ -14,5 +14,7 @@<orderEntry type="sourceFolder" forTests="false" /><orderEntry type="library" scope="TEST" name="JUnit" level="project" /><orderEntry type="module" module-name="lucene" />+ <orderEntry type="module" module-name="queries" />+ <orderEntry type="module" module-name="sandbox" /></component></module>diff --git a/dev-tools/maven/lucene/contrib/demo/pom.xml.template b/dev-tools/maven/lucene/contrib/demo/pom.xml.templateindex 03ff8016d3f..92c1fdccd67 100644--- a/dev-tools/maven/lucene/contrib/demo/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/demo/pom.xml.template@@ -57,11 +57,6 @@<artifactId>lucene-queryparser</artifactId><version>${project.version}</version></dependency>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-xml-query-parser</artifactId>- <version>${project.version}</version>- </dependency><dependency><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId>diff --git a/dev-tools/maven/lucene/contrib/pom.xml.template b/dev-tools/maven/lucene/contrib/pom.xml.templateindex c4e82c7c83d..a7b980680ec 100644--- a/dev-tools/maven/lucene/contrib/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/pom.xml.template@@ -38,7 +38,6 @@<module>misc</module><module>sandbox</module><module>spatial</module>- <module>xml-query-parser</module></modules><build><directory>build/lucene-contrib-aggregator</directory>diff --git a/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml.template b/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml.templatedeleted file mode 100644index 40c64ff69a1..00000000000--- a/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml.template+++ /dev/null@@ -1,86 +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-xml-query-parser</artifactId>- <packaging>jar</packaging>- <name>Lucene XML Query Parser</name>- <description>XML query parser</description>- <properties>- <module-directory>lucene/contrib/xml-query-parser</module-directory>- <build-directory>../../build/contrib/xml-query-parser</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-test-framework</artifactId>- <version>${project.version}</version>- <scope>test</scope>- </dependency>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-queries</artifactId>- <version>${project.version}</version>- </dependency>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-sandbox</artifactId>- <version>${project.version}</version>- </dependency>- <dependency>- <groupId>${project.groupId}</groupId>- <artifactId>lucene-queryparser</artifactId>- <version>${project.version}</version>- </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>- <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 c38c85e60d3..e6c904a4c17 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -49,7 +49,7 @@excludes="*-src.jar"/><patternset id="binary.root.dist.patterns"- includes="CHANGES.txt,LICENSE.txt,NOTICE.txt,README.txt,MIGRATE.txt,JRE_VERSION_MIGRATION.txt,contrib/**/README*,**/CHANGES.txt,contrib/**/*.sh contrib/**/docs/ contrib/xml-query-parser/*.dtd,lib/*.jar,lib/*LICENSE*.txt,lib/*NOTICE*.txt,contrib/*/lib/*.jar,contrib/*/lib/*LICENSE*.txt,contrib/*/lib/*NOTICE*.txt"+ includes="CHANGES.txt,LICENSE.txt,NOTICE.txt,README.txt,MIGRATE.txt,JRE_VERSION_MIGRATION.txt,contrib/**/README*,**/CHANGES.txt,contrib/**/*.sh contrib/**/docs/,lib/*.jar,lib/*LICENSE*.txt,lib/*NOTICE*.txt,contrib/*/lib/*.jar,contrib/*/lib/*LICENSE*.txt,contrib/*/lib/*NOTICE*.txt"/>@@ -257,7 +257,6 @@<packageset dir="contrib/misc/src/java"/><packageset dir="contrib/sandbox/src/java"/><packageset dir="contrib/spatial/src/java"/>- <packageset dir="contrib/xml-query-parser/src/java"/><!-- end alpha sort --><!-- If the main javadoc Group listing includes an "Other -->@@ -274,7 +273,6 @@<group title="contrib: Misc " packages="org.apache.lucene.misc*"/><group title="contrib: Sandbox" packages="org.apache.lucene.sandbox*"/><group title="contrib: Spatial" packages="org.apache.lucene.spatial*"/>- <group title="contrib: XML Query Parser" packages="org.apache.lucene.xmlparser*"/></sources></invoke-javadoc>diff --git a/lucene/contrib/CHANGES.txt b/lucene/contrib/CHANGES.txtindex 3ee55548ffc..d820c19448d 100644--- a/lucene/contrib/CHANGES.txt+++ b/lucene/contrib/CHANGES.txt@@ -30,6 +30,9 @@ BuildFuzzyLikeThisQuery and SlowCollated* into contrib/sandbox.Removed contrib/queries.+ * LUCENE-3286: Moved remainder of contrib/xml-query-parser to module/queryparser.+ Classes now found at org.apache.lucene.queryparser.xml.*+New Features* LUCENE-2604: Added RegexpQuery support to contrib/queryparser.diff --git a/lucene/contrib/contrib-build.xml b/lucene/contrib/contrib-build.xmlindex 83b03fa0fd5..7e6c062977d 100644--- a/lucene/contrib/contrib-build.xml+++ b/lucene/contrib/contrib-build.xml@@ -283,15 +283,4 @@</ant><property name="suggest.uptodate" value="true"/></target>-- <property name="xml-query-parser.jar" value="${common.dir}/build/contrib/xml-query-parser/lucene-xml-query-parser-${version}.jar"/>- <target name="check-xml-query-parser-uptodate" unless="xml-query-parser.uptodate">- <contrib-uptodate name="xml-query-parser" jarfile="${xml-query-parser.jar}" property="xml-query-parser.uptodate"/>- </target>- <target name="jar-xml-query-parser" unless="xml-query-parser.uptodate" depends="check-xml-query-parser-uptodate">- <ant dir="${common.dir}/contrib/xml-query-parser" target="jar-core" inheritall="false">- <propertyset refid="uptodate.and.compiled.properties"/>- </ant>- <property name="xml-query-parser.uptodate" value="true"/>- </target></project>diff --git a/lucene/contrib/demo/build.xml b/lucene/contrib/demo/build.xmlindex 9a06ed9b0da..f3625f2f766 100644--- a/lucene/contrib/demo/build.xml+++ b/lucene/contrib/demo/build.xml@@ -33,11 +33,10 @@<pathelement path="${analyzers-common.jar}"/><pathelement path="${queryparser.jar}"/><pathelement path="${lucene-core.jar}"/>- <pathelement path="${xml-query-parser.jar}"/><pathelement location="lib/servlet-api-2.4.jar"/></path>- <target name="compile-core" depends="jar-analyzers-common,jar-queryparser,jar-xml-query-parser,common.compile-core" />+ <target name="compile-core" depends="jar-analyzers-common,jar-queryparser,common.compile-core" /><target name="default" depends="jar-core,build-web-demo"/>@@ -52,6 +51,7 @@<include name="${final.name}.jar"/></lib><lib file="${queries.jar}"/>+ <lib file="${queryparser.jar}"/><lib file="${lucene-core.jar}"/></war></target>diff --git a/lucene/contrib/demo/src/java/org/apache/lucene/demo/xmlparser/FormBasedXmlQueryDemo.java b/lucene/contrib/demo/src/java/org/apache/lucene/demo/xmlparser/FormBasedXmlQueryDemo.javaindex ecd64f2feb5..5f1bb702bca 100644--- a/lucene/contrib/demo/src/java/org/apache/lucene/demo/xmlparser/FormBasedXmlQueryDemo.java+++ b/lucene/contrib/demo/src/java/org/apache/lucene/demo/xmlparser/FormBasedXmlQueryDemo.java@@ -40,14 +40,14 @@ import org.apache.lucene.document.TextField;import org.apache.lucene.index.CorruptIndexException;import org.apache.lucene.index.IndexWriter;import org.apache.lucene.index.IndexWriterConfig;+import org.apache.lucene.queryparser.xml.CorePlusExtensionsParser;+import org.apache.lucene.queryparser.xml.QueryTemplateManager;import org.apache.lucene.search.IndexSearcher;import org.apache.lucene.search.Query;import org.apache.lucene.search.ScoreDoc;import org.apache.lucene.search.TopDocs;import org.apache.lucene.store.RAMDirectory;import org.apache.lucene.util.Version;-import org.apache.lucene.xmlparser.CorePlusExtensionsParser;-import org.apache.lucene.xmlparser.QueryTemplateManager;public class FormBasedXmlQueryDemo extends HttpServlet {diff --git a/lucene/contrib/xml-query-parser/build.xml b/lucene/contrib/xml-query-parser/build.xmldeleted file mode 100644index ccd67dbb88b..00000000000--- a/lucene/contrib/xml-query-parser/build.xml+++ /dev/null@@ -1,36 +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="xml-query-parser" default="default">-- <description>- XML query parser- </description>-- <import file="../contrib-build.xml"/>-- <path id="classpath">- <pathelement path="${queryparser.jar}"/>- <pathelement path="${queries.jar}"/>- <pathelement path="${sandbox.jar}"/>- <path refid="base.classpath"/>- </path>-- <target name="compile-core" depends="jar-sandbox,jar-queryparser,jar-queries,common.compile-core" />-</project>diff --git a/lucene/contrib/xml-query-parser/src/java/overview.html b/lucene/contrib/xml-query-parser/src/java/overview.htmldeleted file mode 100644index c1e6a898096..00000000000--- a/lucene/contrib/xml-query-parser/src/java/overview.html+++ /dev/null@@ -1,26 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html>- <head>- <title>- xml-query-parser- </title>- </head>- <body>- xml-query-parser- </body>-</html>\ No newline at end of filediff --git a/modules/queryparser/build.xml b/modules/queryparser/build.xmlindex c75166905b5..4987f37fd66 100644--- a/modules/queryparser/build.xml+++ b/modules/queryparser/build.xml@@ -26,6 +26,14 @@<import file="../../lucene/contrib/contrib-build.xml"/>+ <path id="classpath">+ <pathelement path="${queries.jar}"/>+ <pathelement path="${sandbox.jar}"/>+ <path refid="base.classpath"/>+ </path>++ <target name="compile-core" depends="jar-queries,jar-sandbox,common.compile-core"/>+<target name="dist-maven" depends="jar-core,javadocs,contrib-build.dist-maven"/><target name="javacc" depends="init,javacc-check,javacc-QueryParser,javacc-surround,javacc-flexible"/>diff --git a/lucene/contrib/xml-query-parser/docs/DTDDocStyle.css b/modules/queryparser/docs/xml/DTDDocStyle.csssimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/DTDDocStyle.cssrename to modules/queryparser/docs/xml/DTDDocStyle.cssdiff --git a/lucene/contrib/xml-query-parser/docs/LuceneContribQuery.dtd.entities.html b/modules/queryparser/docs/xml/LuceneContribQuery.dtd.entities.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/LuceneContribQuery.dtd.entities.htmlrename to modules/queryparser/docs/xml/LuceneContribQuery.dtd.entities.htmldiff --git a/lucene/contrib/xml-query-parser/docs/LuceneContribQuery.dtd.html b/modules/queryparser/docs/xml/LuceneContribQuery.dtd.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/LuceneContribQuery.dtd.htmlrename to modules/queryparser/docs/xml/LuceneContribQuery.dtd.htmldiff --git a/lucene/contrib/xml-query-parser/docs/LuceneContribQuery.dtd.org.html b/modules/queryparser/docs/xml/LuceneContribQuery.dtd.org.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/LuceneContribQuery.dtd.org.htmlrename to modules/queryparser/docs/xml/LuceneContribQuery.dtd.org.htmldiff --git a/lucene/contrib/xml-query-parser/docs/LuceneCoreQuery.dtd.entities.html b/modules/queryparser/docs/xml/LuceneCoreQuery.dtd.entities.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/LuceneCoreQuery.dtd.entities.htmlrename to modules/queryparser/docs/xml/LuceneCoreQuery.dtd.entities.htmldiff --git a/lucene/contrib/xml-query-parser/docs/LuceneCoreQuery.dtd.html b/modules/queryparser/docs/xml/LuceneCoreQuery.dtd.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/LuceneCoreQuery.dtd.htmlrename to modules/queryparser/docs/xml/LuceneCoreQuery.dtd.htmldiff --git a/lucene/contrib/xml-query-parser/docs/LuceneCoreQuery.dtd.org.html b/modules/queryparser/docs/xml/LuceneCoreQuery.dtd.org.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/LuceneCoreQuery.dtd.org.htmlrename to modules/queryparser/docs/xml/LuceneCoreQuery.dtd.org.htmldiff --git a/lucene/contrib/xml-query-parser/README.htm b/modules/queryparser/docs/xml/README.htmsimilarity index 100%rename from lucene/contrib/xml-query-parser/README.htmrename to modules/queryparser/docs/xml/README.htmdiff --git a/lucene/contrib/xml-query-parser/docs/cctree.js b/modules/queryparser/docs/xml/cctree.jssimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/cctree.jsrename to modules/queryparser/docs/xml/cctree.jsdiff --git a/lucene/contrib/xml-query-parser/docs/dtreeStyle.css b/modules/queryparser/docs/xml/dtreeStyle.csssimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/dtreeStyle.cssrename to modules/queryparser/docs/xml/dtreeStyle.cssdiff --git a/lucene/contrib/xml-query-parser/docs/elementsIndex.html b/modules/queryparser/docs/xml/elementsIndex.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/elementsIndex.htmlrename to modules/queryparser/docs/xml/elementsIndex.htmldiff --git a/lucene/contrib/xml-query-parser/docs/img/empty.gif b/modules/queryparser/docs/xml/img/empty.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/empty.gifrename to modules/queryparser/docs/xml/img/empty.gifdiff --git a/lucene/contrib/xml-query-parser/docs/img/join.gif b/modules/queryparser/docs/xml/img/join.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/join.gifrename to modules/queryparser/docs/xml/img/join.gifdiff --git a/lucene/contrib/xml-query-parser/docs/img/joinbottom.gif b/modules/queryparser/docs/xml/img/joinbottom.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/joinbottom.gifrename to modules/queryparser/docs/xml/img/joinbottom.gifdiff --git a/lucene/contrib/xml-query-parser/docs/img/line.gif b/modules/queryparser/docs/xml/img/line.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/line.gifrename to modules/queryparser/docs/xml/img/line.gifdiff --git a/lucene/contrib/xml-query-parser/docs/img/minus.gif b/modules/queryparser/docs/xml/img/minus.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/minus.gifrename to modules/queryparser/docs/xml/img/minus.gifdiff --git a/lucene/contrib/xml-query-parser/docs/img/minusbottom.gif b/modules/queryparser/docs/xml/img/minusbottom.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/minusbottom.gifrename to modules/queryparser/docs/xml/img/minusbottom.gifdiff --git a/lucene/contrib/xml-query-parser/docs/img/plus.gif b/modules/queryparser/docs/xml/img/plus.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/plus.gifrename to modules/queryparser/docs/xml/img/plus.gifdiff --git a/lucene/contrib/xml-query-parser/docs/img/plusbottom.gif b/modules/queryparser/docs/xml/img/plusbottom.gifsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/img/plusbottom.gifrename to modules/queryparser/docs/xml/img/plusbottom.gifdiff --git a/lucene/contrib/xml-query-parser/docs/index.html b/modules/queryparser/docs/xml/index.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/index.htmlrename to modules/queryparser/docs/xml/index.htmldiff --git a/lucene/contrib/xml-query-parser/docs/intro.html b/modules/queryparser/docs/xml/intro.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/intro.htmlrename to modules/queryparser/docs/xml/intro.htmldiff --git a/lucene/contrib/xml-query-parser/docs/toc.html b/modules/queryparser/docs/xml/toc.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/docs/toc.htmlrename to modules/queryparser/docs/xml/toc.htmldiff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/CoreParser.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.javasimilarity index 98%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/CoreParser.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.javaindex bcaf80f3c42..3b19f870b53 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/CoreParser.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java@@ -1,9 +1,9 @@-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.queryparser.classic.QueryParser;+import org.apache.lucene.queryparser.xml.builders.*;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.builders.*;import org.w3c.dom.Document;import org.w3c.dom.Element;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/CorePlusExtensionsParser.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/CorePlusExtensionsParser.javasimilarity index 96%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/CorePlusExtensionsParser.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/CorePlusExtensionsParser.javaindex adead89ddc9..0676b55f7e7 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/CorePlusExtensionsParser.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/CorePlusExtensionsParser.java@@ -1,8 +1,9 @@-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.queryparser.classic.QueryParser;-import org.apache.lucene.xmlparser.builders.*;+import org.apache.lucene.queryparser.xml.builders.*;+/*** Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See the NOTICE file distributed withdiff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/DOMUtils.javasimilarity index 99%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/DOMUtils.javaindex 3426780b58c..5b30b00a6e4 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/DOMUtils.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.w3c.dom.Document;import org.w3c.dom.Element;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/FilterBuilder.javasimilarity index 95%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/FilterBuilder.javaindex 062796c40cd..691cfe5e85c 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/FilterBuilder.java@@ -1,7 +1,7 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.apache.lucene.search.Filter;import org.w3c.dom.Element;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilderFactory.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/FilterBuilderFactory.javasimilarity index 97%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilderFactory.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/FilterBuilderFactory.javaindex 66f6f2421ab..30677d109ba 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilderFactory.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/FilterBuilderFactory.java@@ -1,7 +1,7 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.apache.lucene.search.Filter;import org.w3c.dom.Element;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/ParserException.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/ParserException.javasimilarity index 96%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/ParserException.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/ParserException.javaindex eb3e624974f..8ef33c7baaf 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/ParserException.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/ParserException.java@@ -1,7 +1,7 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;/*** Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See the NOTICE file distributed withdiff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryBuilder.javasimilarity index 96%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryBuilder.javaindex 23930e4f78a..9008265df9f 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.apache.lucene.search.Query;import org.w3c.dom.Element;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryBuilderFactory.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryBuilderFactory.javasimilarity index 97%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryBuilderFactory.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryBuilderFactory.javaindex ad5a0459829..0fab70885fb 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryBuilderFactory.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryBuilderFactory.java@@ -1,7 +1,7 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.apache.lucene.search.Query;import org.w3c.dom.Element;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryTemplateManager.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryTemplateManager.javasimilarity index 99%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryTemplateManager.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryTemplateManager.javaindex ed2bab044a6..12525ff9950 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryTemplateManager.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/QueryTemplateManager.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;import org.w3c.dom.Document;import org.w3c.dom.Element;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanFilterBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BooleanFilterBuilder.javasimilarity index 89%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanFilterBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BooleanFilterBuilder.javaindex 334d2e158d1..36f153a8180 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanFilterBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BooleanFilterBuilder.java@@ -1,15 +1,15 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.queries.BooleanFilter;import org.apache.lucene.search.Filter;import org.apache.lucene.queries.FilterClause;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.FilterBuilder;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.FilterBuilder;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;import org.w3c.dom.Node;import org.w3c.dom.NodeList;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BooleanQueryBuilder.javasimilarity index 93%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BooleanQueryBuilder.javaindex 54f949e99e3..53f64a79214 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BooleanQueryBuilder.java@@ -1,14 +1,14 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.BooleanClause;import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;import org.w3c.dom.Node;import org.w3c.dom.NodeList;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingQueryBuilder.javasimilarity index 89%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingQueryBuilder.javaindex e6993f67c06..6d4725c9344 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingQueryBuilder.java@@ -1,10 +1,10 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.queries.BoostingQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingTermBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingTermBuilder.javasimilarity index 90%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingTermBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingTermBuilder.javaindex 1860839f14c..d5ebee9501c 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingTermBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/BoostingTermBuilder.java@@ -1,11 +1,11 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.index.Term;import org.apache.lucene.search.payloads.AveragePayloadFunction;import org.apache.lucene.search.payloads.PayloadTermQuery;import org.apache.lucene.search.spans.SpanQuery;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;/**diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/CachedFilterBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/CachedFilterBuilder.javasimilarity index 97%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/CachedFilterBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/CachedFilterBuilder.javaindex 4e12bad69bc..246138a897d 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/CachedFilterBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/CachedFilterBuilder.java@@ -1,13 +1,13 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;+import org.apache.lucene.queryparser.xml.*;import org.apache.lucene.search.CachingWrapperFilter;import org.apache.lucene.search.Filter;import org.apache.lucene.search.Query;import org.apache.lucene.search.QueryWrapperFilter;-import org.apache.lucene.xmlparser.*;import org.w3c.dom.Element;import java.util.Map;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/ConstantScoreQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/ConstantScoreQueryBuilder.javasimilarity index 83%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/ConstantScoreQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/ConstantScoreQueryBuilder.javaindex c5fff35c1b1..0a24b450d99 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/ConstantScoreQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/ConstantScoreQueryBuilder.java@@ -1,11 +1,11 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.ConstantScoreQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.FilterBuilderFactory;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.FilterBuilderFactory;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/DuplicateFilterBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/DuplicateFilterBuilder.javasimilarity index 90%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/DuplicateFilterBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/DuplicateFilterBuilder.javaindex 18926821462..5537511b303 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/DuplicateFilterBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/DuplicateFilterBuilder.java@@ -1,13 +1,13 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.FilterBuilder;+import org.apache.lucene.queryparser.xml.ParserException;import org.apache.lucene.sandbox.queries.DuplicateFilter;import org.apache.lucene.search.Filter;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.FilterBuilder;-import org.apache.lucene.xmlparser.ParserException;import org.w3c.dom.Element;/**diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FilteredQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/FilteredQueryBuilder.javasimilarity index 88%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FilteredQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/FilteredQueryBuilder.javaindex 431d2c2c112..27c4d7db649 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FilteredQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/FilteredQueryBuilder.java@@ -1,15 +1,15 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.Filter;import org.apache.lucene.search.FilteredQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.FilterBuilder;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.FilterBuilder;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;/**diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FuzzyLikeThisQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/FuzzyLikeThisQueryBuilder.javasimilarity index 91%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FuzzyLikeThisQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/FuzzyLikeThisQueryBuilder.javaindex 775b7306061..0e806211cd6 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FuzzyLikeThisQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/FuzzyLikeThisQueryBuilder.java@@ -1,12 +1,12 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.analysis.Analyzer;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.apache.lucene.sandbox.queries.FuzzyLikeThisQuery;import org.apache.lucene.search.FuzzyQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;import org.w3c.dom.Element;import org.w3c.dom.NodeList;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/LikeThisQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/LikeThisQueryBuilder.javasimilarity index 94%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/LikeThisQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/LikeThisQueryBuilder.javaindex 3652fa65317..ff429e214bf 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/LikeThisQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/LikeThisQueryBuilder.java@@ -1,7 +1,7 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import java.io.IOException;import java.io.StringReader;@@ -12,10 +12,10 @@ import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.TokenStream;import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;import org.apache.lucene.queries.mlt.MoreLikeThisQuery;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/MatchAllDocsQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/MatchAllDocsQueryBuilder.javasimilarity index 86%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/MatchAllDocsQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/MatchAllDocsQueryBuilder.javaindex 3ea19a9395d..42952486411 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/MatchAllDocsQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/MatchAllDocsQueryBuilder.java@@ -1,9 +1,9 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.MatchAllDocsQuery;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/NumericRangeFilterBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeFilterBuilder.javasimilarity index 96%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/NumericRangeFilterBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeFilterBuilder.javaindex af834e14a66..e368eecd099 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/NumericRangeFilterBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeFilterBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -22,9 +22,9 @@ import org.apache.lucene.search.DocIdSet;import org.apache.lucene.search.Filter;import org.apache.lucene.search.NumericRangeFilter;import org.apache.lucene.util.NumericUtils;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.FilterBuilder;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.FilterBuilder;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;import java.io.IOException;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/NumericRangeQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeQueryBuilder.javasimilarity index 95%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/NumericRangeQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeQueryBuilder.javaindex af58035c3b7..17a1b6c625d 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/NumericRangeQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeQueryBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,9 +20,9 @@ package org.apache.lucene.xmlparser.builders;import org.apache.lucene.search.NumericRangeQuery;import org.apache.lucene.search.Query;import org.apache.lucene.util.NumericUtils;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;/**diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/RangeFilterBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/RangeFilterBuilder.javasimilarity index 87%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/RangeFilterBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/RangeFilterBuilder.javaindex 836f0e35455..2744be67843 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/RangeFilterBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/RangeFilterBuilder.java@@ -1,13 +1,13 @@/** Created on 25-Jan-2006*/-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.Filter;import org.apache.lucene.search.TermRangeFilter;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.FilterBuilder;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.FilterBuilder;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanBuilderBase.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanBuilderBase.javasimilarity index 90%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanBuilderBase.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanBuilderBase.javaindex abdda3bf5da..64877095e9e 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanBuilderBase.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanBuilderBase.java@@ -1,7 +1,7 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.Query;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanFirstBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanFirstBuilder.javasimilarity index 90%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanFirstBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanFirstBuilder.javaindex 0cabc986a6f..acd604a573a 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanFirstBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanFirstBuilder.java@@ -1,9 +1,9 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.spans.SpanFirstQuery;import org.apache.lucene.search.spans.SpanQuery;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNearBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNearBuilder.javasimilarity index 91%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNearBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNearBuilder.javaindex 58d64799f1c..6d15938b928 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNearBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNearBuilder.java@@ -1,9 +1,9 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.spans.SpanNearQuery;import org.apache.lucene.search.spans.SpanQuery;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;import org.w3c.dom.Node;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNotBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNotBuilder.javasimilarity index 91%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNotBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNotBuilder.javaindex 4b65042b13c..7a76c75057b 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNotBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNotBuilder.java@@ -1,9 +1,9 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.spans.SpanNotQuery;import org.apache.lucene.search.spans.SpanQuery;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrBuilder.javasimilarity index 91%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrBuilder.javaindex c246a8ca7c3..527be75a023 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrBuilder.java@@ -1,9 +1,9 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.spans.SpanOrQuery;import org.apache.lucene.search.spans.SpanQuery;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;import org.w3c.dom.Node;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrTermsBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrTermsBuilder.javasimilarity index 94%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrTermsBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrTermsBuilder.javaindex 1f689897377..df46e9dee62 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrTermsBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrTermsBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.TokenStream;@@ -8,8 +8,8 @@ import org.apache.lucene.search.spans.SpanOrQuery;import org.apache.lucene.search.spans.SpanQuery;import org.apache.lucene.search.spans.SpanTermQuery;import org.apache.lucene.util.BytesRef;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;import java.io.IOException;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanQueryBuilder.javasimilarity index 85%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanQueryBuilder.javaindex c00bbb74c79..fc27e480dae 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanQueryBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more* contributor license agreements. See the NOTICE file distributed with@@ -16,8 +16,8 @@ package org.apache.lucene.xmlparser.builders;* limitations under the License.*/import org.apache.lucene.search.spans.SpanQuery;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;public interface SpanQueryBuilder extends QueryBuilder {diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanQueryBuilderFactory.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanQueryBuilderFactory.javasimilarity index 93%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanQueryBuilderFactory.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanQueryBuilderFactory.javaindex 2ba1c7f06f4..b37491ff04e 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanQueryBuilderFactory.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanQueryBuilderFactory.java@@ -1,8 +1,8 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.search.Query;import org.apache.lucene.search.spans.SpanQuery;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;import java.util.HashMap;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanTermBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanTermBuilder.javasimilarity index 89%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanTermBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanTermBuilder.javaindex 48eb976a48c..b9f97af2343 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanTermBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanTermBuilder.java@@ -1,10 +1,10 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.index.Term;import org.apache.lucene.search.spans.SpanQuery;import org.apache.lucene.search.spans.SpanTermQuery;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermQueryBuilder.javasimilarity index 86%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermQueryBuilder.javaindex 8c396dac816..6b9ad7355cf 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermQueryBuilder.java@@ -1,11 +1,11 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.index.Term;import org.apache.lucene.search.Query;import org.apache.lucene.search.TermQuery;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermsFilterBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsFilterBuilder.javasimilarity index 91%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermsFilterBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsFilterBuilder.javaindex f1dec279c95..abffb77e919 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermsFilterBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsFilterBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.TokenStream;@@ -7,9 +7,9 @@ import org.apache.lucene.index.Term;import org.apache.lucene.search.Filter;import org.apache.lucene.queries.TermsFilter;import org.apache.lucene.util.BytesRef;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.FilterBuilder;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.FilterBuilder;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Element;import java.io.IOException;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermsQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsQueryBuilder.javasimilarity index 92%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermsQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsQueryBuilder.javaindex e0f71a68286..a550090e2ee 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermsQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsQueryBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.TokenStream;@@ -9,9 +9,9 @@ import org.apache.lucene.search.BooleanQuery;import org.apache.lucene.search.Query;import org.apache.lucene.search.TermQuery;import org.apache.lucene.util.BytesRef;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;import java.io.IOException;diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/UserInputQueryBuilder.java b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/UserInputQueryBuilder.javasimilarity index 93%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/UserInputQueryBuilder.javarename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/UserInputQueryBuilder.javaindex 12a517b3f50..ae683312dd2 100644--- a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/UserInputQueryBuilder.java+++ b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/UserInputQueryBuilder.java@@ -1,13 +1,13 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.queryparser.classic.ParseException;import org.apache.lucene.queryparser.classic.QueryParser;import org.apache.lucene.search.Query;import org.apache.lucene.util.Version;-import org.apache.lucene.xmlparser.DOMUtils;-import org.apache.lucene.xmlparser.ParserException;-import org.apache.lucene.xmlparser.QueryBuilder;+import org.apache.lucene.queryparser.xml.DOMUtils;+import org.apache.lucene.queryparser.xml.ParserException;+import org.apache.lucene.queryparser.xml.QueryBuilder;import org.w3c.dom.Element;/**diff --git a/lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/package.html b/modules/queryparser/src/java/org/apache/lucene/queryparser/xml/package.htmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/package.htmlrename to modules/queryparser/src/java/org/apache/lucene/queryparser/xml/package.htmldiff --git a/lucene/contrib/xml-query-parser/LuceneContribQuery.dtd b/modules/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneContribQuery.dtdsimilarity index 100%rename from lucene/contrib/xml-query-parser/LuceneContribQuery.dtdrename to modules/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneContribQuery.dtddiff --git a/lucene/contrib/xml-query-parser/LuceneCoreQuery.dtd b/modules/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtdsimilarity index 100%rename from lucene/contrib/xml-query-parser/LuceneCoreQuery.dtdrename to modules/queryparser/src/resources/org/apache/lucene/queryparser/xml/LuceneCoreQuery.dtddiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BooleanFilter.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanFilter.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BooleanFilter.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanFilter.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BooleanQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BooleanQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BooleanQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingTermQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/BoostingTermQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/CachedFilter.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/CachedFilter.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/CachedFilter.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/CachedFilter.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/ConstantScoreQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/ConstantScoreQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/ConstantScoreQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/ConstantScoreQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/DuplicateFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/DuplicateFilterQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/DuplicateFilterQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/DuplicateFilterQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/FuzzyLikeThisQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/FuzzyLikeThisQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/FuzzyLikeThisQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/FuzzyLikeThisQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/LikeThisQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/LikeThisQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/LikeThisQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/LikeThisQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/MatchAllDocsQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/MatchAllDocsQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/MatchAllDocsQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/MatchAllDocsQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NestedBooleanQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NestedBooleanQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NestedBooleanQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NestedBooleanQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NumericRangeFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeFilterQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NumericRangeFilterQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeFilterQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NumericRangeQueryQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeQueryQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NumericRangeQueryQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/NumericRangeQueryQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/RangeFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/RangeFilterQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/RangeFilterQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/RangeFilterQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/SpanQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/SpanQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/SpanQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/SpanQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsFilterQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsFilterQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsFilterQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsFilterQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TermsQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.javasimilarity index 99%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.javaindex 560f998d63c..7a2f8d237ba 100644--- a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestQueryTemplateManager.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TestQueryTemplateManager.javasimilarity index 99%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestQueryTemplateManager.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TestQueryTemplateManager.javaindex 041b493e986..2c021348dc9 100644--- a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestQueryTemplateManager.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/TestQueryTemplateManager.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser;+package org.apache.lucene.queryparser.xml;/*** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQuery.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQuery.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQuery.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQuery.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQueryCustomField.xml b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQueryCustomField.xmlsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQueryCustomField.xmlrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/UserInputQueryCustomField.xmldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumBooleanQuery.xsl b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumBooleanQuery.xslsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumBooleanQuery.xslrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumBooleanQuery.xsldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumFilteredQuery.xsl b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumFilteredQuery.xslsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumFilteredQuery.xslrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumFilteredQuery.xsldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumLuceneClassicQuery.xsl b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumLuceneClassicQuery.xslsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumLuceneClassicQuery.xslrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/albumLuceneClassicQuery.xsldiff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/builders/TestNumericRangeFilterBuilder.javasimilarity index 98%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/builders/TestNumericRangeFilterBuilder.javaindex cae88aa2b73..1fce827473b 100644--- a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/builders/TestNumericRangeFilterBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -25,7 +25,7 @@ import org.apache.lucene.search.Filter;import org.apache.lucene.search.NumericRangeFilter;import org.apache.lucene.store.Directory;import org.apache.lucene.util.LuceneTestCase;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Document;import org.xml.sax.SAXException;diff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.java b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/builders/TestNumericRangeQueryBuilder.javasimilarity index 98%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.javarename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/builders/TestNumericRangeQueryBuilder.javaindex edd42058f89..bdc3207fe26 100644--- a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.java+++ b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/builders/TestNumericRangeQueryBuilder.java@@ -1,4 +1,4 @@-package org.apache.lucene.xmlparser.builders;+package org.apache.lucene.queryparser.xml.builders;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@ -20,7 +20,7 @@ package org.apache.lucene.xmlparser.builders;import org.apache.lucene.search.NumericRangeQuery;import org.apache.lucene.search.Query;import org.apache.lucene.util.LuceneTestCase;-import org.apache.lucene.xmlparser.ParserException;+import org.apache.lucene.queryparser.xml.ParserException;import org.w3c.dom.Document;import org.xml.sax.SAXException;diff --git a/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/reuters21578.txt b/modules/queryparser/src/test/org/apache/lucene/queryparser/xml/reuters21578.txtsimilarity index 100%rename from lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/reuters21578.txtrename to modules/queryparser/src/test/org/apache/lucene/queryparser/xml/reuters21578.txtdiff --git a/lucene/contrib/xml-query-parser/dtddocbuild.xml b/modules/queryparser/xmldtddocbuild.xmlsimilarity index 95%rename from lucene/contrib/xml-query-parser/dtddocbuild.xmlrename to modules/queryparser/xmldtddocbuild.xmlindex 31ce021a28d..60bb3dfb5e2 100644--- a/lucene/contrib/xml-query-parser/dtddocbuild.xml+++ b/modules/queryparser/xmldtddocbuild.xml@@ -43,7 +43,7 @@sourceDir="."destDir="docs"docTitle = "Lucene XML Query syntax">- <include name="*.dtd"/>+ <include name="org/apache/lucene/queryparser/xml/*.dtd"/></DTDDoc></target>diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex d36f9a5bc4d..f41044ea4c3 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -302,6 +302,9 @@ Other Changesit's easier to add other DirectoryFactory's without static caching hacks.(Mark Miller)+* LUCENE-3286: 'luke' ant target has been disabled due to incompatibilities with XML+ queryparser location (Chris Male)+Documentation----------------------diff --git a/solr/build.xml b/solr/build.xmlindex 7d021851f43..f377b6a69d1 100644--- a/solr/build.xml+++ b/solr/build.xml@@ -29,7 +29,7 @@<echo message="Use 'ant javadocs' to build javadocs under build/docs/api" /><echo message="Use 'ant generate-maven-artifacts' to generate maven artifacts." /><echo message="Use 'ant package' to generate zip, tgz for distribution." />- <echo message="Use 'ant luke' to start luke. see: http://luke.googlecode.com" />+ <!--<echo message="Use 'ant luke' to start luke. see: http://luke.googlecode.com" />--><echo message="Use 'ant test' to run unit tests." /></target>@@ -87,10 +87,11 @@<target name="proxy.setup" if="proxy.specified"><setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.user}" proxypassword="${proxy.password}"/></target>-+ <!--LUCENE-3286: Luke is incompatible with new XML QP location and target is not flexible+ when it comes to incompatible changes. Update when Luke has updated.<target name="compile-xml-query-parser">- <ant dir="${common.dir}/contrib/xml-query-parser" target="compile-core" inheritAll="false">+ <ant dir="${common.dir}/../modules/queryparser" target="compile-core" inheritAll="false"><propertyset refid="uptodate.and.compiled.properties"/></ant></target>@@ -104,7 +105,7 @@</target><path id="luke.classpath"><pathelement location="${common.dir}/build/classes/java" />- <pathelement location="${common.dir}/build/contrib/xml-query-parser/classes/java" />+ <pathelement location="${common.dir}/../modules/queryparser/build/classes/java" /></path><target name="luke" depends="luke-download"><java fork="true"@@ -120,7 +121,7 @@<path refid="test.classpath"/></classpath></java>- </target>+ </target>--><!-- ========================================================================= --><!-- ========================== BUILD/TEST TASKS ============================= -->