To search for an exact term, prefix the term with “=”. This ensures that the term will not be tokenized, therefore you can search for stop words.
要搜索确切的词,请在单词前面加上“=”。这样可以确保单词不会被分词,因此您可以搜索词的某个确切的部分。例如“跑步”算一个词,你可以使用“=跑”来确切地搜索“跑”。

If both FTS and ID base search are supported for a specified or implied property, then exact matching will be used where possible.
如果指定或隐含属性同时支持FTS和ID base search,则将尽可能使用精确匹配。

For example, the following query will match running but will not be tokenized. If you are using stemming it might not match anything.
例如,下面的查询将匹配running,但不会被分词。如果你使用的是词干(run),它可能不匹配任何东西。

=running

For the cm:name field, which is in the index as both tokenized and untokenized, it will use the untokenized field. For example, =part will only match the exact term “part”. If you use =part* it will match additional terms, like “partners”. If there is no untokenized field in the index, it will fall back to use the tokenized field, and then, with stemming/plurals, it would match.
对于索引中既有标记化又有未分词的“cm:name”字段,它将使用未分词字段。例如,=part将只匹配确切的术语“part”。如果您使用=part*将匹配其他术语,如“partners”。如果索引中没有未分词的字段,它将返回使用分词字段,然后,使用词干/复数进行匹配。

文档更新时间: 2020-02-10 16:16   作者:凌云文档