Django-Haystack: ResultSet contains which object -


i have indexed storypost our django-model stored in postgres. pretty confused object being returned searchqueryset.

>>> results=searchqueryset().all() >>> results[0] <searchresult: kyc_connect_data_models.storypost (pk=u'429')> >>> results[0].object <storypost: <sarahh:first channel post>=qmvdxjvqxtzu9dwly7ktamyywrvwao9pd98kpyvz1jxrmg> 

in single result of type searchresult ok, when .object returns exact model, had stored model in elasticsearch? db, referring original object in postgres db. if how maintains fast indexing bcoz had hit db fetch it?


Comments

Popular posts from this blog

ios - Assigning a value out of array of arrays, using section in Xcode -

r - XTS-File doesnt work for quantstrat -