Developer forum

Forum » Ecommerce - Standard features » Filter based on eCom search

Filter based on eCom search

Nuno Aguiar
Reply

Hi,

 

How can we filter (eCom Search advanced), based on a search resuta (eCom Standard search)?

 

We have a webshop, where our client wants to be able to use the eCom Filters, within the given search query (free text on all fields). We can make them work independently, but not together.

 

Dynamicweb 8.3.1.1

Nuno


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

You cannot combine the 2. You have to use either one or the other.

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

That's what I thought. Could you guys consider it for a feature request. Seems a bit odd that the Advanced search in not an "extention" of the standard search.

 

I understand the filters work based on the paragraph settings, but if they could change the original dataset priorityzing the search URL parameters, the search filters should work, right?

 

Nuno

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

ecomquery=something runs on the database and filteret search on the lucene index, and can therefore not be combined.

Bu the index search has a free text field type that can be combined with the facets... Or you can use parameter based search along with the database search module: http://developer.dynamicweb-cms.com/documentation/for-developers/ecommerce/parameter-based-search.aspx

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Using the search module and parameter based search do not solve the issue, if nothing else, due to price ranges.

 

The free text search filter only works based on 1 field, unless the "Summary" compiles everything, but I cannot get results based on it. Am I doing something wrong? I did not find any documentation about the Summary.

 

Nuno

 
Merethe Nielsen
Reply

Hi

I found this in the manual: http://manual.dynamicweb-cms.com/Default.aspx?ID=4392

Default search field
Use the dropdown to select a default search field. This allow you to select a specific product information field in which the search should be performed.
Default is Summary which means that it search in everything.​

Kind regards,
Merethe

 

 
Nuno Aguiar
Reply

Hi Merethe,

 

I was looking into the filters documentation, did not think to search in the paragraph settings. I managed to get it working now, great.

 

Thanks,

Nuno

 
Merethe Nielsen
Reply

Great, Nuno :)

 

You must be logged in to post in the forum