Listing 10 details the steps to follow if there is more than one asterisk per-query word.
清单10详细说明了在每个查询词中有多个星号的情况下需要遵循的步骤。
Finally, if the query word has an asterisk in the middle, require the query word to match at the beginning and end.
最后,如果查询词的中间有星号,则要求严格匹配查询词的开头和结尾。
The first step is to create a compatible regular expression out of each query word, although modification is only required if the word contains a wildcard character: *.
第一步是创建与每个查询词一致的正则表达式,只有在查询词包含通配符 * 时才需要修改。
After the local variable declaration, the subroutine will make a pass through every query word specified searching for a metaphone match in the name or jobresponsibilities hashes.
声明局部变量后,子例程将遍历每个指定查询词,搜索name或jobresponsibilities散列中的变音位匹配。
For example, if you remove the ability of a query word to match more than once, or more than once in the same field, the distribution of the scores within a record will change dramatically.
例如,如果删除多次匹配查询词或多次匹配同一字段的功能,则记录中的分数分布将发生很大变化。
You should also notice that each value term is surrounded by single quotes, exemplified by this full-text query: word='hello'.
还应该注意,每个值由单引号包围,例如全文查询:word='hello'。
You should also notice that each value term is surrounded by single quotes, exemplified by this full-text query: word='hello'.
还应该注意,每个值由单引号包围,例如全文查询:word='hello'。
应用推荐