Developer forum

Forum » Ecommerce - Standard features » Facet Options always empty

Facet Options always empty

Nuno Aguiar
Reply

Hi,

 

I have an odd case using filters. We have set up about 15 facets but 1 never has options and we don't know why. We tried:

  • Re-setting the parameter and the facet from scratch
  • We used the schema extender to set up the index
  • Check the indexed data (using the Query Sandbox) - the information is there
  • The parameter works - we filter the product catalogue accurately
  • We compared to other facets and fields of the same type (field is an array of strings, parameter is a string)
  • The facet options are always empty

 

The product category field is a multiselect and we want to build a facet as a dropdown field.

 

Does anybody have any idea of what it can be? What information would I need to provide to get some help? 

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Høeg Pedersen
Reply

It sounds like the new indexing engine?

Can you pls send me a link?

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Here it is: http://rowlf.dw-demo.com/choral/see-all-choral/choral?Category=Choral 

 

Thanks in advance.

 

Best Regards,

Nuno Aguiar

 
Nicolai Høeg Pedersen
Reply

And which of the facets has no options?

 
Nuno Aguiar
Reply

Sorry: Composers

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

The lucene index can only handle 2048 options for one facet group. Otherwise it will return nothing. No one can handle that many options anyway...

So I think that is the problem....

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Ok, I guess we found a limitation. Can you propose a workaround?

  • Lazy load the Composers based out of Distinct values querying the database for the existing product list?

 

That's the only thing that comes to mind, but don't think it will perform too well :(

 

Anyhow I suggest there should be a tag that triggers that alert/error, so we know we reached 2048 limit.

 

Best Regards,

Nuno Aguiar

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

Ever heard of Less Is More :-). When you have 21000 different pieces of music, most with different composers, you would not want to show facets.... What human would be able to see through a list of 1000s of composers? It is also, by the way, why your product edit might seem a bit slow.

Loading the composers as you suggest, might be the best option. The search works by adding &composer=C00001 to the querystring, so it is only the facets that are the problem.

BR Nicolai

 
Nuno Aguiar
Reply

Hi Nicolai,

 

It's not my project, it the client's. If he want's it and is paying for that, I just need to find him the best way to do it sad I don't like it either.

 

I got it that it's not a facet problem. I was just suggesting a tag saying something because even when we have a limited amount of results the facet does not render it. I understand that the problem is considering all possible options without filtering, but since I have no indication what the issue was, I kept trying different things until I reached out to the Forum

ex: http://rowlf.dw-demo.com/search-results?Summary=test - <500 products and still no composers

 

But for now it is handled.

Thanks,

Nuno Aguiar

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

I do not think it can make facets when there are more than 2048 unique values in the field - no matter the rest of the search result... Will have to look into it though.

And you are the proffesional - you can advice your customers to do better and ask why? I.e. Why do all those customers want a stupid carousel? :-): http://shouldiuseacarousel.com/

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Thanks for looking into it.

 

You are right about the stupid carousel, but unfortunately I get told "That's what I need and is important to us", more that I would like. A few more projects with unusual requests coming very soon (+40 facets, facets with hundreds of unique values, complex facet matching)... more questions and features requests on the new index engine to come :)

 

Best Regards,

Nuno Aguiar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Nuno:what about an auto complete box back by an AJAX call that filters a distinct list of composers?

 

Imar

 
Nuno Aguiar
Reply

Hi Imar,

 

Yes, that's what we are going for and suggested right now. Waiting for confirmation by the client if they are ok with that.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum