completed GROUP search to include group discussions code...?

Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
I'd like to ask how to do the following-
I notice that when I am in my Forums section, I can do a Forum search for a term and all the discussions or posts with that term will pop up (not just the forum discussion TITLE including the term). It searches through all forum categories while doing this.
But when I'm in my Groups section, the Group search function seems way more limited. I punch in a term in the Group Search search box, it only produces results of GROUP NAMES that contain the term. No search results are given for the many disucssions within groups. All I get is a search on Group Names.
How can I fix this to enable people to search for subjects and discussions WITHIN Groups? Am i missing something?

Searching group names only is not terribly useful..members are usually looking for a group discussion about a certain subject.
Thanks....


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 04/29/15 04:57:52AM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Thanks Kos, but that thread is about making a tweak to the general site-wide search function. I'm talking about the dedicated search function within the Groups section.
I need it to give results that are not simply the titles of the groups.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Clay Gordon
Clay Gordon
@claygordon
9 years ago
733 posts
Strumelia -

When you do a site-wide search you do get group discussions returned when discuss_description is added. You should be able to modify the search results page to put discussions in the top-right position and push images down, making them much more obvious.

You can also modify the way the results are displayed to include the name of the group. T

SO - the code is already there to do what you want, it's just not accessible in the way you want it to be, you'd like a search on the Groups "home" page that just returns results from Groups.
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Yes, I know I get a search of group discussions (and everything else) when conducting a site-wide search from my site Index/home page. That's fine, but...

Yes, I would like the search on the Groups Home page to yield search term results from searching Group Titles AND Group discussions...not just running a search of the names of my site Groups.

"SO - the code is already there to do what you want, it's just not accessible in the way you want it to be"

Uh, yeah. Currently not accessible by my brain. lol Hence, this thread.






--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 02/03/15 04:13:18PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Any help on this? ...Much appreciated!


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
When one is in the Forums and uses the specific Forums searchbox...you get the various forum threads which contain the search keywords. Same with the Video section search, etc.

When one is in the Groups area and uses the specific Groups searchbox, you get only a list of group NAMES that might contain the search term... is it not possible to have the Group Search function search also Group DISCUSSIONS that contain the search terms?
Is the Group Search limited to only being a search of the NAMES of the Groups?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Asil
Asil
@asil
9 years ago
41 posts
Being able to search within the discussions posted to groups is important to us also. I'm not familiar enough with the code to offer any suggestions yet. However, am following this discussion and look forward to reading input from the developers.
michael
@michael
9 years ago
7,714 posts
Strumelia:.....I would like the search on the Groups Home page to yield search term results from searching Group Titles AND Group discussions...

When we added search to the index.tpl files of all the modules, the code used was:
 {jrSearch_module_form fields="blog_title,blog_text"}

Thats from the blog index.tpl file:
/modules/jrBlog/templates/index.tpl

(or coming via the ACP template editor)
ACP -> PROFILES -> BLOG -> TEMPLATES -> index.tpl

You can see that working here:
https://www.jamroom.net/blog/

The search box only searches for the fields listed. You can use the fields you need.

-- edit --
Not sure if its obvious or not, so..... to change that to what your after, you would locate the fields you're interested in in the datastore, (every module has a datastore browser in the TOOLS tab of the ACP)

They will probably be (I haven't got groups data in my dev machine right now) group_title and group_discuss so:
 {jrSearch_module_form fields="group_title,group_discuss"}

updated by @michael: 03/03/15 08:50:10PM
michael
@michael
9 years ago
7,714 posts
Strumelia:....Is the Group Search limited to only being a search of the NAMES of the Groups?...
Currently the search box on the index.tpl page for groups uses:
{jrSearch_module_form fields="group_title,group_description"}

This is at:
site.com/groups

Is that the location your thinking about?
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Sorry, I think I have not understood or described this all very well, as to what I'm needing. Let me try again better this time...

The general group search at site.com/group is fine. It gives you a search result of the group titles and decriptions. It's fine as is.

What I need is a search WITHIN each particular group- a search of that particular group's discussions. Yoiu'd be on a group main page, and then you'd click on the "view all' in the discussion forum block...which takes you to a page listing that group's forum discussions. That's where I would like a search box- to for example find all of that group's discussions that talk about "bass" dulcimers, "octave" dulcimers, or "baritone" dulcimers.

What complicates this is that the location of the page for the search box would be varied, depending on WHO created that group, like:
site.com/strumelia/group_discuss/group_id=57
site.com/dusty-turtle/group_discuss/group_id=56
site.com/val-hughes/group_discuss/group_id=44


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 03/13/15 02:22:03PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Is there some way to run a search for a key word or phrase within a particular Group's discussions ? (see post above this)
For example, I have a very big and active Group on my site for Dulcimer Builders/Luthiers. On ning, the group members can run a search right within that group for "bass bar" or "planetary pegs" and it will pull up all the discussion posts within that group that include those terms. It's invaluable for them to find past information within the Builders Group, since there may be hundreds of discussions going back years.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,148 posts
Strumelia:
Is there some way to run a search for a key word or phrase within a particular Group's discussions ? (see post above this)
For example, I have a very big and active Group on my site for Dulcimer Builders/Luthiers. On ning, the group members can run a search right within that group for "bass bar" or "planetary pegs" and it will pull up all the discussion posts within that group that include those terms. It's invaluable for them to find past information within the Builders Group, since there may be hundreds of discussions going back years.

Sure - you just need to add the group_id in you want to only search within - i.e.:

{jrSearch_module_form search="discuss_group_id = 5" fields="group_title,group_description"}

That says "only search for discussions where the discuss_group_id = 5" and "search the group_title and group_description" fields.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Sorry, I'm not very good at this. I have around 62 groups that I want to have this search box added for their own members to search within each group's discussions. How/where do i do this?

and a little question- if I delete a group in the future, does that resort and change all the other groups' ID #s ?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
brian
@brian
9 years ago
10,148 posts
Strumelia:
Sorry, I'm not very good at this. I have around 62 groups that I want to have this search box added for their own members to search within each group's discussions. How/where do i do this?

It depends on where you want the search to show up at..

Quote:
and a little question- if I delete a group in the future, does that resort and change all the other groups' ID #s ?

No - once an ID is created it is never used again - if the item is deleted, that ID no longer exists in the DataStore.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
brian:
It depends on where you want the search to show up at..

Here, see this West Virginia Group (created by me, but seen by a regular member logged in).... The main Group page is nice:
Grouppage.jpg
Grouppage.jpg  •  418KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 03/13/15 07:22:23PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Now, when one clicks to view "All Discussions" within a group, you suddenly get my profile name all giant across the top and all my personal profile links.
This is the page i would like to have a SEARCH box on to search all discussions ...of each of my 62 odd groups. This particular group's url for the discussions search would be:
http://mysite.com/strumelia/group_discuss/group_id=51

see screenshot here...
discuss_group.jpg
discuss_group.jpg  •  492KB




--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015

updated by @strumelia: 03/13/15 07:28:11PM
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
Any help on this?
At the very least I would like to get rid of seeing the group creator's profile name and their profile tabs splashed real big as the title across the top of a group page when you click on 'view ALL discussions' from any group's index page. I have this happen when signed in even as a regular member- seeing the member's name who created the group as the page TITLE, and having their personal TABS all across the top. The main index page for Groups is fine and does not have that.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015