You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2014/02/20 14:59:58 UTC
svn commit: r1570190 - in
/lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser:
QueryParser.java QueryParser.jj package.html
Author: rmuir
Date: Thu Feb 20 13:59:58 2014
New Revision: 1570190
URL: http://svn.apache.org/r1570190
Log:
LUCENE-5205: commit paul's patch, deprecating surround for spans
Modified:
lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java
lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj
lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/package.html
Modified: lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java?rev=1570190&r1=1570189&r2=1570190&view=diff
==============================================================================
--- lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java (original)
+++ lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.java Thu Feb 20 13:59:58 2014
@@ -41,8 +41,11 @@ import org.apache.lucene.queryparser.sur
* prefix from 2-99. So, for example, 3W(a, b) means that terms a and b
* must appear within three positions of each other, or in other words, up
* to two terms may appear between a and b. </p>
+ *
+ * @deprecated Use {@link org.apache.lucene.queryparser.spans.SpanQueryParser} instead.
*/
+@Deprecated
public class QueryParser implements QueryParserConstants {
final int minimumPrefixLength = 3;
final int minimumCharsInTrunc = 3;
Modified: lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj?rev=1570190&r1=1570189&r2=1570190&view=diff
==============================================================================
--- lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj (original)
+++ lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/QueryParser.jj Thu Feb 20 13:59:58 2014
@@ -70,8 +70,11 @@ import org.apache.lucene.queryparser.sur
* prefix from 2-99. So, for example, 3W(a, b) means that terms a and b
* must appear within three positions of each other, or in other words, up
* to two terms may appear between a and b. </p>
+ *
+ * @deprecated Use {@link org.apache.lucene.queryparser.spans.SpanQueryParser} instead.
*/
+@Deprecated
public class QueryParser {
final int minimumPrefixLength = 3;
final int minimumCharsInTrunc = 3;
Modified: lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/package.html
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/package.html?rev=1570190&r1=1570189&r2=1570190&view=diff
==============================================================================
--- lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/package.html (original)
+++ lucene/dev/branches/lucene5205/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/parser/package.html Thu Feb 20 13:59:58 2014
@@ -21,8 +21,10 @@
</head>
<body>
This package contains the QueryParser.jj source file for the Surround parser.
- <p/>
+ <p>
Parsing the text of a query results in a SrndQuery in the
org.apache.lucene.queryparser.surround.query package.
+ <p/>
+ @deprecated Use {@link org.apache.lucene.queryparser.spans} instead.
</body>
</html>