Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Cygnus
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cygnus
Cygnus
Commits
01c9700a
Commit
01c9700a
authored
Feb 23, 2018
by
Luke081515
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix docu
* Fixed docu * Added spaces at the params
parent
e2597b8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
BotCore.php
BotCore.php
+6
-6
No files found.
BotCore.php
View file @
01c9700a
...
...
@@ -1226,14 +1226,14 @@ class Core extends Password {
* uses API fulltext search
* @author KPFC
* @param pattern - pattern to search
* @param ns - numbers of the namespaces to search in; seperate with "|"
* @param prop - properties to return; seperate with "|" (size, wordcount, timestamp, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, isfilematch, categorysnippet, extensiondata)
* @param limit - number of results to return; max 500 or 5000 for bots
* @param offset - show only the results from position on
* @param what - what to search (title/text/nearmatch)
* @param ns -
[default: 0]
numbers of the namespaces to search in; seperate with "|"
* @param prop -
[default: size|wordcount|timestamp|snippet]
properties to return; seperate with "|" (size, wordcount, timestamp, snippet, titlesnippet, redirecttitle, redirectsnippet, sectiontitle, sectionsnippet, isfilematch, categorysnippet, extensiondata)
* @param limit -
[default: 50]
number of results to return; max 500 or 5000 for bots
* @param offset -
[default: 0]
show only the results from position on
* @param what -
[default: text]
what to search (title/text/nearmatch)
* @return result - array with the results
*/
public
function
search
(
$pattern
,
$ns
=
0
,
$prop
=
"size|wordcount|timestamp|snippet"
,
$limit
=
50
,
$offset
=
0
,
$what
=
"text"
)
{
public
function
search
(
$pattern
,
$ns
=
0
,
$prop
=
"size|wordcount|timestamp|snippet"
,
$limit
=
50
,
$offset
=
0
,
$what
=
"text"
)
{
$data
=
"action=query&format=json&assert="
.
$this
->
assert
.
"&maxlag="
.
$this
->
maxlag
.
"&list=search&srsearch="
.
$pattern
.
"&srnamespace="
.
$ns
.
"&srprop="
.
$prop
.
"&srlimit="
.
$limit
.
"&sroffset="
.
$offset
.
"&srwhat="
.
$what
;
return
json_decode
(
$this
->
httpRequest
(
$data
,
$this
->
job
,
"GET"
),
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment