1 / 3
Dec 2015

We are applying sorting by title to one of our collections.  Reading the funnelback docs, this is standard funnelback feature, and does not need any additional configuration.

 

We are encountering some issues with sorting by title (alphabetical sorting), looking at the native JSON output (/s/search.json) results do not seem to be sorting when multiple terms are in the query.

 

When adding sort=title to the url, sorting works when the query contains one term, for example:

 

...?query=business&sort=title

 

When sort is applied when two terms are used in the query, the sort does not work, only listing results in rank order, and not alphabetical order.

 

...?query=business+improvement&sort=title

  • created

    Dec '15
  • last reply

    Dec '15
  • 2

    replies

  • 7.8k

    views

  • 2

    users

  • 2

    links

Appending sort=title to the url was not working.

 

When we appended these additional vars taken from documentation here: https://docs.funnelback.com/padre_binaries_usage.html14, the alphabetical sort by title began to work for multiple term queries.

 

...?query=business+improvement&sort=title&sortall=1&sort_sensitive=1&sco=0&tierbars=0

 

Possibly the options in our padre_opts.cfg were causing the issues and needed to be superseded.

Hi Gavin -

 

The use of tier bars, combined with multi-term queries, is what's triggering the behaviour you're seeing.

 

From the documentation on the 'tierbars' query processor option ( 22https://docs.funnelback.com/query_processor_options_collection_cfg.html#F.%20Presentation%20options22 )

 


 

Display tierbars in result list output (XML and HTML). When turned on (for all -res modes) and -sort is used, results will be first sorted by tier then by the sorting mode, otherwise if -sortall is used then all results will be sorted regardless of tier.

 

Several options are available.  Either:

  1. Disable partial matches (set -fmo=on)

  2. Enable -sortall (as you've done)

These can be further combined with case-sensitive sort, if required.