A.4. 检索样例

  1. 简单词检索

    • cat:表示查找包括有cat的记录。

    • "cat" :表示查找包括有"cat"的记录。

    • ^cat:表示查找以cat开始的记录。

    • cat^:表示查找以cat结尾的记录。

    • c?at:表示查找包括coat、chat等的记录。

    • ch*t:表示查找包括chit、chat、chant、chelant等的记录。

  2. 索引关系检索

    • title = "fish":查找字段为fish或包括fish的记录。

    • title exact fish:表示精确匹配fish。注意:单个字符不需要引号。

    • title exact "fish cat hat":表示精确匹配fish cat hat。注意:如果是一串字符,那么需要用引号引起来。

    • title > 1982:查找字段大于1982的记录。

    • title >= 1982:查找字段大于等于1982的记录。

    • dc.title = "^cat in the hat":表示在dc映射集中查找字段是以cat in the hat开始的记录。

    • dc.title all "fish chips":可扩展为dc.title=fish and dc.title=chips,表示在dc映射集中查找字段为fish和chips的记录。

    • dc.title any "fish chips":可扩展为dc.title=fish or dc.title=chips,表示在dc映射集中查找字段为fish或chips的记录。

  3. 简单布尔运算检索

    • cat or dog :查找包括cat和fish这两项或其中一项的记录。

    • cat and fish :查找包括cat和fish这两项的记录。

    • cat not frog :查找包括cat而且不包括frog的记录。

    • cat not(frog and fish):查找包括cat且不包括frog和fish的记录。

    • "cat" not "fish food":表示查找包括cat但不包括fish food的记录。

  4. 索引关系和布尔运算组合检索

    • wf.title any fish and dc.title any "cat dog":该表达式可扩展成(wf.title=fish) and (dc.title="cat" or dc.title="dog")表示查找在wf映射集字段为fish而且在dc映射集中字段为cat或dog的记录。

  5. 相邻词与布尔修饰符检索

    • cat prox hat :表示查找cat和hat相邻的记录。

    • cat prox/distance=3/unit=word/ordered hat:表示cat和hat之间相隔3个字符且cat和hat的顺序要按照检索表达式中的次序出现。