Changeset 82381 in spip-zone


Ignore:
Timestamp:
May 15, 2014, 10:19:40 AM (5 years ago)
Author:
fil@…
Message:

ajout du WEIGHT() as score

File:
1 edited

Legend:

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

    r82378 r82381  
    1515?>
    1616
    17 [(#SET{sql,"SELECT *, SNIPPET(content,"[(#ENV*{recherche}|_q|concat{","})]'limit=200') as snippet FROM [(#ENV{source,spip})] WHERE MATCH([(#ENV*{recherche}|_q)]) LIMIT 10})]
     17[(#SET{sql,"SELECT WEIGHT() AS score, *, SNIPPET(content,"[(#ENV*{recherche}|_q|concat{","})]'limit=200') as snippet FROM [(#ENV{source,spip})] WHERE MATCH([(#ENV*{recherche}|_q)]) LIMIT 10})]
    1818
    1919<pre>[(#GET{sql}|htmlspecialchars)]</pre>
     
    2626            <dl>
    2727        <BOUCLE_documents(DATA){source tableau, #VALEUR}{si #CLE|=={docs}}>
    28                 [<dt><a href="[(#URI)]">(#TITLE)</a>
     28                [<dt>#SCORE <a href="[(#URI)]">(#TITLE)</a>
    2929                 [<small>(#DATE|affdate_court)</small>]
    3030                </dt>
Note: See TracChangeset for help on using the changeset viewer.