File tree Expand file tree Collapse file tree 4 files changed +156
-0
lines changed
Expand file tree Collapse file tree 4 files changed +156
-0
lines changed Original file line number Diff line number Diff line change 1+ .. ==================================================
2+ .. FOR YOUR INFORMATION
3+ .. --------------------------------------------------
4+ .. -*- coding: utf-8 -*- with BOM.
5+
6+ .. include :: ../Includes.txt
7+
8+
9+ .. _conf-index :
10+
11+
12+ .. raw :: latex
13+
14+ \newpage
15+
16+ .. raw :: pdf
17+
18+ PageBreak
19+
20+ Configuration Reference
21+ =======================
22+
23+
24+ .. toctree ::
25+ :maxdepth: 5
26+ :glob:
27+
28+ ./Reference/TxSolrGrouping
Original file line number Diff line number Diff line change 1+ .. ==================================================
2+ .. FOR YOUR INFORMATION
3+ .. --------------------------------------------------
4+ .. -*- coding: utf-8 -*- with BOM.
5+
6+ .. include :: ../../Includes.txt
7+
8+ .. raw :: latex
9+
10+ \newpage
11+
12+ .. raw :: pdf
13+
14+ PageBreak
15+
16+
17+ .. _conf-tx-solr-general :
18+
19+ tx_solr.search.grouping
20+ =======================
21+
22+ This section defines all available settings for grouping.
23+
24+ .. contents ::
25+ :local:
26+
27+
28+ grouping.numberOfGroups
29+ -----------------------
30+
31+ :Type: Integer
32+ :TS Path: plugin.tx_solr.search.grouping.numberOfGroups
33+ :Default: 5
34+ :Since: 1.0
35+
36+ grouping.numberOfResultsPerGroup
37+ --------------------------------
38+
39+ :Type: Integer
40+ :TS Path: plugin.tx_solr.search.grouping.numberOfResultsPerGroup
41+ :Default: 5
42+ :Since: 1.0
43+
44+
45+ grouping.allowGetParameterSwitch
46+ --------------------------------
47+
48+ :Type: Boolean
49+ :TS Path: plugin.tx_solr.search.grouping.allowGetParameterSwitch
50+ :Default: 0
51+ :Since: 1.0
52+
53+
54+ grouping.groups.[groupName].field
55+ ---------------------------------
56+
57+ :Type: String
58+ :TS Path: plugin.tx_solr.search.grouping.[groupName].field
59+ :Default: empty
60+ :Since: 1.0
61+
62+ Defines the solr field where a group should be build on.
63+
64+ Note: Use either field or queries no mix. Groups with field are field groups, groups with queries are query groups.
65+
66+ grouping.groups.[groupName].queries
67+ -----------------------------------
68+
69+ :Type: Array
70+ :TS Path: plugin.tx_solr.search.grouping.[groupName].queries
71+ :Default: empty
72+ :Since: 1.0
73+
74+ Defines an array of queries to group the results in.
75+
76+ Note: Use either field or queries no mix. Groups with field are field groups, groups with queries are query groups.
Original file line number Diff line number Diff line change 1+ Introduction
2+ ============
3+
4+ What does it do?
5+ ----------------
6+
7+ Solrfluidgrouping can be used to group documents based on a solr field or a set of solr queries.
8+
9+ The following example shows show to group documents based on the "type" field:
10+
11+ .. code-block :: typoscript
12+
13+ plugin.tx_solr {
14+ search {
15+ grouping = 1
16+ grouping {
17+ numberOfGroups = 5
18+ numberOfResultsPerGroup = 5
19+ allowGetParameterSwitch = 0
20+ groups {
21+ typeGroup {
22+ field = type
23+ }
24+ }
25+ }
26+ }
27+ }
28+
29+
30+ The next example shows how to group documents based on queries:
31+
32+ .. code-block :: typoscript
33+
34+ plugin.tx_solr {
35+ search {
36+ grouping = 1
37+ grouping {
38+ numberOfGroups = 5
39+ numberOfResultsPerGroup = 5
40+ allowGetParameterSwitch = 0
41+ groups {
42+ pidQuery {
43+ queries {
44+ lessThenTen = pid:[0 TO 10]
45+ lessThen30 = pid:[11 TO 30]
46+ rest = pid:[30 TO *]
47+ }
48+ }
49+ }
50+ }
51+ }
52+ }
You can’t perform that action at this time.
0 commit comments