public class ContextAdmin extends Object
Modifier and Type | Field and Description |
---|---|
protected AdminManager |
m_Main |
Constructor and Description |
---|
ContextAdmin(AdminManager main)
The only constructor that is being used.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addStopword(LibrarySession sess,
ParameterTable params)
Section variant of addStopword
|
protected void |
addStopword(LibrarySession sess,
String media,
String stopword,
boolean online)
Add a new stopword to the list of stopwords for an existing text index.
|
protected void |
createIndex(LibrarySession sess,
ParameterTable params)
Section variant of createIndex
|
protected void |
createIndex(LibrarySession sess,
String media,
String storage,
String lexer,
String filter,
String wordlist,
String memory,
String stoplist,
String section_group)
Create a text index on an existing Media.
|
protected void |
dropIndex(LibrarySession sess,
ParameterTable params)
Section variant of dropIndex
|
protected void |
dropIndex(LibrarySession sess,
String media)
Drop an existing text index.
|
protected void |
optimizeIndex(LibrarySession sess,
ParameterTable params)
Section variant of optimizeIndex
|
protected void |
optimizeIndex(LibrarySession sess,
String media,
boolean full,
String time,
boolean online)
Optimize text index(es) on Media.
|
protected void |
rebuildIndex(LibrarySession sess,
ParameterTable params)
Section variant of rebuildIndex
|
protected void |
rebuildIndex(LibrarySession sess,
String media,
boolean online)
Rebuild index(es) on Media.
|
protected void |
replaceIndex(LibrarySession sess,
ParameterTable params)
Section variant of replaceIndex
|
protected void |
replaceIndex(LibrarySession sess,
String media,
boolean online,
String storage,
String lexer,
String filter,
String wordlist,
String memory,
String stoplist,
String section_group)
Replace the preference(s) of an existing text index.
|
protected void |
resumeIndexingOnIndex(LibrarySession sess,
ParameterTable params)
Section variant of resumeIndexingOnIndex
|
protected void |
resumeIndexingOnIndex(LibrarySession sess,
String media,
String memorySize,
boolean online)
Resuming indexing on index(es) on Media.
|
protected void |
syncIndex(LibrarySession sess,
ParameterTable params)
Section variant of syncIndex
|
protected void |
syncIndex(LibrarySession sess,
String media,
String memorySize,
boolean online)
Synchronize text index(es) on Media.
|
protected AdminManager m_Main
public ContextAdmin(AdminManager main)
main
- Reference to AdminManager which invokes this.protected void createIndex(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void createIndex(LibrarySession sess, String media, String storage, String lexer, String filter, String wordlist, String memory, String stoplist, String section_group) throws IfsException
sess
- The Session to use.media
- The name of the Mediastorage
- The interMedia Text storage preferencelexer
- The interMedia Text lexer preferencefilter
- The interMedia Text filter preferencewordlist
- The interMedia Text wordlist preferencememory
- The interMedia Text memory preferencestoplist
- The interMedia Text stoplist preferencesection_group
- The interMedia Text section group preferenceIfsException
protected void dropIndex(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void dropIndex(LibrarySession sess, String media) throws IfsException
sess
- The Session to use.media
- The name of the Media.IfsException
protected void replaceIndex(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void replaceIndex(LibrarySession sess, String media, boolean online, String storage, String lexer, String filter, String wordlist, String memory, String stoplist, String section_group) throws IfsException
sess
- The Session to use.media
- The name of the Mediaonline
- Does the index remain online during this operation.storage
- The interMedia Text storage preferencelexer
- The interMedia Text lexer preferencefilter
- The interMedia Text filter preferencewordlist
- The interMedia Text wordlist preferencememory
- The interMedia Text memory preferencestoplist
- The interMedia Text stoplist preferencesection_group
- The interMedia Text section group preferenceIfsException
protected void addStopword(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void addStopword(LibrarySession sess, String media, String stopword, boolean online) throws IfsException
sess
- The Session to use.media
- The name of the Media.stopword
- The stopword to be added.online
- Does the index remain online during this operation.IfsException
protected void syncIndex(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void syncIndex(LibrarySession sess, String media, String memorySize, boolean online) throws IfsException
sess
- The Session to use.media
- The name of the MediamemorySize
- Amount of memory to use for indexing. Specified in the
normal way i.e. a number suffixed by m or k.online
- Does the index remain online during this operation.IfsException
protected void optimizeIndex(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void optimizeIndex(LibrarySession sess, String media, boolean full, String time, boolean online) throws IfsException
sess
- The Session to use.media
- The name of the Mediafull
- Specify whether old data is removed or not. Specifying true is
more expensivetime
- The amount of time spent(in minutes) on optimizing or 'unlimited'.online
- Does the index remain online during this operation.IfsException
protected void resumeIndexingOnIndex(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void resumeIndexingOnIndex(LibrarySession sess, String media, String memorySize, boolean online) throws IfsException
sess
- The Session to use.media
- The name of the MediamemorySize
- Amount of memory to use for indexing. Specified in the
normal way i.e. a number suffixed by m or k.online
- Does the index remain online during this operation.IfsException
protected void rebuildIndex(LibrarySession sess, ParameterTable params) throws IfsException
IfsException
protected void rebuildIndex(LibrarySession sess, String media, boolean online) throws IfsException
sess
- The Session to use.media
- The name of the Mediaonline
- Does the index remain online during this operation.IfsException
Copyright © 2023. All rights reserved.