Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new [SearchSettings] block to set the SortBy value #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion settings/ezfind.ini
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,19 @@ FilterHiddenFromDB=disabled
# Option to exclude owner name from being used as a query field in searches (default: disabled )
# ExcludeOwnerName=enabled

[SearchSettings]
# The sort_by parameter is used to define the sort order of the search result.
# To see what are the supported options visit the following url:
# https://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Find/eZ-Find-2.1/Customization/Template-fetch-functions#Sort_by
# SortBy key = sort option. Possible values: [visit link above]
# SortBy value = sort order. Possible values: [asc|desc]
# It is also possible to specify multiple sort options through this variable.
SortBy[]
SortBy[published]=desc
#SortBy[score]=desc
#SortBy[author]=desc
#SortBy[path]=desc

[MoreLikeThis]
#Experimental!!
#fields to use for query term extraction: proper fields "native",
Expand Down Expand Up @@ -330,4 +343,4 @@ FiltersList[geodist]=eZFindGeoDistExtendedAttributeFilter

[QueryBoost]
RawBoostQueries[]
#RawBoostQueries[]=meta_class_identifier_ms:folder^10
#RawBoostQueries[]=meta_class_identifier_ms:folder^10