I recently created some search documents and added them to a custom search
index using the following which generates an index per user for the model
type. I am using python, NDB and search API.
def _post_put_hook(self, future):
document = self.create_search_document()
index = self.search_index
index.put(document)
However I noticed that in the admin panel there is an index for the model
type that seems to be always automatically generated and added to. Is this
correct?
<http://i.stack.imgur.com/weeix.png>
The top indexes are the ones I am creating while the bottom one has been
made automatically.
Is this meant to happening? Should I be cleaning up this extra index when
the corresponding entities are deleted? (I clean up my own index using a
delete hook).
It appears to be per model and based on the key parent? It is created when
you first put an item. If this is indeed the case it's possible I could use
this index instead of making my own but I wanted to understand fully what
it was and why it is created first.
Thanks for your time.
Brad
PS: I have also posted this to Stack Overflow
<http://stackoverflow.com/questions/33772001/does-search-api-automatically-create-an-index-corresponding-to-model>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/a2a7f308-17a5-4055-97f7-e91dde5c82a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.