Package com.jadyer.lucene;
Import Java.io.File;
Import java.io.IOException;
Import Java.text.SimpleDateFormat;
Import Java.util.Date;
Import Org.apache.lucene.analysis.standard.StandardAnalyzer;
Import org.apache.lucene.document.Document;
Import Org.apache.lucene.document.Field;
Import Org.apache.lucene.document.NumericField;
Import Org.apache.lucene.index.IndexReader;
Import Org.apache.lucene.index.IndexWriter;
Import Org.apache.lucene.index.IndexWriterConfig;
Import Org.apache.lucene.index.Term;
Import org.apache.lucene.queryParser.ParseException;
Import Org.apache.lucene.queryParser.QueryParser;
Import Org.apache.lucene.search.BooleanQuery;
Import Org.apache.lucene.search.FuzzyQuery;
Import Org.apache.lucene.search.IndexSearcher;
Import Org.apache.lucene.search.NumericRangeQuery;
Import Org.apache.lucene.search.PhraseQuery;
Import Org.apache.lucene.search.PrefixQuery;
Import Org.apache.lucene.search.Query; Import Org.apache.Lucene.search.ScoreDoc;
Import Org.apache.lucene.search.TermQuery;
Import Org.apache.lucene.search.TermRangeQuery;
Import Org.apache.lucene.search.TopDocs;
Import Org.apache.lucene.search.WildcardQuery;
Import Org.apache.lucene.search.BooleanClause.Occur;
Import Org.apache.lucene.store.Directory;
Import Org.apache.lucene.store.FSDirectory;
Import org.apache.lucene.util.Version; /** * "Lucene3.6.2 Introductory Series" section No. 03 _ briefly describes the common search function in Lucene * @create Aug 1, 2013 3:54:27 PM * @author Xuan Yu