Reactive Pro Documentation
WelcomeQuick StartSystem StatusInstallationMenusSearch Builder
Search Builder Backend
Search Builder Frontend
Reactive TemplatesWooCommerce Shop and Category Page SearchDynamic SearchWP Media SearchRnB Plugin Support
Plugin Translation
Search RelationHooksUpgrade GuideTheme SupportFAQChangelog

AND OR Relation Search Component

NB: in version 4.0.1 we have update this feature so make sure you read the update guide for the v4.0.1

We have followed the standard relational procedure that is being used by most of the modern platform,

So, every search component for example checkbox, radiobox, selectbox will work as an OR relation between them

self and , for example

  1. Checkbox (Clothing):
- Shirt
- Pant
- Shoe
- Hat
  1. Checkbx or Radiobox (size):
- Small
- Medium
- Large
- Extra Large

so, how your user should get the data, if they select shirt at first from Checkbox(clothing) they will get the result of all the shirt and now from the Checkbox or Radiobox (size) they choose small they will get the result of all the shirt with size of small this is valid right? ok go one, now if the user want to see both the result of small or medium sizes shirt they will choose medium, and he have the result of all the shirts with Small and Medium size. Please not that, in your post if you have a shirt with small size you will get the result , if you have a shirt with Medium size you will get the result and if you have both small and medium selected you will get the result too. so you can see that the logic is quite valid here and it's very important that you arrange your data as in your post admin section as logical as possible, so that you can create a valid search for your user.

Now if the user wants too see both the shirt and pant in the result section how they will do that? It's simple they will choose shirt first and then they will choose Pant. If they want to see only the small sizes shirt or Pant the will select the Size Small from the Checkbox or Radiobox (Size).

This is how our Normal Search Component Checkbox, Radiobox, Selectbox work for Simple Taxonomy Data.

But If you want to use an And Relation between the same Checkbox or you Have A Parent Child hierarchical complex taxonomy

data how Should you show that data to the user. Well that's where our Combobox Search component comes into play. Just follow the below steps you will get the idea.

if you want to use the data as an And relation you can follow the below steps,

for example you have the taxonomy category,

parent category 1

child category 1
child category 2
child category 3
child category 4

parent category 2

child category 1
child category 2
child category 3
child category 4

now if someone clicks on the 'parent category 1 & child category 1 he will find the result that has both 'parent category 1 & child category 1 selected on the post which is and relation and now if he select the child category 2 he will get the result of parent category 1 & child category 1 or 'parent category 1 & child category 2' which is an or relation between the siblings. if you check the popular websites they also follow this procedure,

for example you have the below Category taxonomy,

Clothing

Shirt
Men
Woment
Pant
Men
Women
Shoe
Hat

Music

Single
Male
Female
Albums
Male
Female

you can see it's actually a complex hierarchical taxonomy which comes very handy at times. you can easily use this king of data in our Combobox Search component . you can check it from the below url from Dynamic & Parent Child Hierarchical Demo

parent to child and relation, sibling to sibling that is two parent or two child will have a or relation and you will find this feature only in our Combobox search component.

hope this is helpful for you

NB: since v4.0.1 we have made some improvement in the and or search component which you can read from the below url,

And Or For Search component

i) and or feature added: