Pour restreindre la recherche a un ensemble de documents (voir ajaxSearch_readme.txt, et ajaxSearch_version_180.txt dans le répertoire)
&parents [comma-separated list of integers MODx document IDs] (optional)
A list of parent-documents whose descendants you want searched to &depth depth when searching.
All parent-documents by default
>> liste de documents parents. Recherche dans les fils uniquement
&depth [int] (optional)
Number of levels deep to go.
Any number greater than or equal to 1. 10 levels by default
>> précise la profondeur de la recherche dans l’arborescence
&documents [comma-separated list of integers MODx document IDs] (optional)
A list of documents where to search
>> liste des documents ou chercher
&filter runs as the &filter Ditto 2.1 parameter.
(see
http://ditto.modxcms.com/tutorials/basic_filtering.html)
&filter=`field,criterion,mode`
Where:
* "field" is the name of any field from main table or joined table
* "criterion" is a value of the same data type (number, string, date, etc.) as the field.
* "mode" is a number from 1 to 8 that specifies what kind of comparison to make between the value of the field and the specified criterion.
* "," (comma) is the "Local Filter Delimiter", i.e. the character that tells where the division is between the three parts of the clause.
There must be no spaces in the "criteria" term unless you want them used in the comparison.
The filter clause: id,50,2 means "exclude any document whose id field equals 50."
A filter may include multiple clauses, separated by the global delimiter, in the form: clause|clause|clause|etc.
Where:
* "clause" is any filter clause as defined above.
* "|" (the pipe symbol) is the Global Filter Delimite, the character that tells Ditto where the division is between clauses.
* "etc." means there is no fixed limit to the number of clauses you may include.
Multiple clauses have an "OR" relationship. I.e. a document will be excluded if it meets the criterion of any one clause (clause-1 OR clause-2 OR clause-3, etc.).
The filter id,50,2|id,52,2 means "exclude any document whose id field equals 50 or 52."
Comparison Modes
Exclude a document if its value in the specified field
1 is not equal to the criterion (!=)
2 is equal to the criterion (==)
3 is less than the criterion (<)
4 is greater than the criterion (>)
5 is less than or equal to the criterion (<=)
6 is greater than or equal to the criterion (>=)
7 does not contain the text of the criterion
8 does contain the text of the criterion
>> par exemple :
&filter=`id,50,2` exclut le document 50
&filter=`id,50,1` exclut tous les documents dont l’id est différent de 50. Equivaut à &documents=`50`
&filter=`tv_content,monMotClé,7` exclut tous les documents qui n’ont pas au moins une TV contenant "monMotClé"