Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26630

eZ Find: add ability for per-query raw filters

    Details

      Description

      In eZ Find, all filters expect to follow the pattern field:value. If you don't have a colon in the filter, ezfeZPSolrQueryBuilder::getParamFilterQuery() prepends a colon, effectively breaking some filters. This prevents you from adding special filters for the "fq" parameter in Solr, such as frange queries:

      http://solr.pl/en/2011/05/30/quick-look-frange/

      An example use case is to enforce a minimum relevance score:

      {!frange l=1}query({!edismax v=$q})
      

      You can get around this by using RawFilterList in ezfind.ini, but that's applied to every query.

        Activity

        Hide
        Peter Keung added a comment -
        Show
        Peter Keung added a comment - Pull request: https://github.com/ezsystems/ezfind/pull/200

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Keung
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: