wiki.Search(query : str, max : num?, sortby : str?, constraint : str?) : xml
Insert a list of search results.
1.8.1 or later
On version 8.05 and later, constraint must not be omitted, but can be an empty string.
| Name | Type | Description |
| query | str | query for a search |
| max | num | (optional) number of returned results allowed (default: 10). |
| sortby | str | (optional) specify which field to use to sort results by (one of "score", "title", "date", "size", "wordcount"; use "-title" for reverse order; default: "score") |
| constraint | str | (optional) additional constraints for search (default: "") |
a list of your search results in xml format
| Output | ||
|
| |
|
| |
|
| |
|
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by
wiki.search("your query", _, _, "")
-or-
wiki.search{query: "your query", constraint: "" }
So far I have written the below string which is very crude.
{{ wiki.search("type:wiki OR -title:User* OR -title:Templates OR -tag:a* OR -tag:b* OR -tag:c* OR -tag:d* OR -tag:e* OR -tag:f* OR -tag:g* OR -tag:h* OR -tag:i* OR -tag:j* OR -tag:k* OR -tag:l* OR -tag:m* OR -tag:n* OR -tag:o* OR -tag:p* OR -tag:q* OR -tag:r* OR -tag:s* OR -tag:t* OR -tag:u* OR -tag:v* OR -tag:w* OR -tag:x* OR -tag:y* OR -tag:z*",1000,"title")}} edited 23:12, 13 Jul 2009