Apache Solr open-source search software
- Replaced references to the old package name com.lucene with org.apache.lucene - Fixed a few Javadocs problems. PR: Obtained from: Submitted by: Reviewed by:
Otis Gospodnetic80f9f1db3856
diff --git a/docs/index.html b/docs/index.htmlindex ebed1ec2a07..fdd1c3f1e4b 100644--- a/docs/index.html+++ b/docs/index.html@@ -18,6 +18,8 @@<meta name="author" value="Doug Cutting"><meta name="email" value="[email protected]">++<title>Jakarta Lucene - Overview - Jakarta Lucene</title></head>@@ -188,3 +190,9 @@ developed in an open and cooperative fashion.++++++diff --git a/docs/resources.html b/docs/resources.htmlindex 64790e80218..8f8fa39fa35 100644--- a/docs/resources.html+++ b/docs/resources.html@@ -16,6 +16,8 @@<meta name="author" value="Doug Cutting"><meta name="email" value="[email protected]">++<title>Jakarta Lucene - Resources - Jakarta Lucene</title></head>@@ -139,3 +141,9 @@++++++diff --git a/docs/whoweare.html b/docs/whoweare.htmlindex bec1547b129..9fc886e0b0e 100644--- a/docs/whoweare.html+++ b/docs/whoweare.html@@ -16,6 +16,8 @@<meta name="author" value="Doug Cutting"><meta name="email" value="[email protected]">++<title>Jakarta Lucene - Who We Are - Jakarta Lucene</title></head>@@ -191,3 +193,9 @@ the <a href="http://jakarta.apache.org/site/mail.html">Jakarta-Lucene mailing li++++++diff --git a/src/java/org/apache/lucene/manifest b/src/java/org/apache/lucene/manifestindex 9421cc6f3b9..a8f07da4174 100644--- a/src/java/org/apache/lucene/manifest+++ b/src/java/org/apache/lucene/manifest@@ -1,8 +1,8 @@-Name: com/lucene+Name: org/apache/luceneSpecification-Title: Lucene Search EngineSpecification-Version: $Name$Specification-Vendor: Lucene-Implementation-Title: com.lucene+Implementation-Title: org.apache.luceneImplementation-Version: $Name$ $Date$Implementation-Vendor: Lucenediff --git a/src/java/org/apache/lucene/queryParser/QueryParser.jj b/src/java/org/apache/lucene/queryParser/QueryParser.jjindex c3ba709a6da..571f770139d 100644--- a/src/java/org/apache/lucene/queryParser/QueryParser.jj+++ b/src/java/org/apache/lucene/queryParser/QueryParser.jj@@ -97,12 +97,16 @@ import org.apache.lucene.search.*;* Clause ::= ["+", "-"] [<TERM> ":"] ( <TERM> | "(" Query ")" )* </pre>*+ * <p>+ * Examples of appropriately formatted queries can be found in the <a+ * href="http://cvs.apache.org/viewcvs/jakarta-lucene/src/test/org/apache/lucene/queryParser/TestQueryParser.java?rev=1&content-type=text/vnd.viewcvs-markup">test cases</a>.+ * </p>+ ** @author Brian Goetz*/public class QueryParser {- /** Parses a query string, returning a- * <a href="lucene.search.Query.html">Query</a>.+ /** Parses a query string, returning a {@link org.apache.lucene.search.Query}.* @param query the query string to be parsed.* @param field the default field for query terms.* @param analyzer used to find terms in the query text.diff --git a/src/java/org/apache/lucene/queryParser/package.html b/src/java/org/apache/lucene/queryParser/package.htmlindex 5a3b8368794..cfbc0815aa5 100644--- a/src/java/org/apache/lucene/queryParser/package.html+++ b/src/java/org/apache/lucene/queryParser/package.html@@ -9,7 +9,7 @@ A simple query parser implemented with JavaCC.<p>Note that JavaCC defines lots of public, classes, methods and fieldsthat do not need to be public. These clutter the documentation. Sorry.-<p>Note that because JavaCC defines a class named <tt>Token</tt>, <tt>com.lucene.analysis.Token</tt>+<p>Note that because JavaCC defines a class named <tt>Token</tt>, <tt>org.apache.lucene.analysis.Token</tt>must always be fully qualified in sourced code in this package.</body></html>diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.javaindex 7bf4e1df583..3961bb2d1e9 100644--- a/src/java/org/apache/lucene/store/FSDirectory.java+++ b/src/java/org/apache/lucene/store/FSDirectory.java@@ -85,7 +85,7 @@ final public class FSDirectory extends Directory {** @param path the path to the directory.* @param create if true, create, or erase any existing contents.- * @returns the FSDirectory for the named file. */+ * @return the FSDirectory for the named file. */public static FSDirectory getDirectory(String path, boolean create)throws IOException {return getDirectory(new File(path), create);@@ -99,7 +99,7 @@ final public class FSDirectory extends Directory {** @param file the path to the directory.* @param create if true, create, or erase any existing contents.- * @returns the FSDirectory for the named file. */+ * @return the FSDirectory for the named file. */public static FSDirectory getDirectory(File file, boolean create)throws IOException {file = new File(file.getCanonicalPath());diff --git a/src/java/overview.html b/src/java/overview.htmlindex 17d62be6493..50b75520a67 100644--- a/src/java/overview.html+++ b/src/java/overview.html@@ -8,12 +8,12 @@The Jakarta Lucene API is divided into several packages:<ul><li>-<b><a href="org/apache/lucene/util/package-summary.html">com.lucene.util</a></b>+<b><a href="org/apache/lucene/util/package-summary.html">org.apache.lucene.util</a></b>contains a few handy data structures, e.g., <a href="org/apache/lucene/util/BitVector.html">BitVector</a>and <a href="org/apache/lucene/util/PriorityQueue.html">PriorityQueue</a>.</li><li>-<b><a href="org/apache/lucene/store/package-summary.html">com.lucene.store</a></b>+<b><a href="org/apache/lucene/store/package-summary.html">org.apache.lucene.store</a></b>defines an abstract class for storing persistent data, the <a href="org/apache/lucene/store/Directory.html">Directory</a>,a collection of named files written by an <a href="org/apache/lucene/store/OutputStream.html">OutputStream</a>and read by an <a href="org/apache/lucene/store/InputStream.html">InputStream</a>. @@ -22,13 +22,13 @@ which uses a file system directory to store files, and <a href="org/apache/lucenwhich implements files as memory-resident data structures.</li><li>-<b><a href="org/apache/lucene/document/package-summary.html">com.lucene.document</a></b>+<b><a href="org/apache/lucene/document/package-summary.html">org.apache.lucene.document</a></b>provides a simple <a href="org/apache/lucene/document/Document.html">Document</a>class. A document is simply a set of named <a href="org/apache/lucene/document/Field.html">Field</a>'s,whose values may be strings or instances of <a href="http://java.sun.com/products/jdk/1.2/docs/api/java/io/Reader.html">java.io.Reader</a>.</li><li>-<b><a href="org/apache/lucene/analysis/package-summary.html">com.lucene.analysis</a></b>+<b><a href="org/apache/lucene/analysis/package-summary.html">org.apache.lucene.analysis</a></b>defines an abstract <a href="org/apache/lucene/analysis/Analyzer.html">Analyzer</a>API for converting text from a <a href="http://java.sun.com/products/jdk/1.2/docs/api/java/io/Reader.html">java.io.Reader</a>into a <a href="org/apache/lucene/analysis/TokenStream.html">TokenStream</a>,@@ -39,13 +39,13 @@ A few simple implemenations are provided, including <a href="org/apache/lucene/aand the grammar-based <a href="org/apache/lucene/analysis/standard/StandardAnalyzer.html">StandardAnalyzer</a>.</li><li>-<b><a href="org/apache/lucene/index/package-summary.html">com.lucene.index</a></b>+<b><a href="org/apache/lucene/index/package-summary.html">org.apache.lucene.index</a></b>provides two primary classes: <a href="org/apache/lucene/index/IndexWriter.html">IndexWriter</a>,which creates and adds documents to indices; and <a href="org/apache/lucene/index/IndexReader.html">IndexReader</a>,which accesses the data in the index.</li><li>-<b><a href="org/apache/lucene/search/package-summary.html">com.lucene.search</a></b>+<b><a href="org/apache/lucene/search/package-summary.html">org.apache.lucene.search</a></b>provides data structures to represent queries (<a href="org/apache/lucene/search/TermQuery.html">TermQuery</a>for individual words, <a href="org/apache/lucene/search/PhraseQuery.html">PhraseQuery</a>for phrases, and <a href="org/apache/lucene/search/BooleanQuery.html">BooleanQuery</a>@@ -55,7 +55,7 @@ which turns queries into <a href="org/apache/lucene/search/Hits.html">Hits</a>.implements search over a single IndexReader.</li><li>-<b><a href="org/apache/lucene/queryParser/package-summary.html">com.lucene.queryParser</a></b>+<b><a href="org/apache/lucene/queryParser/package-summary.html">org.apache.lucene.queryParser</a></b>uses <a href="http://www.suntest.com/JavaCC/">JavaCC</a> to implement a<a href="org/apache/lucene/queryParser/QueryParser.html">QueryParser</a>.</li></ul>@@ -68,7 +68,7 @@ adding<li>Create an <a href="org/apache/lucene/index/IndexWriter.html">IndexWriter</a>-and add documents to to it with <a href="org/apache/lucene/index/IndexWriter.html#addDocument(com.lucene.document.Document)">addDocument()</a>;</li>+and add documents to to it with <a href="org/apache/lucene/index/IndexWriter.html#addDocument(org.apache.lucene.document.Document)">addDocument()</a>;</li><li>Call <a href="org/apache/lucene/queryParser/QueryParser.html#parse(java.lang.String)">QueryParser.parse()</a>@@ -76,7 +76,7 @@ to build a query from a string; and</li><li>Create an <a href="org/apache/lucene/search/IndexSearcher.html">IndexSearcher</a>-and pass the query to it's <a href="org/apache/lucene/search/Searcher.html#search(com.lucene.search.Query)">search()</a>+and pass the query to it's <a href="org/apache/lucene/search/Searcher.html#search(org.apache.lucene.search.Query)">search()</a>method.</li></ol>Some simple examples of code which does this are: