Packageorg.servebox.toolbox.search
Classpublic class SearchProperty

SearchProperty is a representation of a property to index that describes the way the property should be indexed/searched.

See also

com.lodh.utils.search.SearchTree


Public Properties
 PropertyDefined by
  indexType : Number
The type of search to apply : exact match, starts with, ends with or contains.
SearchProperty
  INDEX_TYPE_CONTAINS : Number = 3
[static]
SearchProperty
  INDEX_TYPE_ENDS_WITH : Number = 2
[static]
SearchProperty
  INDEX_TYPE_EXACT_MATCH : Number = 0
[static]
SearchProperty
  INDEX_TYPE_STARTS_WITH : Number = 1
[static]
SearchProperty
  propertyName : String
The name of the property to index.
SearchProperty
Public Methods
 MethodDefined by
  
SearchProperty(propertyName:String, indexType:Number)
Creates a new SearchProperty object.
SearchProperty
  
getIndexPrefix():String
Returns the prefix to append to the index key : [--] exact match [] starts with [- ends with [ contains
SearchProperty
Property detail
indexTypeproperty
public var indexType:Number

The type of search to apply : exact match, starts with, ends with or contains. This value is attached to the property because it modifies the way the index is generated.

INDEX_TYPE_CONTAINSproperty 
public static var INDEX_TYPE_CONTAINS:Number = 3
INDEX_TYPE_ENDS_WITHproperty 
public static var INDEX_TYPE_ENDS_WITH:Number = 2
INDEX_TYPE_EXACT_MATCHproperty 
public static var INDEX_TYPE_EXACT_MATCH:Number = 0
INDEX_TYPE_STARTS_WITHproperty 
public static var INDEX_TYPE_STARTS_WITH:Number = 1
propertyNameproperty 
public var propertyName:String

The name of the property to index.

Constructor detail
SearchProperty()constructor
public function SearchProperty(propertyName:String, indexType:Number)

Creates a new SearchProperty object.

Parameters
propertyName:String
 
indexType:Number
Method detail
getIndexPrefix()method
public function getIndexPrefix():String

Returns the prefix to append to the index key : [--] exact match [] starts with [- ends with [ contains

Returns
String