Foren

Grouping in Liferay Search Container

Sreekanth Pola, geändert vor 9 Jahren.

Grouping in Liferay Search Container

New Member Beiträge: 21 Beitrittsdatum: 05.09.12 Neueste Beiträge
is there a possibility for grouping results in liferay search container based on a particular column?

Thanks,
Sreekanth Pola
thumbnail
Ravi Kumar Gupta, geändert vor 9 Jahren.

RE: Grouping in Liferay Search Container

Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
Search container shows the data as returned by some service call. Check the service you are calling there should be methods for that.

What are the calls you are using? I mean on which entity?
Sreekanth Pola, geändert vor 9 Jahren.

RE: Grouping in Liferay Search Container

New Member Beiträge: 21 Beitrittsdatum: 05.09.12 Neueste Beiträge
Service call returns a list of custom entity objects.
List may contain records of different kinds. Each record has three fields: Id, Manufacturer Name, Kind of Equipment(1, Dell, Laptop)
For example 0-4 records are laptops of different companies(Dell, Lenovo etc), 5-9 records are TV sets of different companies(Samsung, Sony etc).
What i would want to see in my search container grid is grouping feature on Laptops and TV sets.

Laptop
----------
1 Dell
2 Lenovo

TV
---------
1 Samsung
2. Sony
thumbnail
Pankaj Kathiriya, geändert vor 9 Jahren.

RE: Grouping in Liferay Search Container

Liferay Master Beiträge: 722 Beitrittsdatum: 05.08.10 Neueste Beiträge
AFAIK, there is not any mechanism available to group results with search-container.

I would recommend to use separate search-container for each categories(in your case Laptop, TV etc.) by setting results according to categories.

Regards