maiolum.xml.search
Class BibleSearch
java.lang.Object
maiolum.xml.search.BibleSearch
- public class BibleSearch
- extends java.lang.Object
BibleSearch is a helper class to simplify searching
in documents indexed by Apache Lucene search engine.
Given location of index (as file path), ...
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BibleSearch
public BibleSearch()
throws java.io.IOException
getIndexLocation
public java.lang.String getIndexLocation()
setIndexLocation
public void setIndexLocation(java.lang.String location)
throws java.io.IOException
- Throws:
java.io.IOException
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer()
setAnalyzer
public void setAnalyzer(org.apache.lucene.analysis.Analyzer a)
getHits
public org.apache.lucene.search.Hits getHits()
search
public void search(java.lang.String queryString,
java.lang.String defaultField)
throws org.apache.lucene.queryParser.ParseException,
java.io.IOException
- Throws:
org.apache.lucene.queryParser.ParseException
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
getDocuments
public java.util.Enumeration getDocuments()
throws java.io.IOException
- Throws:
java.io.IOException
getUseSynonyms
public boolean getUseSynonyms()
setUseSynonyms
public void setUseSynonyms(boolean useSynonyms)