@@ -8,31 +8,31 @@ The API itself is in its very early stages. Everything will change, but here ar
8
8
9
9
## Full text searching
10
10
11
- ###### First 10 modules with the word "RJBS" in the plain text Pod
11
+ First 10 modules with the word "RJBS" in the plain text Pod
12
12
[[ http://api.metacpan.org/pod/_search?&fields=&q=text:rjbs&size=10 ]]
13
13
14
14
Note that this query returns no Pod fields because of the empty "fields" param.
15
15
16
- ###### First 10 modules with match on word fragment "RJB" in the plain text Pod
16
+ First 10 modules with match on word fragment "RJB" in the plain text Pod
17
17
[[ http://api.metacpan.org/pod/_search?&fields=&q=text:*rjb*&size=10 ]]
18
18
19
19
Note that this query returns no Pod fields because of the empty "fields" param.
20
20
21
- ###### Text Pod for First 10 modules with the word "RJBS" in the Pod
21
+ Text Pod for First 10 modules with the word "RJBS" in the Pod
22
22
[[ http://api.metacpan.org/pod/_search?&fields=_source.text&q=rjbs&size=10 ]]
23
23
24
- ###### HTML Pod for First 10 modules with the word "RJBS" in the Pod
24
+ HTML Pod for First 10 modules with the word "RJBS" in the Pod
25
25
[[ http://api.metacpan.org/pod/_search?&fields=_source.html&q=rjbs&size=10 ]]
26
26
27
27
## Search for a Module
28
28
29
- ###### By name:
29
+ By name:
30
30
[[ http://api.metacpan.org/module/Dancer::Cookbook ]]
31
31
32
- ###### By distribution name:
32
+ By distribution name:
33
33
[[ http://api.metacpan.org/module/_search?q=distname:moose ]]
34
34
35
- ###### By author name:
35
+ By author name:
36
36
37
37
Note that for this type of search, the author id must be in lower case.
38
38
@@ -58,21 +58,21 @@ Using the "field" key, the search term becomes case-insensitive:
58
58
}
59
59
'</code ></pre >
60
60
61
- ###### List all modules:
61
+ List all modules:
62
62
[[ http://api.metacpan.org/module/_search?q=*&size=100000 ]]
63
63
64
64
Same list, but return only "name" and "distvname" fields:
65
65
[[ http://api.metacpan.org/module/_search?&fields=_source.distvname,_source.name&q=*&size=100000 ]]
66
66
67
67
## Search for a Distribution
68
68
69
- ###### By name:
69
+ By name:
70
70
[[ http://api.metacpan.org/dist/Dancer ]]
71
71
72
- ###### By distribution name:
72
+ By distribution name:
73
73
[[ http://api.metacpan.org/dist/_search?q=name:dancer ]]
74
74
75
- ###### By author name:
75
+ By author name:
76
76
77
77
Note that for this type of search, the author id must be in lower case.
78
78
@@ -98,39 +98,39 @@ Using the "field" key, the search term becomes case-insensitive:
98
98
}
99
99
'</code ></pre >
100
100
101
- ###### List all distributions:
101
+ List all distributions:
102
102
[[ http://api.metacpan.org/dist/_search?q=*&size=100000 ]]
103
103
104
104
Same list, but return only "name" and "distvname" fields:
105
105
[[ http://api.metacpan.org/dist/_search?&fields=_source.distvname,_source.name&q=*&size=100000 ]]
106
106
107
107
## Search for an author
108
108
109
- ###### By PAUSEID (exact match)
109
+ By PAUSEID (exact match)
110
110
[[ http://api.metacpan.org/author/DROLSKY ]]
111
111
112
- ###### By PAUSEID (wildcard match)
112
+ By PAUSEID (wildcard match)
113
113
[[ http://api.metacpan.org/author/_search?q=author:D* ]]
114
114
115
- ###### By name (find all Daves)
115
+ By name (find all Daves)
116
116
[[ http://api.metacpan.org/author/_search?q=name:Dave ]]
117
117
118
- ###### By full name
118
+ By full name
119
119
[[ http://api.metacpan.org/author/_search?q=name:%22dave%20rolsky%22 ]]
120
120
121
- ###### List all authors
121
+ List all authors
122
122
[[ http://api.metacpan.org/author/_search?pretty=true&q=*&size=100000 ]]
123
123
124
124
## Search for Pod
125
125
126
- ###### By module name (exact Match)
126
+ By module name (exact Match)
127
127
[[ http://api.metacpan.org/pod/HTML::Restrict ]]
128
128
129
129
## Search for CPANRatings ([[ http://cpanratings.perl.org/ ]] )
130
130
131
- ###### By distribution name (exact match)
131
+ By distribution name (exact match)
132
132
[[ http://api.metacpan.org/cpanratings/Moose ]]
133
133
134
- ###### By distribution name (find all rated Moose distros)
134
+ By distribution name (find all rated Moose distros)
135
135
[[ http://api.metacpan.org/cpanratings/_search?q=dist:Moose ]]
136
136
0 commit comments