cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced search operator

Former Member
0 Kudos

Hi experts,

I need to configure advanced search in order to make search using the AND operator between fields The OR operator with the same field values for example

Field A

Field B

Advanced Search request : A and B

Field A

Field B:

Value B1

Vaule B2

The search request : A AND (B1 OR B2)

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member638520
Contributor
0 Kudos

Hi,

According to https://help.hybris.com/6.1.0/hcd/8b50ccf3866910149e1c9ebdd47f12be.html it's possible:

By default, the Advanced Search widget allows to use a single global operator when defining a search query (either OR or AND). It is possible though to set multiple conditions for search, e.g.: (condition A OR condition B) AND (condition C OR condition D). To learn more how to implement that, see the Advanced Search Backoffice Framework Search API.

Tutorial, how to implement it, is available here: https://help.hybris.com/6.1.0/hcd/8b5074b3866910149d2bf4072759941e.html

Nevertheless, it's possible only from API point of view. In other words, you cannot construct such query by using Advanced Search Widget in UI.

Regards

Lukasz