首页 > 留学知识库

问题: 大家好,请帮我翻译翻译

关于not
unary operator.ensure that the term following not is excluded from any of the returned documents.
for example
action=query&text=cat + not + dog
this query only returns document that contain ct but not dog
note: if you want to use not to exclude multiple terms ,you need to use brackets, otherwise not only applies to the term taht immediately follows it .if you want to use not to exclude a phrase ,you need to put the phrase in quotation marks and in brackets.
for example:
doc 1: i went to the city for the new year
doc 2: e went to new york city fo rhe new year
this query would match neither of the above documents
action=query&text=city +not +(new york)

this query matches the first doucment not the seecond
action=query&text=city +not +("new york")

解答:

关于不是单项的操作。 确保以下术语不被排除,
例如动作=疑问&正文=猫+不是+狗
这个疑问反射文件中包含猫但不是狗,
注意:如果你想不排除多重术语,你需要使用括号,否则括号以后的术语将被排除,如果你想不排除短句,你需要把短句放入引号和括号内,
例如:
文件1:新年我去了城市。
文件2:新年我去了纽约。
这个疑问不符合以上任何一个文件。
动作=疑问&正文=城市+不是+(纽约)
这个疑问符合第一个文件但不符合第二个文件。

动作=疑问&正文=城市+不是+("纽约")