@Deprecated public class DSIndexer extends Object
| Constructor and Description |
|---|
DSIndexer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanIndex(Context context)
Deprecated.
Iterates over all documents in the Lucene index and verifies they
are in database, if not, they are removed.
|
static void |
createIndex(Context c)
Deprecated.
create full index - wiping old index
|
static void |
indexContent(Context context,
DSpaceObject dso)
Deprecated.
If the handle for the "dso" already exists in the index, and
the "dso" has a lastModified timestamp that is newer than
the document in the index then it is updated, otherwise a
new document is added.
|
static void |
indexContent(Context context,
DSpaceObject dso,
boolean force)
Deprecated.
If the handle for the "dso" already exists in the index, and
the "dso" has a lastModified timestamp that is newer than
the document in the index then it is updated, otherwise a
new document is added.
|
static void |
main(String[] args)
Deprecated.
When invoked as a command-line tool, creates, updates, removes
content from the whole index
|
static void |
optimizeIndex(Context c)
Deprecated.
Optimize the existing index.
|
static void |
reIndexContent(Context context,
DSpaceObject dso)
Deprecated.
reIndexContent removes something from the index, then re-indexes it
|
static void |
setBatchProcessingMode(boolean mode)
Deprecated.
|
static void |
unIndexContent(Context context,
DSpaceObject dso)
Deprecated.
unIndex removes an Item, Collection, or Community only works if the
DSpaceObject has a handle (uses the handle for its unique ID)
|
static void |
unIndexContent(Context context,
String handle)
Deprecated.
Unindex a Document in the Lucene Index.
|
static void |
updateIndex(Context context)
Deprecated.
Iterates over all Items, Collections and Communities.
|
static void |
updateIndex(Context context,
boolean force)
Deprecated.
Iterates over all Items, Collections and Communities.
|
public static void setBatchProcessingMode(boolean mode)
public static void indexContent(Context context, DSpaceObject dso) throws SQLException, DCInputsReaderException
context - Users Contextdso - DSpace Object (Item, Collection or CommunitySQLExceptionIOExceptionDCInputsReaderExceptionpublic static void indexContent(Context context, DSpaceObject dso, boolean force) throws SQLException, DCInputsReaderException
context - Users Contextdso - DSpace Object (Item, Collection or Communityforce - Force update even if not stale.SQLExceptionIOExceptionDCInputsReaderExceptionpublic static void unIndexContent(Context context, DSpaceObject dso) throws SQLException, IOException
context - DSpace contextdso - DSpace Object, can be Community, Item, or CollectionSQLExceptionIOExceptionpublic static void unIndexContent(Context context, String handle) throws SQLException, IOException
context - handle - SQLExceptionIOExceptionpublic static void reIndexContent(Context context, DSpaceObject dso) throws SQLException, IOException
context - context objectdso - object to re-indexSQLExceptionIOExceptionpublic static void createIndex(Context c) throws SQLException, IOException
c - context to useSQLExceptionIOExceptionpublic static void optimizeIndex(Context c) throws SQLException, IOException
c - Users ContextSQLExceptionIOExceptionpublic static void main(String[] args) throws SQLException, IOException
args - the command-line arguments, none usedIOExceptionSQLExceptionpublic static void updateIndex(Context context)
context - public static void updateIndex(Context context, boolean force)
context - force - public static void cleanIndex(Context context) throws IOException, SQLException
context - IOExceptionSQLExceptionCopyright © 2014 DuraSpace. All Rights Reserved.