search + side effect
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 2 Dec 2004 01:43:36 +0000 (01:43 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:20 +0000 (23:26 +0200)
commit634700d41dfb921482954db4fe96a5dcbc7f3892
treef079c2806fbd33921df24320e03236e82e3abd07
parent15cafb3e9eaa51a8e079602ac570be6ca3bdf42a
search + side effect

* Search (closes: #195).

    The heuristic is the following (and I'm quite proud of it, since it gives really good results) :

    compute a mark for each result following that :

    for each litteral token T we give :
        + 100   iff T is exactly the noun or the wife name of the person
        +  10   iff T is exactly his first name
        +   1   iff T is the begininng of the noun/wife name

    Then, we sort the results (better marks go first), and we cut 0 marks.

* Core :

    a bug was introduced wrt auto validation of the pages (scripts->bin)
    I really should write this tiny piece of code into php ...

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-10
htdocs/search.php
include/search.classes.inc.php
include/xorg.page.inc.php