@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 CommunitySQLException
IOException
DCInputsReaderException
public 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.SQLException
IOException
DCInputsReaderException
public static void unIndexContent(Context context, DSpaceObject dso) throws SQLException, IOException
context
- DSpace contextdso
- DSpace Object, can be Community, Item, or CollectionSQLException
IOException
public static void unIndexContent(Context context, String handle) throws SQLException, IOException
context
- handle
- SQLException
IOException
public static void reIndexContent(Context context, DSpaceObject dso) throws SQLException, IOException
context
- context objectdso
- object to re-indexSQLException
IOException
public static void createIndex(Context c) throws SQLException, IOException
c
- context to useSQLException
IOException
public static void optimizeIndex(Context c) throws SQLException, IOException
c
- Users ContextSQLException
IOException
public static void main(String[] args) throws SQLException, IOException
args
- the command-line arguments, none usedIOException
SQLException
public 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
- IOException
SQLException
Copyright © 2016 DuraSpace. All Rights Reserved.