Development

Changeset 7286

You must first sign up to be able to contribute.

Changeset 7286

Show
Ignore:
Timestamp:
02/03/08 11:24:05 (10 months ago)
Author:
Mark.Quezada
Message:

Added ability to specify "highlight_qs" in the app.yml file so that routing will work correctly. The sfLucene plugin will now look first for this value and use it, falling back to the filters.yml file value only when the app.yml value doesn't exist. If nothing is supplied then the current default "sf_highlight" is still used. This is a backwards compatible change and shouldn't break any existing installations.
Updated readme and changelog.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfLucenePlugin/branches/1.0/CHANGELOG

    r7256 r7286  
    11Version 0.1.4-DEV 
    22  * Added option to specify environment in pake tasks 
     3  * Added ability to define 'highlight_qs' in app.yml which fixes routing problems when a value other than the default was used (closes #2873) 
    34 
    45Version 0.1.3 
  • plugins/sfLucenePlugin/branches/1.0/README

    r6561 r7286  
    563563  * {{{ $ symfony lucene-init-module application }}} initializes a base module for you to customize. 
    564564  * {{{ $ symfony lucene-optimize application }}} optimizes the index for all cultures. 
    565   * {{{ $ symfony lucene-rebuild application }}} rebuilds the index for all cultures
     565  * {{{ $ symfony lucene-rebuild application environment }}} rebuilds the index for all cultures. Note: "environment" parameter added in 0.1.4
    566566 
    567567= Contribute = 
  • plugins/sfLucenePlugin/branches/1.0/lib/filter/sfLuceneHighlightFilter.class.php

    r6084 r7286  
    224224  protected function getHighlightQs() 
    225225  { 
    226     return $this->getParameter('highlight_qs', 'sf_highlight'); 
     226    return sfConfig::get('app_lucene_highlight_qs', $this->getParameter('highlight_qs', 'sf_highlight')); 
    227227  } 
    228228  protected function getNoticeTag() 
  • plugins/sfLucenePlugin/branches/1.0/modules/sfLucene/lib/helper/sfLuceneHelper.php

    r7088 r7286  
    8181  } 
    8282 
    83   $query .= 'sf_highlight=' . implode($keywords, ' ') . $suffix; 
     83  $query .= sfConfig::get('app_lucene_highlight_qs','sf_highlight').'=' . implode($keywords, ' ') . $suffix; 
    8484 
    8585  return $query;