|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.retr.IndexProperties
Covers propertiess of an index.
Constructor Summary | |
IndexProperties(java.lang.String indexDir)
Create a new instance of IndexProperties. |
Method Summary | |
static java.lang.String |
concatList(java.util.ArrayList list)
This method is part of this class, because it must be the same when indexing and searching, like other properties of the index do, too. |
org.apache.lucene.analysis.Analyzer |
getBasicAnalyzer()
Return a new instance of the basic (not stemming) analyzer. |
char |
getIdfAlg()
Return the idf algortihm (factor). |
java.lang.String |
getIndexDir()
Return the index directory. |
org.apache.lucene.search.Similarity |
getIndexSimilarity()
Return the index similarity. |
org.apache.lucene.analysis.Analyzer |
getStemmingAnalyzer()
Return a new instance of the stemming analyzer. |
java.lang.String |
getStopWordFile()
Return the stop word file path. |
char |
getTfAlg()
Return the tf algorithm (factor). |
boolean |
isCompoundBaseMerging()
Return wether to merge compound bases. |
static IndexProperties |
load(java.lang.String fileName)
Load a serialized instance of IndexProperties. |
static java.lang.String |
processPhraseList(java.util.ArrayList list)
This method is part of this class, because it must be the same when indexing and searching, like other properties of the index do, too. |
boolean |
save(java.lang.String fileName)
Serialize an instance of IndexProperties and save it to a file. |
void |
setBasicAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
Set a new instance of the basic (not stemming) analyzer. |
void |
setCompoundBaseMerging(boolean compoundBaseMerging)
Set wether to merge compound bases. |
void |
setIdfAlg(char idfAlg)
Set the idf algorithm (factor). |
void |
setIndexDir(java.lang.String indexDir)
Set the index directory. |
void |
setIndexSimilarity(org.apache.lucene.search.Similarity indexSim)
Set the index similarity. |
void |
setStemmingAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
Set the analyzer. |
void |
setStopWordFile(java.lang.String stopWordFile)
Set the stop word file path. |
void |
setTfAlg(char tfAlg)
Set the tf algorithm (factor). |
java.lang.String |
toString()
Return a String that contains important information about this instance of IndexProperties. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IndexProperties(java.lang.String indexDir)
Method Detail |
public java.lang.String getIndexDir()
public void setIndexDir(java.lang.String indexDir)
public org.apache.lucene.search.Similarity getIndexSimilarity()
public void setIndexSimilarity(org.apache.lucene.search.Similarity indexSim)
public char getIdfAlg()
public void setIdfAlg(char idfAlg)
public char getTfAlg()
public void setTfAlg(char tfAlg)
public org.apache.lucene.analysis.Analyzer getStemmingAnalyzer()
public void setStemmingAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
public java.lang.String getStopWordFile()
public void setStopWordFile(java.lang.String stopWordFile)
public org.apache.lucene.analysis.Analyzer getBasicAnalyzer()
public void setBasicAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
public boolean isCompoundBaseMerging()
public void setCompoundBaseMerging(boolean compoundBaseMerging)
public static java.lang.String concatList(java.util.ArrayList list)
public static java.lang.String processPhraseList(java.util.ArrayList list)
public java.lang.String toString()
public static IndexProperties load(java.lang.String fileName)
fileName
- Complete path and file name.public boolean save(java.lang.String fileName)
fileName
- Complete path and file name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |