简体   繁体   中英

Can the search service on Google App Engine be used with dynamic queries?

I read through the documentation for the Search Service on Google App Engine (Python).

In App Engine Applications, all complex queries that your application will perform must be included in your index.yaml file. An App Engine Query is like a Mad Lib template, where the structure is always the same, but the individual "blank spaces" are filled in by your request. This makes app engine's query system unsuitable for random queries that may include user selected AND OR or other modifiers. I was wondering if this is also the case for the queries generated for the above linked search API?

Simply put, can I just throw random complex queries at the search API without having to have an index for that exact query built beforehand?

The search API isn't like the datastore. It doesn't require any special index to be maintained on your part. In other words, a user can put in any query they want (according to the rules) and it will work.

This doesn't come for free -- The search indexes have limitations that the datastore doesn't. eg there is a maximum size of any given search index and IIRC, more stringent quotas.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM