PUBLISHED : _RECHERCHE_MIN_CAR

**SPIP**

# Article validated

The article "**\_RECHERCHE\_MIN_CAR**
(https://www.spip.net/en_article6609.html)" was validated by
<multi>[ar]جورج[fr]George [en]George</multi>.

* * *

## \_RECHERCHE\_MIN_CAR

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

The constant **`_SEARCH_MIN_CAR`** 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 one hand 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