Page 1 of 1

SearchRedirect

Posted: Fri Mar 22, 2013 7:58 am
by staleks
Hi,

recently I've updated `admin` module to support `advanced-search`, with a little problems, due to lack of details in documentation, but finally make it work.

Now I am starting to test it and I am not sure how it should work :)

Let's start with simple SearchRedirect. I am under impression that this feature should work in a way that I can define what should happen in case that some is using keyword search that I want to intercept.

E.g. in case that user is trying to look for Becks (beer), I will like to redirect him to some other mark Amstel.

So I've defined new record in search redirect with following values:
Priority: 0;
Search keyword: "becks";
Redirect URL: "search?q=amstel";
Start Date: 2013-03-01 00:00;
End Date: 2013-03-31 23:00;

But when I go to frontend application (I've deployed site on following url http://localhost/shop), it still shows page with
Search results for: becks (0 found)

Can you please help me with this? where to look for?

Re: SearchRedirect

Posted: Tue Mar 26, 2013 2:47 am
by staleks
Hi,

I've found possible problem. Previously, "BroadleafSearchController" was overriden with custom implementation and written there override logic for searchRedirect based on SearchRedirect Entity in blc DB.

It was clear to me when I've downloaded Broadleaf Advanced Search Demo and debug code, step-by-step.


Anyway consider this issue closed.