search should now be OK (CLI, Fanfiction only)
[fanfix.git] / src / be / nikiroo / fanfix / searchable / BasicSearchable.java
index 979bf5ecee225e2656afb8b862adb3c98b7e307f..1e5e9da67298e37874600f449700db154f0b1786 100644 (file)
@@ -85,6 +85,20 @@ public abstract class BasicSearchable {
         */
        abstract public void fillTag(SearchableTag tag) throws IOException;
 
+       /**
+        * Search for the given term and return the number of pages of results of
+        * stories satisfying this search term.
+        * 
+        * @param search
+        *            the term to search for
+        * 
+        * @return a number of pages
+        * 
+        * @throws IOException
+        *             in case of I/O error
+        */
+       abstract public int searchPages(String search) throws IOException;
+
        /**
         * Search for the given term and return a list of stories satisfying this
         * search term.