I am new to bubble and need help to do a search

I created this groups, looks like this:
image

Data Type is Like this
image

Now I want to search this Peer(group) using Course Name:
image

Also in each Course there is a list of subjects, I want to search Peer(group) by Course name as well as Subject names.

Please help.

Thanks in Advance.

Hi @hemanshu.mahajan and welcome in Bubble,

I’m not sure I really understand what you need, but I would do :

Do a search for Peers filtered Advanced filter "This Peer’s courses contains “XXX”

@mattmazzega Thank You.

Here is the screenshot of search page:

I want that when I type any course name or subject name in the search box it should show only those peers which have those courses or subjects in it.

I am not sure what to select here:

Please guide me. Thank you

Try “Courses contains Input Enter the Subject’s Value”

it’s showing asking more to add in that

What are the fields in “Courses” ?

Maybe you can try “Courses’s Subjects contains Input Enter the Subject’s Value”

If you want to do a text search (from your search box), you need to do the search in a field that is text format…

You’ll have to nest your searches, so it can be hard to wrap your head around at first.

Final Results = Search Courses [merged with] Search Subjects

Search Courses = repeating group with source set to Search for Peers; field courses contains search for Courses (any field contains input search term):first item

Search Subjects = repeating group with source set to Search for Peers; field courses contains search for Courses (field subject contains input search term)

Part of the difficulty will be that you’re using a plain text search term to find a database thing. It’s easy to find a database thing if you give the search a thing; it’s complex if you’re trying to match a text string.

One option is to use the multidropdown element instead of the search element. You can set the multidropdown’s list of options to dynamic and a search for all courses, then also allow the user to type anything they want. Then use different searches to look for each thing and combine the results.

Thank You @blueback09

I am using dropdown to do search, now I can search by Course name but still getting issues with the Subject name because subject is inside courses.

1st

2nd here, after selecting Dropdown Value, its still showing these options, and selecting 's Name show more options… Please help.

Thanks But I already tried these options

The courses field is a “list of courses”. The Subject thing doesn’t have a field that contains any courses. So I don’t think you’ll be able to turn up any courses that way.

Earlier you said you want to “search Peer by Course as well as Subject”

So to get a list of Peers based on Subject you’ll have to do a Search For Peers, then Courses [is in] [search for courses (field subject contains search term)]. So the search for Courses will return a list of courses who’s field Subject contains the subject search term. Then the search for Peers will be able to return a list of Peers who’s field Courses appear in the results of the search for Courses.

Thank You @blueback09.

I tried but it does not work.

I succeed in Searching Peers by courses, but getting a hard time finding peers by subjects.

First I like is it possible ?
Right now There are three Data Types.

Peer contains List of courses, it’s easily searchable by Subjects.
image

and Courses contains List of Subjects:
image

So is it possible I go deeper enough into to search peers by list of subjects in Courses?

Build a search for Peers
set the field for Courses like this “contains search for Courses”

Build the search for Courses
set the field for Subjects like this “contains Subject being searched for”

The search for Courses will be evaluated first. It will return a list of courses where the subject field matches the subject you’re searching for. Then the search for Peers can run, and any Peer where the Course field contains one of the results from the Courses search will be in the results.

This topic was automatically closed after 70 days. New replies are no longer allowed.