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
Post a Comment