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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -