com.limegroup.gnutella.settings
Class SearchSettings

java.lang.Object
  extended bycom.limegroup.gnutella.settings.AbstractSettings
      extended bycom.limegroup.gnutella.settings.LimeProps
          extended bycom.limegroup.gnutella.settings.SearchSettings

public final class SearchSettings
extends LimeProps

Settings for searches.


Field Summary
static BooleanSetting GUESS_ENABLED
          Setting for whether or not GUESS searching is enabled.
static CharArraySetting ILLEGAL_CHARS
          Setting for the characters that are not allowed in search strings
static IntSetting MAX_QUERY_LENGTH
          Setting for the maximum number of bytes to allow in queries.
static IntSetting MAX_XML_QUERY_LENGTH
          Setting for the maximum number of bytes to allow in XML queries.
static IntSetting MINIMUM_SEARCH_QUALITY
          The minimum quality (number of stars) for search results to display.
static IntSetting MINIMUM_SEARCH_SPEED
          The minimum speed for search results to display.
static IntSetting PARALLEL_SEARCH
          The maximum number of simultaneous searches to allow.
static ByteSetting PROBE_TTL
          The TTL for probe queries.
 
Fields inherited from class com.limegroup.gnutella.settings.LimeProps
FACTORY
 
Methods inherited from class com.limegroup.gnutella.settings.LimeProps
instance
 
Methods inherited from class com.limegroup.gnutella.settings.AbstractSettings
getFactory, getProperties, getPropertiesFile, getShouldSave, reload, revertToDefault, save, setShouldSave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GUESS_ENABLED

public static final BooleanSetting GUESS_ENABLED
Setting for whether or not GUESS searching is enabled.


PROBE_TTL

public static final ByteSetting PROBE_TTL
The TTL for probe queries.


ILLEGAL_CHARS

public static final CharArraySetting ILLEGAL_CHARS
Setting for the characters that are not allowed in search strings


MAX_QUERY_LENGTH

public static final IntSetting MAX_QUERY_LENGTH
Setting for the maximum number of bytes to allow in queries.


MAX_XML_QUERY_LENGTH

public static final IntSetting MAX_XML_QUERY_LENGTH
Setting for the maximum number of bytes to allow in XML queries. An informal, Q&D study found that the XML length of an average, not too specific query is between 140-170. So 200 gives us some breathing room, though it will kill some very specific XML searches.


MINIMUM_SEARCH_QUALITY

public static final IntSetting MINIMUM_SEARCH_QUALITY
The minimum quality (number of stars) for search results to display.


MINIMUM_SEARCH_SPEED

public static final IntSetting MINIMUM_SEARCH_SPEED
The minimum speed for search results to display.


PARALLEL_SEARCH

public static final IntSetting PARALLEL_SEARCH
The maximum number of simultaneous searches to allow.