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

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -