Changeset 82419 in spip-zone


Ignore:
Timestamp:
May 15, 2014, 3:29:15 PM (5 years ago)
Author:
fil@…
Message:

facette geodist triee par distance et pas par nombre de documents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/prive/squelettes/contenu/sphinx.html

    r82415 r82419  
    122122#SET{lat,1.283}
    123123
    124 [(#SET{grouper,#VAL{'INTERVAL(GEODIST('}|concat{#GET{lat}}|concat{','}|concat{#GET{lon}}|concat{',UINT(properties.geo.lat),UINT(properties.geo.lon)),100,300,1000,3000,10000,30000)'}})]
    125 [(#SET{sqlf,"SELECT COUNT(*) AS c, "[(#GET{grouper}) AS grouper, ]GROUPBY() AS facette FROM [(#ENV{source,spip})] WHERE MATCH([(#ENV*{recherche}|_q)]) GROUP BY grouper ORDER BY c DESC LIMIT 30})]
     124[(#SET{grouper,#VAL{'INTERVAL(GEODIST('}|concat{#GET{lat}}|concat{','}|concat{#GET{lon}}|concat{',UINT(properties.geo.lat),UINT(properties.geo.lon)),100,300,1000,3000,10000,30000,100000,300000,1000000,3000000,10000000)'}})]
     125[(#SET{sqlf,"SELECT COUNT(*) AS c, "[(#GET{grouper}) AS grouper, ]GROUPBY() AS facette FROM [(#ENV{source,spip})] WHERE MATCH([(#ENV*{recherche}|_q)]) GROUP BY grouper ORDER BY grouper ASC LIMIT 30})]
    126126
    127127
     
    141141            <h2>Liste des facettes</h2>
    142142        <BOUCLE_facette(DATA){source tableau, #VALEUR}{si #CLE|=={docs}}>
    143                 #VALEUR{c} = <a href="[(#SELF|parametre_url{tag,[(#VALEUR{facette}|sinon{-})]})]">[(#VALEUR{facette}|sinon{<i>sans tag</i>})]</a><br />
     143                <a href="[(#SELF|parametre_url{tag,[(#VALEUR{facette}|sinon{-})]})]">[(#VALEUR{facette}|sinon{<i>sans tag</i>})]</a> (#VALEUR{c} documents)<br />
    144144        </BOUCLE_facette>
    145145        </B_facette>
Note: See TracChangeset for help on using the changeset viewer.