Interface SearchIndex


public interface SearchIndex
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Version of this index
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears the search index.
    int
    Returns the index's version number.
  • Field Details

  • Method Details

    • clear

      void clear() throws IOException
      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 from INDEX_VERSION, a reindex is needed, since the index's structure could have changed significantly.
      Returns:
      the index version