Interface SearchIndex
public interface SearchIndex
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the search index.intReturns the index's version number.
-
Field Details
-
INDEX_VERSION
static final int INDEX_VERSIONVersion of this index- See Also:
-
-
Method Details
-
clear
Clears the search index.- Throws:
IOException- if clearing the index fails
-
getIndexVersion
int getIndexVersion()Returns the index's version number. If that number is different fromINDEX_VERSION, a reindex is needed, since the index's structure could have changed significantly.- Returns:
- the index version
-