Changeset 1324


Ignore:
Timestamp:
Sep 5, 2010, 2:27:55 PM (10 years ago)
Author:
teymour
Message:

Poids des petites interventions

Location:
cpc/trunk/project
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/config/doctrine/schema.yml

    r1312 r1324  
    179179      description: [Parlementaire, Personnalite, intervention]
    180180      moretags: [Parlementaire, Personnalite, type]
    181       devaluate_if_wordcount_under: 100
     181      devaluate_if_wordcount_under: 200
    182182      date: date
    183183  columns:
  • cpc/trunk/project/lib/model/solr/SolrListener.php

    r1316 r1324  
    9595    if (isset($this->_options['devaluate_if_wordcount_under']) && ($wclimit = $this->_options['devaluate_if_wordcount_under'])) {
    9696       if ($wclimit > $wordcount)
    97          $extra_weight *= ($wordcount*0.5) / $wclimit + 0.5 ;
     97         $extra_weight *= 0.5 ;
    9898    }
    9999   
Note: See TracChangeset for help on using the changeset viewer.