Skip to content

Apache Lucene open-source search software

javadoc fixup

Erik Hatcher790dfc1490b4
diff --git a/build.xml b/build.xml
index 00d3f95448e..6f6a84c264b 100644
--- a/build.xml
+++ b/build.xml
@@ -416,21 +416,38 @@
<attribute name="destdir"/>
<sequential>
<javadoc
- sourcepath="src/java"
- overview="src/java/overview.html"
- packagenames="org.apache.lucene.*"
- destdir="@{destdir}"
- access="@{access}"
- encoding="${build.encoding}"
- author="true"
- version="true"
- use="true"
- link="${javadoc.link}"
- windowtitle="${Name} ${version} API"
- doctitle="${Name} ${version} API"
- bottom="Copyright &amp;copy; ${year} Apache Software Foundation. All Rights Reserved."
- >
+ overview="src/java/overview.html"
+ packagenames="org.apache.lucene.*"
+ destdir="@{destdir}"
+ access="@{access}"
+ encoding="${build.encoding}"
+ author="true"
+ version="true"
+ use="true"
+ link="${javadoc.link}"
+ windowtitle="${Name} ${version} API"
+ doctitle="${Name} ${version} API"
+ bottom="Copyright &amp;copy; ${year} Apache Software Foundation. All Rights Reserved.">
<tag name="todo" description="To Do:"/>
+
+ <!-- TODO: find a dynamic way to do include multiple source roots -->
+ <packageset dir="src/java"/>
+ <packageset dir="contrib/analyzers/src/java"/>
+ <packageset dir="contrib/WordNet/src/java"/>
+ <packageset dir="contrib/highlighter/src/java"/>
+ <packageset dir="contrib/similarity/src/java"/>
+ <packageset dir="contrib/spellchecker/src/java"/>
+ <packageset dir="contrib/snowball/src/java"/>
+ <packageset dir="contrib/swing/src/java"/>
+
+ <group title="Core" packages="org.apache.*:org.apache.lucene.analysis.standard.*"/>
+ <group title="Snowball" packages="org.apache.lucene.analysis.snowball.*:net.sf.*"/>
+ <group title="Analysis" packages="org.apache.lucene.analysis.*"/>
+ <group title="Highlighter" packages="org.apache.lucene.search.highlight.*"/>
+ <group title="MorLikeThis" packages="org.apache.lucene.search.similar.*"/>
+ <group title="SpellChecker" packages="org.apache.lucene.search.spell.*"/>
+ <group title="Swing" packages="org.apache.lucene.swing.*"/>
+ <group title="WordNet" packages="org.apache.lucene.wordnet.*"/>
</javadoc>
</sequential>
</macrodef>
@@ -681,6 +698,13 @@
outputDir="src/demo/org/apache/lucene/demo/html"
/>
</target>
+
+ <target name="build-contrib" depends="compile-test">
+ <mkdir dir="${build.dir}/contrib"/>
+ <ant antfile="contrib/build.xml" inheritall="false">
+ <property name="dist.dir" location="${build.dir}/contrib"/>
+ </ant>
+ </target>
<target name="default" depends="jar-core"/>
diff --git a/contrib/WordNet/src/java/org/apache/lucene/wordnet/SynExpand.java b/contrib/WordNet/src/java/org/apache/lucene/wordnet/SynExpand.java
index 319daec853e..fa059296616 100755
--- a/contrib/WordNet/src/java/org/apache/lucene/wordnet/SynExpand.java
+++ b/contrib/WordNet/src/java/org/apache/lucene/wordnet/SynExpand.java
@@ -12,7 +12,7 @@ import java.util.*;
/**
* Expand a query by looking up synonyms for every term.
- * You need to invoke {@see Syns2Index} first to build the synonym index.
+ * You need to invoke {@link Syns2Index} first to build the synonym index.
*
* @see Syns2Index
*/
@@ -58,9 +58,9 @@ public final class SynExpand {
*
* @param query users query that is assumed to not have any "special" query syntax, thus it should be just normal words, so "big dog" makes sense, but a query like "title:foo^1.2" doesn't as this should presumably be passed directly to the default query parser.
*
- * @param syns a opened to the Lucene index you previously created with {@see Syns2Index}. The searcher is not closed or otherwise altered.
+ * @param syns a opened to the Lucene index you previously created with {@link Syns2Index}. The searcher is not closed or otherwise altered.
*
- * @param a optional analyzer used to parse the users query else {@see StandardAnalzyer} is used
+ * @param a optional analyzer used to parse the users query else {@link StandardAnalyzer} is used
*
* @param field optional field name to search in or null if you want the default of "contents"
*
diff --git a/contrib/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java b/contrib/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java
index 57c8c64f78f..56e3dfd61d6 100644
--- a/contrib/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java
+++ b/contrib/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java
@@ -24,18 +24,18 @@ import java.util.TreeMap;
/**
* Convert the prolog file wn_s.pl from the <a href="http://www.cogsci.princeton.edu/2.0/WNprolog-2.0.tar.gz">WordNet prolog download</a>
- * into a Lucene index suitable for looking up synonyms and performing query expansion ({@see SynExpand#expand SynExpand.expand(...)}).
+ * into a Lucene index suitable for looking up synonyms and performing query expansion ({@link SynExpand#expand SynExpand.expand(...)}).
*
* This has been tested with WordNet 2.0.
*
- * The index has fields named "word" ({@see #F_WORD})
- * and "syn" ({@see #F_SYN}).
+ * The index has fields named "word" ({@link #F_WORD})
+ * and "syn" ({@link #F_SYN}).
* <p>
* The source word (such as 'big') can be looked up in the
* "word" field, and if present there will be fields named "syn"
* for every synonym. What's tricky here is that there could be <b>multiple</b>
* fields with the same name, in the general case for words that have multiple synonyms.
- * That's not a problem with Lucene, you just use {@see org.apache.lucene.document.Document#getValues}
+ * That's not a problem with Lucene, you just use {@link org.apache.lucene.document.Document#getValues}
* </p>
* <p>
* While the WordNet file distinguishes groups of synonyms with
diff --git a/contrib/WordNet/src/java/org/apache/lucene/wordnet/package.html b/contrib/WordNet/src/java/org/apache/lucene/wordnet/package.html
index e4296a87be2..8625a7d2fd8 100755
--- a/contrib/WordNet/src/java/org/apache/lucene/wordnet/package.html
+++ b/contrib/WordNet/src/java/org/apache/lucene/wordnet/package.html
@@ -7,8 +7,8 @@
This package uses synonyms defined by <a href="http://www.cogsci.princeton.edu/~wn/">WordNet</a> to build a
Lucene index storing them, which in turn can be used for query expansion.
- You normally run {@see org.apache.lucene.wordnet.Syns2Index} once to build the query index/"database", and then call
- {@see org.apache.lucene.wordnet.SynExpand#expand SynExpand.expand(...)} to expand a query.
+ You normally run {@link org.apache.lucene.wordnet.Syns2Index} once to build the query index/"database", and then call
+ {@link org.apache.lucene.wordnet.SynExpand#expand SynExpand.expand(...)} to expand a query.
<p>
diff --git a/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.java b/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.java
index 82c89318566..dfaf9030d64 100644
--- a/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.java
+++ b/contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/CJKAnalyzer.java
@@ -74,7 +74,7 @@ public class CJKAnalyzer extends Analyzer {
/**
* An array containing some common English words that are not usually
- * useful for searching. and some double-byte interpunctions.....
+ * useful for searching and some double-byte interpunctions.
*/
public final static String[] STOP_WORDS = {
"a", "and", "are", "as", "at", "be",
diff --git a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
index 31f6472505d..f451c64e86b 100755
--- a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
+++ b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
@@ -39,7 +39,7 @@ import java.util.*;
/**
* <p>
* Spell Checker class (Main class) <br/>
- * (initially inspired by the David Spencer code)
+ * (initially inspired by the David Spencer code).
* </p>
*
* <p>
diff --git a/contrib/swing/src/java/org/apache/lucene/swing/models/package.html b/contrib/swing/src/java/org/apache/lucene/swing/models/package.html
index 74b12be0dd6..894382973db 100644
--- a/contrib/swing/src/java/org/apache/lucene/swing/models/package.html
+++ b/contrib/swing/src/java/org/apache/lucene/swing/models/package.html
@@ -1,5 +1,5 @@
<html>
<body>
-Decorators for JTable TableModel and JList ListModel encapsulating Lucene indexing and searching functionality. .
+Decorators for JTable TableModel and JList ListModel encapsulating Lucene indexing and searching functionality.
</body>
</html>