TextIndexing
01 Syntax
Microsoft.VisualBasic.Text.Search.TextIndexing
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Creates a text index instance object for the statement fuzzy match in the whole text document. |
| Found | 2 | |
| IsMatch | 1 | 函数返回最长的匹配的个数,-1表示没有匹配 |
| FuzzyIndex | 1 | |
| ToString | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| cache | 1 | 为了用于加速批量匹配计算的效率而生成的一个缓存对象 |
04 Members
#ctor(
String, Int32, Int32)Creates a text index instance object for the statement fuzzy match in the whole text document.
Parameters
| Name | Type | Description |
|---|---|---|
text | String | - |
min | Int32 | - |
max | Int32 | - |
Found(
String, Double, Int32)Parameters
| Name | Type | Description |
|---|---|---|
keyword | String | - |
cutoff | Double | - |
numPartition | Int32 | 每一个分区之中的元素的数量,负数表示不进行分区 |
Found(
String, Int32)Parameters
| Name | Type | Description |
|---|---|---|
keyword | String | - |
cutoff | Int32 | 表示出现连续的m匹配的片段的长度,-1表示所搜索的关键词片段的长度一半 |
IsMatch(
String, Int32)函数返回最长的匹配的个数,-1表示没有匹配
Parameters
| Name | Type | Description |
|---|---|---|
m | String | - |
cutoff | Int32 | - |
FuzzyIndex(
String, String, Int32, Int32, Int32)Parameters
| Name | Type | Description |
|---|---|---|
text | String | - |
keyword | String | - |
Matches | Int32 | The continues length of the matches, if this value is ZERO or negative value, then the function will using the expression len(keyword)/2 as the default value. |
min | Int32 | - |
max | Int32 | - |
cache
为了用于加速批量匹配计算的效率而生成的一个缓存对象
ToString()