LUCENE-3285: Moved flexible queryparser to queryparser module

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1146548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christopher John Male 2011-07-14 02:56:54 +00:00
parent 6b700e1183
commit a684f6d497
172 changed files with 899 additions and 1086 deletions

View File

@ -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"/>

View File

@ -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" />

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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"

View File

@ -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.

View File

@ -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, &quot;Error&quot;));${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(&quot;line.separator&quot;, &quot;\n&quot;);"
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>

View File

@ -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"/>

View File

@ -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, &quot;Error&quot;));${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(&quot;line.separator&quot;, &quot;\n&quot;);"
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>

View File

@ -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

View File

@ -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>

View File

@ -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 from

View File

@ -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 three

View File

@ -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 of

View File

@ -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.

View File

@ -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 tree
and 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.

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 field

View File

@ -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 handler
abstract 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 reference
implementation.
</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 config
information 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 a
reference implementation.
</p>
</body>
</html
</html>

View File

@ -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 more

View File

@ -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 a

View File

@ -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 of

View File

@ -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 an

View File

@ -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.

View File

@ -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 query

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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 contains

View File

@ -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 typed

View File

@ -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 subtree

View File

@ -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

View File

@ -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) for

View File

@ -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 tokens

View File

@ -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

View File

@ -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 to

View File

@ -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 list

View File

@ -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.

View File

@ -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 implements
public 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()

View File

@ -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 like

View File

@ -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 {

View File

@ -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 meet

View File

@ -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 QueryNode

View File

@ -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()
*/
@Override
public String toString() {

View File

@ -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:

View File

@ -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.

View File

@ -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

View File

@ -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 that

View File

@ -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

View File

@ -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 extended
by 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>

View File

@ -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, which
is usually used to be executed against a search index.
</p>

View File

@ -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

View File

@ -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} interface

View File

@ -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 interfaces
that should be implemented by the parsers.
Parsers produce QueryNode Trees from a string object.

View File

@ -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>

View File

@ -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>

View File

@ -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 {

View File

@ -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 query

View File

@ -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 of

View File

@ -29,28 +29,28 @@ The package <tt>org.apache.lucene.queryParser.processors</tt> contains interface
that 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>

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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 the
supported syntax and query parser functionalities.
</p>

View File

@ -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 default
if (!(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);
}

View File

@ -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>

View File

@ -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 type
or 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>

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
/**

View File

@ -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;
/**

View File

@ -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;
/**

View File

@ -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;
/**

View File

@ -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;
/**

View File

@ -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;
/**

View File

@ -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;
/**

View File

@ -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;
/**

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
/**

Some files were not shown because too many files have changed in this diff Show More