Developer forum

Forum » Ecommerce - Standard features » Product List sorting (products with quotes)

Product List sorting (products with quotes)

António Ramos
Reply

Hi guys,

We are sorting a product list (from query string) by the title. The issue are for products that begins with double quote. e.g. "test" product. It always comes in front of the other products.

There is any sort configuration that make the possibility to ignore special characters?

Best regards,

António Ramos


Replies

 
Nicolai Høeg Pedersen
Reply

If you are using the index you might be able to use an analyzer on the field that removes the characters... Otherwise, my advice would be not to include those characters.

 
António Ramos
Reply

Hi Nicolai,

Even with the set to the field be analyzed the order doenst work correctly. Besides that have a even more strange order (please see http://screencast.com/t/bY3lRqcr8).

Best regards,

António Ramos

 
Nicolai Høeg Pedersen
Reply

You cannot just set it to analyzed. You have to have an analyzer that will ONLY remove characters that you want to remove.

Analyzers do a LOT of things depending on which you choose. More @DWTC Thursday & Friday :-).

 
António Ramos
Reply

Thanks Nicolai. It would be nice if anyone live stream DWTC :)

 

You must be logged in to post in the forum