mirror of https://github.com/apache/lucene.git
- Removed unused or duplicate imports.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149942 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
32f7d24447
commit
201b56a2c4
|
@ -54,8 +54,6 @@ package org.apache.lucene.analysis;
|
|||
* <http://www.apache.org/>.
|
||||
*/
|
||||
|
||||
import org.apache.lucene.index.TermPositions;
|
||||
|
||||
/** A Token is an occurence of a term from the text of a field. It consists of
|
||||
a term's text, the start and end offset of the term in the text of the field,
|
||||
and a type string.
|
||||
|
|
|
@ -55,7 +55,6 @@ package org.apache.lucene.analysis.de;
|
|||
*/
|
||||
|
||||
import org.apache.lucene.analysis.Analyzer;
|
||||
import org.apache.lucene.analysis.LowerCaseFilter;
|
||||
import org.apache.lucene.analysis.StopFilter;
|
||||
import org.apache.lucene.analysis.TokenStream;
|
||||
import org.apache.lucene.analysis.standard.StandardFilter;
|
||||
|
@ -164,7 +163,7 @@ public class GermanAnalyzer extends Analyzer
|
|||
* Creates a TokenStream which tokenizes all the text in the provided Reader.
|
||||
*
|
||||
* @return A TokenStream build from a StandardTokenizer filtered with
|
||||
* StandardFilter, StopFilter, GermanStemFilter and LowerCaseFilter
|
||||
* StandardFilter, StopFilter, GermanStemFilter
|
||||
*/
|
||||
public TokenStream tokenStream( String fieldName, Reader reader )
|
||||
{
|
||||
|
|
|
@ -55,13 +55,9 @@ package org.apache.lucene.analysis.ru;
|
|||
*/
|
||||
|
||||
import org.apache.lucene.analysis.Analyzer;
|
||||
import org.apache.lucene.analysis.LowerCaseFilter;
|
||||
import org.apache.lucene.analysis.StopFilter;
|
||||
import org.apache.lucene.analysis.TokenStream;
|
||||
import org.apache.lucene.analysis.standard.StandardFilter;
|
||||
import org.apache.lucene.analysis.standard.StandardTokenizer;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Reader;
|
||||
import java.util.Hashtable;
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@ import org.apache.lucene.analysis.Token;
|
|||
import org.apache.lucene.analysis.TokenFilter;
|
||||
import org.apache.lucene.analysis.TokenStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Hashtable;
|
||||
|
||||
/**
|
||||
* A filter that stems Russian words. The implementation was inspired by GermanStemFilter.
|
||||
|
|
|
@ -58,9 +58,6 @@ import java.util.Enumeration;
|
|||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.search.Hits;
|
||||
|
||||
/** Documents are the unit of indexing and search.
|
||||
*
|
||||
* A Document is a set of fields. Each field has a name and a textual value.
|
||||
|
|
|
@ -56,9 +56,6 @@ package org.apache.lucene.document;
|
|||
|
||||
import java.io.Reader;
|
||||
import java.util.Date;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.search.Similarity;
|
||||
import org.apache.lucene.search.Hits;
|
||||
|
||||
/**
|
||||
A field is a section of a Document. Each field has two parts, a name and a
|
||||
|
|
|
@ -54,8 +54,6 @@ package org.apache.lucene.index;
|
|||
* <http://www.apache.org/>.
|
||||
*/
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Hashtable;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.store.Directory;
|
||||
|
|
|
@ -55,7 +55,6 @@ package org.apache.lucene.index;
|
|||
*/
|
||||
|
||||
import java.util.Enumeration;
|
||||
import java.util.Hashtable;
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.store.Directory;
|
||||
|
|
|
@ -62,7 +62,6 @@ import org.apache.lucene.store.Directory;
|
|||
import org.apache.lucene.store.FSDirectory;
|
||||
import org.apache.lucene.store.Lock;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.document.Field;
|
||||
|
||||
/** IndexReader is an abstract class, providing an interface for accessing an
|
||||
index. Search of an index is done entirely through this abstract interface,
|
||||
|
|
|
@ -68,7 +68,6 @@ import org.apache.lucene.store.OutputStream;
|
|||
import org.apache.lucene.search.Similarity;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.analysis.Analyzer;
|
||||
import org.apache.lucene.search.Similarity;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -60,8 +60,6 @@ import java.io.IOException;
|
|||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.store.OutputStream;
|
||||
import org.apache.lucene.store.InputStream;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.util.PriorityQueue;
|
||||
import org.apache.lucene.util.BitVector;
|
||||
|
||||
final class SegmentMerger {
|
||||
|
|
|
@ -55,7 +55,6 @@ package org.apache.lucene.index;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.lucene.document.Document;
|
||||
|
||||
/** TermDocs provides an interface for enumerating <document, frequency>
|
||||
pairs for a term. <p> The document portion names each document containing
|
||||
|
|
|
@ -57,7 +57,6 @@ package org.apache.lucene.index;
|
|||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.store.InputStream;
|
||||
|
||||
/** This stores a monotonically increasing set of <Term, TermInfo> pairs in a
|
||||
* Directory. Pairs are accessed either by Term or by ordinal position the
|
||||
|
|
|
@ -55,8 +55,6 @@ package org.apache.lucene.index;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.lucene.document.Document;
|
||||
|
||||
|
||||
/**
|
||||
* TermPositions provides an interface for enumerating the <document,
|
||||
|
|
|
@ -54,8 +54,6 @@ package org.apache.lucene.search;
|
|||
* <http://www.apache.org/>.
|
||||
*/
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
|
||||
/** Expert: Default scoring implementation. */
|
||||
public class DefaultSimilarity extends Similarity {
|
||||
/** Implemented as <code>1/sqrt(numTerms)</code>. */
|
||||
|
|
|
@ -55,7 +55,6 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
import org.apache.lucene.util.*;
|
||||
import org.apache.lucene.index.*;
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ package org.apache.lucene.search;
|
|||
import java.io.IOException;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.TermEnum;
|
||||
|
||||
/** Subclass of FilteredTermEnum for enumerating all terms that are similiar to the specified filter term.
|
||||
|
||||
|
|
|
@ -56,9 +56,8 @@ package org.apache.lucene.search;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
import java.util.BitSet;
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
/** A ranked list of documents, used to hold search results. */
|
||||
public final class Hits {
|
||||
|
|
|
@ -61,7 +61,6 @@ import org.apache.lucene.store.Directory;
|
|||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.util.PriorityQueue;
|
||||
|
||||
/** Implements search over a single IndexReader.
|
||||
*
|
||||
|
|
|
@ -55,11 +55,9 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.util.PriorityQueue;
|
||||
|
||||
/** Implements search over a set of <code>Searchables</code>.
|
||||
*
|
||||
|
|
|
@ -55,10 +55,9 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.TermEnum;
|
||||
|
||||
/**
|
||||
* A {@link Query} that matches documents containing a subset of terms provided
|
||||
|
|
|
@ -62,7 +62,6 @@ import org.apache.lucene.index.IndexReader;
|
|||
import org.apache.lucene.index.MultipleTermPositions;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.TermPositions;
|
||||
import org.apache.lucene.index.TermDocs;
|
||||
import org.apache.lucene.search.Query;
|
||||
|
||||
/**
|
||||
|
|
|
@ -58,7 +58,6 @@ import java.io.IOException;
|
|||
import java.util.Vector;
|
||||
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.TermDocs;
|
||||
import org.apache.lucene.index.TermPositions;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.lucene.util.*;
|
||||
import org.apache.lucene.index.*;
|
||||
|
||||
|
|
|
@ -55,9 +55,9 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.TermEnum;
|
||||
import org.apache.lucene.index.TermDocs;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
/** A Query that matches documents containing terms with a specified prefix. */
|
||||
|
|
|
@ -55,9 +55,9 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.TermEnum;
|
||||
import org.apache.lucene.index.TermDocs;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
/** A Query that matches documents within an exclusive range. */
|
||||
|
|
|
@ -55,15 +55,15 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
import java.rmi.Naming;
|
||||
import java.rmi.RemoteException;
|
||||
import java.rmi.RMISecurityManager;
|
||||
import java.rmi.server.UnicastRemoteObject;
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.Term;
|
||||
|
||||
/** A remote searchable implementation. */
|
||||
public class RemoteSearchable
|
||||
extends UnicastRemoteObject
|
||||
|
|
|
@ -55,9 +55,9 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
/** The interface for search implementations.
|
||||
*
|
||||
|
|
|
@ -55,9 +55,6 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
/** An abstract base class for search implementations.
|
||||
* Implements some common utility methods.
|
||||
|
|
|
@ -56,11 +56,8 @@ package org.apache.lucene.search;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.document.Document;
|
||||
import org.apache.lucene.document.Field;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.IndexWriter;
|
||||
|
||||
/** Expert: Scoring API.
|
||||
* <p>Subclasses implement search scoring.
|
||||
|
|
|
@ -55,7 +55,7 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.apache.lucene.util.*;
|
||||
import org.apache.lucene.index.*;
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
import org.apache.lucene.index.Term;
|
||||
|
||||
import org.apache.lucene.index.TermDocs;
|
||||
|
||||
final class TermScorer extends Scorer {
|
||||
|
|
|
@ -55,9 +55,9 @@ package org.apache.lucene.search;
|
|||
*/
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.TermEnum;
|
||||
|
||||
/**
|
||||
* Subclass of FilteredTermEnum for enumerating all terms that match the
|
||||
|
|
|
@ -57,7 +57,6 @@ package org.apache.lucene.store;
|
|||
import java.io.IOException;
|
||||
import java.io.File;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.util.Hashtable;
|
||||
|
||||
import org.apache.lucene.util.Constants;
|
||||
|
|
Loading…
Reference in New Issue