info.bliki.api.query
Class OpenSearch
java.lang.Object
info.bliki.api.query.RequestBuilder
info.bliki.api.query.OpenSearch
public class OpenSearch
- extends RequestBuilder
action=opensearch
This module implements OpenSearch protocol
Parameters:
search - Search string
limit - Maximum amount of results to return
No more than 100 (100 for bots) allowed.
Default: 10
namespace - Namespaces to search
Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15, 100, 101 Default: 0
format -
Example: api.php?action=opensearch&search=Te
Method Summary |
static OpenSearch |
create()
|
OpenSearch |
limit(int limit)
|
OpenSearch |
namespace(int... namespaces)
namespace - Namespaces to search Values (internally separated with
'|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101
Default: 0 |
OpenSearch |
namespace(int namespace)
namespace - a Namespace to search Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 100, 101 Default: 0 |
OpenSearch |
search(java.lang.String search)
|
Methods inherited from class info.bliki.api.query.RequestBuilder |
action, clear, containsKey, containsValue, entrySet, equals, format, get, getParameters, hashCode, isEmpty, keySet, maxage, maxlag, put, putAll, putPipedString, putPipedString, remove, requestid, size, smaxage, toPipedString, toPipedString, toString, values, version |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
OpenSearch
public OpenSearch()
search
public OpenSearch search(java.lang.String search)
create
public static OpenSearch create()
limit
public OpenSearch limit(int limit)
namespace
public OpenSearch namespace(int namespace)
- namespace - a Namespace to search
Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 100, 101 Default: 0
- Parameters:
namespaces
-
- Returns:
namespace
public OpenSearch namespace(int... namespaces)
- namespace - Namespaces to search
Values (internally separated with
'|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101
Default: 0
- Parameters:
namespaces
-
- Returns:
Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.