Class IndexingSession
java.lang.Object
org.ctan.site.services.search.base.IndexingBase
org.ctan.site.services.search.base.IndexingSession
- All Implemented Interfaces:
- Closeable,- AutoCloseable
The class 
IndexingSession contains the session which combines
 various update operations on the search indices.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe classIndexArgscontains the transport object for passing in indexing arguments.
- 
Constructor SummaryConstructorsConstructorDescriptionIndexingSession(@NonNull File indexBase) This is the constructor forIndexingSession.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()voidThe methodremoveprovides means to remove an item from the search index.voidupdateIndex(@NotNull String path, @NotNull IndexingSession.IndexArgs args) The methodupdateIndexprovides means to update the search index.Methods inherited from class org.ctan.site.services.search.base.IndexingBasecheckIndexDirectory, directory, indexPath, open, open
- 
Constructor Details- 
IndexingSessionThis is the constructor forIndexingSession.- Parameters:
- indexBase- the base directory
- Throws:
- FileNotFoundException- in case of an improper directory
 
 
- 
- 
Method Details- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
- See Also:
 
- 
removepublic void remove(@NotNull @NotNull IndexType indexType, @NotNull @NotNull String indexPath, @NotNull @NotNull String locale) throws IOException The methodremoveprovides means to remove an item from the search index.- Parameters:
- indexType- the index type
- indexPath- the key for identifying the indexed item
- locale- the locale
- Throws:
- IOException- in case of an I/O error
 
- 
updateIndexpublic void updateIndex(@NotNull @NotNull String path, @NotNull @NotNull IndexingSession.IndexArgs args) throws IOException The methodupdateIndexprovides means to update the search index.- Parameters:
- path- the URL of the item
- args- the arguments
- Throws:
- IOException- in case of an I/O error
 
 
-