gdata-python-client 是否允许使用多个术语进行全文查询?

Does gdata-python-client allow fulltext queries with multiple terms?

我正在尝试使用多个搜索词通过 Google 联系人 API 搜索联系人。按单个字词搜索效果很好,returns 联系人:

query = gdata.contacts.client.ContactsQuery()
query.text_query = '1048'
feed = gd_client.GetContacts(q=query)
for entry in feed.entry:
  # Do stuff

但是,我想通过多个词进行搜索:

query = gdata.contacts.client.ContactsQuery()
query.text_query = '1048 1049 1050'
feed = gd_client.GetContacts(q=query)

当我这样做时,没有返回任何结果,到目前为止我发现空格被替换为 + 号:

https://www.google.com/m8/feeds/contacts/default/full?q=3066+3068+3073+3074

我现在正在研究 gdata-client-python 代码以找到它在哪里构建查询字符串,但我也想把问题抛在那里。

根据文档,API 支持两种类型的搜索,我在搜索相关 API 时看到了一些类似的文档(文档、日历等):

https://developers.google.com/google-apps/contacts/v3/reference#contacts-query-parameters-reference

谢谢!

看来我对 gdata 查询字符串功能的理解有误。

https://developers.google.com/gdata/docs/2.0/reference?hl=en#Queries

'The service returns all entries that match all of the search terms (like using AND between terms).'

有助于阅读文档并理解它们!