org.carrot2.source
Class MultipageSearchEngineMetadata

java.lang.Object
  extended by org.carrot2.source.MultipageSearchEngineMetadata

public final class MultipageSearchEngineMetadata
extends Object

Metadata describing MultipageSearchEngine characteristics.


Field Summary
 boolean incrementByPage
          If false, the start position of the search is determined by the result index, which is the case for most search engines.
 int maxResultIndex
          Maximum reachable result index.
 int resultsPerPage
          Maximum number of results returned per page.
 
Constructor Summary
MultipageSearchEngineMetadata(int resultsPerPage, int maxResultIndex)
          Creates search engine metadata with incrementByPage set to false.
MultipageSearchEngineMetadata(int resultsPerPage, int maxResultIndex, boolean incrementByPage)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultsPerPage

public final int resultsPerPage
Maximum number of results returned per page.


maxResultIndex

public final int maxResultIndex
Maximum reachable result index.


incrementByPage

public final boolean incrementByPage
If false, the start position of the search is determined by the result index, which is the case for most search engines. If true, the start position is determined by the page index.

Constructor Detail

MultipageSearchEngineMetadata

public MultipageSearchEngineMetadata(int resultsPerPage,
                                     int maxResultIndex)
Creates search engine metadata with incrementByPage set to false.


MultipageSearchEngineMetadata

public MultipageSearchEngineMetadata(int resultsPerPage,
                                     int maxResultIndex,
                                     boolean incrementByPage)


Copyright (c) Dawid Weiss, Stanislaw Osinski