| Package | org.servebox.toolbox.search |
| Class | public class SearchProperty |
See also
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| indexType | property |
public var indexType:NumberThe 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_CONTAINS | property |
public static var INDEX_TYPE_CONTAINS:Number = 3
| INDEX_TYPE_ENDS_WITH | property |
public static var INDEX_TYPE_ENDS_WITH:Number = 2
| INDEX_TYPE_EXACT_MATCH | property |
public static var INDEX_TYPE_EXACT_MATCH:Number = 0
| INDEX_TYPE_STARTS_WITH | property |
public static var INDEX_TYPE_STARTS_WITH:Number = 1
| propertyName | property |
public var propertyName:StringThe name of the property to index.
| SearchProperty | () | constructor |
public function SearchProperty(propertyName:String, indexType:Number)Creates a new SearchProperty object.
ParameterspropertyName:String |
|
indexType:Number |
| getIndexPrefix | () | method |
public function getIndexPrefix():StringReturns the prefix to append to the index key : [--] exact match [] starts with [- ends with [ contains
ReturnsString |