gae-search

Google App Engine Search API

眉间皱痕 提交于 2019-11-28 03:52:20
问题 When querying a search index in the Python version of the GAE Search API, what is the best practice for searching for items where documents with words match the title are first returned, and then documents where words match the body? For example given: body = """This is the body of the document, with a set of words""" my_document = search.Document( fields=[ search.TextField(name='title', value='A Set Of Words'), search.TextField(name='body', value=body), ]) If it is possible, how might one

GAE Full Text Search API phrase matching

时光总嘲笑我的痴心妄想 提交于 2019-11-27 07:09:10
问题 I can only find exact phrase matching for queries in the experimental Search API for Google App Engine. For example the query 'best prices hotel' will only match that exact phrase. It will not match texts such as 'best hotel prices' or 'best price hotels'. It's of course a much more difficult task to match text in a general way but I thought the Search API would at least be able to handle some of that. Another example is the query 'new cars' which will not match the text 'new and used cars'.