You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/add-ons/file.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ In addition, the File module supports [Pagination](templates/pagination.md).
23
23
24
24
NOTE: **Note:** If you're looking for how to use file fields in your channel entries loops, you should look at [the file field variable usage documentation](fieldtypes/file.md#template-tags) in the channel fields documentation.
25
25
26
+
NOTE: **Note:** If you uploaded the file using the Textarea, Text Input or RTE fields, you should look at [the textarea field documentation](fieldtypes/textarea.md#filexxurl-tag--inserting-a-file).
27
+
26
28
The File Entries tag allows you to display files and their associated meta-data on the frontend through the use of standard ExpressionEngine tags.
27
29
28
30
Here is a simple example of a possible usage of this tag:
@@ -35,7 +37,7 @@ Here is a simple example of a possible usage of this tag:
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/filters.md
+29-18Lines changed: 29 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,23 @@
10
10
11
11
[TOC]
12
12
13
+
Different type of Filters are automatically used by the `pro_search:results` tag when the query form uses specific field names, or the results tag includes specific parameters.
14
+
15
+
For instance, if a search form contains a `keywords` field, the [Keywords filter](#keywords-filter) will be invoked. If the results tag has a `distance:to="cf_entry_lat|cf_entry_long"` parameter, the [Distance filter](#distance-filter) will be used. If the `search:field_name` parameter or field is used, Pro Search will use the [Field Search filter](#field-search) on the results
13
16
14
17
## Keywords Filter
15
18
16
-
The Keywords filter lets you filter entries by search terms (ie. keywords). You need to create at least one Collection to use the Keywords filter. (You don't need a collection for other types of filters.)
19
+
The Keywords filter lets you filter entries by search terms (ie. keywords) and calculates a relevance score for each item in the search results.
17
20
18
-
Using the Keywords filter also adds a relevance score to the search results. To further fine-tune a keyword search, the following parameters are available.
21
+
NOTE: **Note:** You need to create at least one [Collection](/add-ons/pro-search/collections.md)to use with the Keywords filter. (You don't need to create a collection to use the other types of filters, just when using Keywords.)
19
22
23
+
To further fine-tune a keyword search, the following parameters are available.
20
24
21
25
### Parameters
22
26
23
27
#### collection
24
28
25
-
Limit search results to given collection names or IDs. If this is not specified and keywords are given, results will use all collections
29
+
Limit search results to specified [collections](/add-ons/pro-search/collections.md) (names or IDs). If this parameter is not used and keywords are being searched, EE will search in all collections, so it's best to use this rather than `channel=` in the results.
26
30
27
31
collection="news|staff"
28
32
@@ -173,7 +177,7 @@ NOTE: **Note:** When enabled, inflections and stems are only applied to keyword
173
177
174
178
## Categories
175
179
176
-
You can use the native `category` parameter to filter by category. For more advanced filtering by category, you can also divide categories into groups. The group syntax lets you combine AND and OR filtering (category 1 or 2 and category 3 or 4), as parameters are always combined with AND.
180
+
Use the native `category` parameter to filter by category. For more advanced filtering by category, you can also divide categories into groups. The group syntax lets you combine AND and OR filtering (category 1 or 2 and category 3 or 4), as parameters are always combined with AND.
177
181
178
182
### `category`
179
183
@@ -187,27 +191,28 @@ NOTE: **Note:** Use category IDs instead of URL titles for better performance.
187
191
188
192
## Distance
189
193
190
-
You can use the Distance filter to limit results by a given maximum distance. This filter prefers for you to use two channel fields where latitude and longitude values are stored. Alternatively, you can use a single field where the two values are separated by a comma. Using the Distance filter will limit results to entries that actually have latitude and longitude values entered.
194
+
Use the Distance filter to limit results by a given maximum distance. This filter prefers for you to use two channel fields where latitude and longitude values are stored. Alternatively, you can use a single field where the two values are separated by a comma. Using the Distance filter will limit results to entries that actually have latitude and longitude values entered.
191
195
192
196
### Parameters
193
197
194
198
#### `distance:from`
195
199
196
-
Latitude and longitude values separated by a vertical bar, used to calculate the distance.
200
+
The spot you're using to calculate the distance from. Must be latitude and longitude values separated by a vertical bar.
197
201
198
202
distance:from="52.163298|4.505547"
199
203
200
204
#### `distance:to`
201
205
202
-
The one or two channel field names that contain the latitude and longitude values separated by a vertical bar, used to calculate the distance.
206
+
The one or two channel field names that contain the latitude and longitude values you're comparing distance to, separated by a vertical bar if two fields.
203
207
208
+
distance:to="store_geocode"
204
209
distance:to="cf_entry_lat|cf_entry_long"
205
210
206
211
NOTE: **Note:** Use two separate fields instead of a single one for better performance.
207
212
208
213
#### `distance:radius`
209
214
210
-
The maximum distance between the from and to values. Leave blank for no maximum.
215
+
The maximum distance allowable between the from and to values. Leave blank for no maximum.
211
216
212
217
distance:radius="50"
213
218
@@ -219,17 +224,15 @@ The unit for the distances, either km, mi, m or yd. Defaults to km.
219
224
220
225
### Variables
221
226
222
-
The Distance filter makes this variable available in the [Results tag](/add-ons/pro-search/tags.md#exppro_searchresults):
223
-
224
227
#### `{pro_search_distance}`
225
228
226
-
The calculated distance in the given unit for this entry.
229
+
The calculated distance in the given unit for this entry. The Distance filter makes this variable available in the [Results tag](/add-ons/pro-search/tags.md#exppro_searchresults).
227
230
228
-
NOTE: **Note:** Using the Distance filter will return the search results ordered by distance, ignoring keyword relevance if applicable. Override by explicitly setting the orderby parameter.
231
+
NOTE: **Note:** Using the Distance filter will return the search results ordered by distance instead of keyword relevance (if applicable). You can override this by explicitly setting the orderby parameter to `pro_search_score`.
229
232
230
233
## Field Search
231
234
232
-
You can use the native `search:field_name` parameter to target specific fields. Additionally, Pro Searchcan target the entry’s ***title***, ***url_title***, ***status***, target [Grid](/fieldtypes/grid.md) columns, use multiple values for [numeric matching](/channels/entries.md#numeric-matching) (in combination with the `gt`, `gte`, `lt` and `lte` params), and use ***starts / ends with*** matching.
235
+
Use the native `search:field_name` parameter to target specific fields, just like `channel:entries` does already. Additionally, Pro Search's `pro_search:results`can target the entry’s ***title***, ***url_title***, ***status***, and target [Grid](/fieldtypes/grid.md) columns. It can also use multiple values for [numeric matching](/channels/entries.md#numeric-matching) (in combination with the `gt`, `gte`, `lt` and `lte` params), and use ***starts / ends with*** matching.
233
236
234
237
### Parameters
235
238
@@ -295,26 +298,34 @@ NOTE: **Note:** using `smart_field_search="yes"` can affect performance, dependi
295
298
296
299
## Ranges
297
300
298
-
You can use the Ranges filter to limit results by a given range, targeting a numeric or date field. If Pro Search detects that the given channel field for the range is a date field, it will try and convert the given range values to timestamps. This will allow custom date ranges as well.
301
+
Use the Ranges filter to target a numeric or date field and limit results by a given range. If Pro Search detects that the given channel field for the range is a date field, it will try and convert the given range values to timestamps. This will allow custom date ranges as well.
299
302
300
303
### Parameters
301
304
302
305
#### `range:field_name`
303
306
304
-
Takes a from and to value, separated by a vertical bar: |. Use `field_name:column_name` to target Grid/Matrix columns (v4.2.0+).
307
+
Takes both a from and to value, separated by a vertical bar: |. Use `field_name:column_name` to target Grid/Matrix columns (v4.2.0+).
308
+
309
+
range:ticket_price="20|80"
305
310
306
311
#### `range-from:field_name`
307
312
308
313
Takes a single from value. Use `field_name:column_name` to target Grid/Matrix columns (v4.2.0+).
309
314
315
+
range-from:hire_date="2020-01-01"
316
+
310
317
#### `range-to:field_name`
311
318
312
319
Takes a single to value. Use field_name:column_name to target Grid/Matrix columns (v4.2.0+).
313
320
321
+
range-to:age="65"
322
+
314
323
#### `range:min_field:max_field`
315
324
316
325
Where min and max are two separate (non-Grid/Matrix) fields. If a single value is given, entries will be returned where the value is between the min and max fields. If a from and to value is given, entries will be returned where the min and max fields overlap the given range.
317
326
327
+
range:min-deposit:max-deposit="1000"
328
+
318
329
#### `range-from:min_field:max_field`
319
330
320
331
Where min and max are two separate fields. Takes a single from value.
@@ -325,7 +336,7 @@ Where min and max are two separate fields. Takes a single to value.
325
336
326
337
#### `exclude`
327
338
328
-
Accepts parameter names. Excludes a given parameter value from the range itself. For example, `range:field_name="0|10" exclude="range:field_name"` will result in values `> 0` and `< 10` rather than `>= 0` and `<= 10`.
339
+
Accepts parameter names. Excludes a given parameter value from the range itself. For example, `range:field_name="0|10" exclude="range:field_name"` will result in search values `> 0` and `< 10` rather than `>= 0` and `<= 10`.
329
340
330
341
NOTE: **Note:** For numeric fields, make sure the Field Content option in the field’s settings is set to Number, Integer or Decimal.
331
342
@@ -346,7 +357,7 @@ Apart from any custom numeric or date field, the following standard channel fiel
346
357
347
358
## Relationships
348
359
349
-
You can use the Relationships filter to limit results by given parent or child entry IDs. The filter works for [Relationships fieldtypes](/fieldtypes/relationships.md).
360
+
Use the Relationships filter to limit results by given parent or child entry IDs. The filter works for [Relationships fieldtypes](/fieldtypes/relationships.md).
350
361
351
362
### Parameters
352
363
@@ -370,7 +381,7 @@ NOTE: **Note:** Use entry IDs instead of URL titles for better performance.
370
381
371
382
## Tags
372
383
373
-
You can use the Tags filter to limit results by given tag names or IDs. For more advanced filtering by tags, you can also divide tags into groups. The group syntax lets you combine AND and OR filtering (tag 1 or 2 and tag 3 or 4), as parameters are always combined with AND.
384
+
Use the Tags filter to limit results by given tag names or IDs. For more advanced filtering by tags, you can also divide tags into groups. The group syntax lets you combine AND and OR filtering (tag 1 or 2 and tag 3 or 4), as parameters are always combined with AND.
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/overview.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,20 +9,20 @@
9
9
10
10
# Pro Search
11
11
12
-
ExpressionEngine’s native `channel:entries` tag allows you to fetch and filter entries in many ways by setting its parameters. The native Search moduleallows for filtering by keyword, but is limited in its capabilities. Pro Search combines the two into one module and then throw in extra features, filters, and a performance boost.
12
+
ExpressionEngine’s native `channel:entries` tag allows you to fetch and filter entries in many ways by using its parameters. The native Search module, `search:search_results`, allows for searching by keyword, and returning results from many channels, but is very limited in its overall capabilities. Pro Search combines the two into one module and then throws in many extra features, powerful filters, and a performance boost.
13
13
14
+
Pro Search uses a custom [full-text](http://dev.mysql.com/doc/refman/5.5/en/fulltext-search.html) index instead of the raw entry data, which makes searching by keywords **Very Fast**. It also adds **relevance** to search results, which can be custom tuned by assigning **different weights** to any searchable field.
14
15
15
-
Searching by **keywords** uses a custom [full-text](http://dev.mysql.com/doc/refman/5.5/en/fulltext-search.html) index instead of the raw entry data, which makes Pro Search fast. **Very fast**. It also adds **relevance** to search results which can be influenced by applying **weight** to any searchable field.
16
+
Apart from the powerful [keywords filter](/add-ons/pro-search/filters.md#keywords), and the ability to **use any native parameter as a search filter**, Pro Search adds several other filters to further enhance and refine your entries loop or your search results:
16
17
17
-
Apart from the powerful [keywords filter](/add-ons/pro-search/filters.md#keywords), and the ability to **use any native parameter as a search filter**, Pro Search adds several other filters to further enhance and refine your search results:
18
-
19
-
- Select any combination of [categories](/add-ons/pro-search/filters.md#categories);
20
-
- Limit entries by a given [distance](/add-ons/pro-search/filters.md#distance) based on latitude/longitude values;
21
-
- Target [specific fields](/add-ons/pro-search/filters.md#field-search), including Titles and Grid columns;
22
-
- Define numeric or date [ranges](/add-ons/pro-search/filters.md#ranges);
23
-
- Filter based on an entry’s [relationship](/add-ons/pro-search/filters.md#relationships) with other entries;
24
-
- Filter by [Grid calculations](https://github.com/low/low_search_table) like min/max values or averages;
25
-
- Filter by [Author fields](https://github.com/low/low_search_members) like screen name or email;
18
+
- Category: Select any combination of [categories](/add-ons/pro-search/filters.md#categories);
19
+
- Distance: Limit entries by a given [distance](/add-ons/pro-search/filters.md#distance) based on latitude/longitude values;
20
+
- Fields: Target [specific fields](/add-ons/pro-search/filters.md#field-search), including Titles and Grid columns;
21
+
- Number Ranges: Define numeric or date [ranges](/add-ons/pro-search/filters.md#ranges);
22
+
- Relationships: Filter based on an entry’s [relationship](/add-ons/pro-search/filters.md#relationships) with other entries;
23
+
- Math: Filter by [Grid calculations](https://github.com/low/low_search_table) like min/max values or averages;
24
+
- Author: Filter by [Author fields](https://github.com/low/low_search_members) like screen name or email;
25
+
- SQL: Filter a field based on a [SQL query](/add-ons/pro-search/parameters.md#sql-parameters)
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/tags.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,15 +185,23 @@ Use this parameter to pass through a previously executed encoded search query. N
185
185
186
186
[TOC=4 hide]
187
187
188
-
The Results tag supports all parameters from the native channel:entries tag and any parameters made available by the Filters. In addition to those, the following parameters are available. Any parameters set in the tag will override the ones in the given query.
188
+
The Results tag supports:
189
+
* all parameters from the native `channel:entries` tag, and
190
+
* the parameters listed below, and
191
+
* any additional parameters made available by the Filters referenced by your query.
NOTE: **Note:** The Keywords filter has a unique parameter: `collection`. If the `collection` parameter is not set, the keywords Filter will search ALL collections. The `channel` parameter is available to limit any results set, including a result set that used the keywords Filter. But for keywords searches, it is much more efficient to define the specific collection(s) you want to search via the `collection` parameter, rather than limit the results by `channel` after searching EVERY collection.
204
+
197
205
#### `alias:parameter=`
198
206
199
207
Point a given parameter to any other, so parameter x gets treated like parameter y. For example, to use the param `q` as an alias for `keywords`, use `alias:keywords="q"`. Useful if you have previous or multiple search forms with different names for the same parameters, and you want to have one result page.
0 commit comments