org.fao.geonet.kernel.search
Class SearchManager
java.lang.Object
org.fao.geonet.kernel.search.SearchManager
public class SearchManager
- extends java.lang.Object
Indexes metadata using Lucene.
Constructor Summary |
SearchManager(java.lang.String appPath,
java.lang.String luceneDir)
|
Method Summary |
void |
delete(java.lang.String fld,
java.lang.String txt)
|
void |
end()
|
java.util.Hashtable |
getDocs()
|
java.io.File |
getLuceneDir()
|
java.util.Vector |
getTerms(java.lang.String fld)
|
void |
index(java.lang.String type,
org.jdom.Element metadata,
java.lang.String id,
java.util.List moreFields,
java.lang.String isTemplate,
java.lang.String title)
Indexes a metadata record. |
MetaSearcher |
newSearcher(int type,
java.lang.String stylesheetName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LUCENE
public static final int LUCENE
- See Also:
- Constant Field Values
Z3950
public static final int Z3950
- See Also:
- Constant Field Values
UNUSED
public static final int UNUSED
- See Also:
- Constant Field Values
SearchManager
public SearchManager(java.lang.String appPath,
java.lang.String luceneDir)
throws java.lang.Exception
- Parameters:
appPath
- luceneDir
-
- Throws:
java.lang.Exception
end
public void end()
throws java.lang.Exception
- Throws:
java.lang.Exception
newSearcher
public MetaSearcher newSearcher(int type,
java.lang.String stylesheetName)
throws java.lang.Exception
- Throws:
java.lang.Exception
index
public void index(java.lang.String type,
org.jdom.Element metadata,
java.lang.String id,
java.util.List moreFields,
java.lang.String isTemplate,
java.lang.String title)
throws java.lang.Exception
- Indexes a metadata record.
- Parameters:
type
- metadata
- id
- moreFields
- isTemplate
- title
-
- Throws:
java.lang.Exception
delete
public void delete(java.lang.String fld,
java.lang.String txt)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDocs
public java.util.Hashtable getDocs()
throws java.lang.Exception
- Throws:
java.lang.Exception
getTerms
public java.util.Vector getTerms(java.lang.String fld)
throws java.lang.Exception
- Throws:
java.lang.Exception
getLuceneDir
public java.io.File getLuceneDir()