Submitted : _RECHERCHE_MIN_CAR

**SPIP**

# Article submitted

The article "**\_RECHERCHE\_MIN_CAR**
(https://www.spip.net/ecrire/?exec=article&id_article=6609)" is submitted
for publication. on Sunday 4 October 2020.

* * *

## \_RECHERCHE\_MIN_CAR

Sunday 4 October 2020 , by [jack](.././?page=auteur&id_auteur=593&)

The constant **code>\_SEARCH\_MIN_CAR</code>** defines the minimum number
of characters of a word to be included in a search with several words. It
has been available since SPIP 3.0.13
(https://www.spip.net/ecrire/?exec=article&id_article=5648) and its default
value is 4 characters.

For example with a search of the following expression: "SPIP is a
publishing system for the Internet".

The search will be based on the complete expression "SPIP is a publishing
system for the Internet", on the other hand on the words "SPIP",
"publishing", "system", "Internet".

It is possible to customize the value of the constant `_RECHERCHE_MIN_CAR`
in your file `config/mes_options.php` (see the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4909)).

Example :

    // taking into account two-letter words

    // during a multi-word search

    define
    
     (http://www.php.net/define)
    
    &#40;

    '_RECHERCHE_MIN_CAR'

    ,

    2

    &#41;

    ;

— Sent by SPIP (https://www.spip.net/)

rubon199-7e493.jpg