How can i perform solr search on PublicActivity::Activity

93 views
Skip to first unread message

Ranjith Nalimela

unread,
Aug 26, 2014, 5:40:08 AM8/26/14
to public-...@googlegroups.com
I am using activities for conversations. each conversation is belongs to specific job.

#<PublicActivity::Activity id: 94, trackable_id: 35, trackable_type: "Conversation", owner_id: 1, owner_type: "User", key: "conversation.create", parameters: {}, recipient_id: 11, recipient_type: "User", created_at: "2014-08-26 08:47:38", updated_at: "2014-08-26 08:47:38", read_status: false>

here trackeble is conversation

 #<Conversation id: 35, job_id: 6, user_id: 1, submission_id: 2, message: "hey this is sample message fot testing conversation...", created_at: "2014-08-26 08:47:37", updated_at: "2014-08-26 08:47:37", user_type: "employer">

-> How can perform solr search on activities, i need to show all activities with pagination.
-> how can i get all activities of specfic job(conversation.job-id) and user

Pushparaj Badu

unread,
May 18, 2015, 3:34:55 AM5/18/15
to public-...@googlegroups.com
Hi Ranjit, did you managed to solve this problem. I am also facing same issue and I have added similar question in stack overflow: http://stackoverflow.com/questions/30261755/product-activities-within-x-miles-radius-with-solr-geokit-rails.

Lalit Yadav

unread,
Jul 16, 2015, 11:57:33 AM7/16/15
to public-...@googlegroups.com
make a controller and fetch your activities. Create a custom field/ parameter to find the activities for a specific user there on you can apply the simple solr  

Lalit Yadav

unread,
Jul 16, 2015, 11:58:43 AM7/16/15
to public-...@googlegroups.com
you can read my reply let me know if u face any other problem 
Reply all
Reply to author
Forward
0 new messages