Developer forum

Forum » Development » Query Expression Operator Update

Query Expression Operator Update

Nuno Aguiar
Reply

Hi,

 

It there a way for me to override the operator on a specific query expression? For example:

  • The setting is
    Product Number - [Match Any] - [parameter_q]
  • Based on a specific query parameter we would change [Match Any] to [Match All]

 

How could I do that?

 

Best Regards,

Nuno Aguiar

 


Replies

 
Nicolai Høeg Pedersen
Reply

Add 2 expressions on the same field using different operator and parameter. In the frontend, change to the other parameter and hence other operator when you need it.

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Yes, that was my initial though, but this customer wants to build an advanced search page with +20 facets and some with And/Or options. This makes my query expression list to almost double... I was trying to find a way to control it better.

 

If this is the only way, I'll make it happen :)

 

Thanks,

Nuno Aguiar

 

You must be logged in to post in the forum