Skip to content

Commit e9e4170

Browse files
callmehiphopstephenplusplus
authored andcommitted
search: removing search api
1 parent c5f5216 commit e9e4170

17 files changed

Lines changed: 2 additions & 2669 deletions

File tree

README.md

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ This client supports the following Google Cloud Platform services:
2121
* [Google Cloud Logging](#google-cloud-logging-beta) (Beta)
2222
* [Google Cloud Resource Manager](#google-cloud-resource-manager-beta) (Beta)
2323
* [Google Cloud Vision](#google-cloud-vision-beta) (Beta)
24-
* [Google Cloud Search](#google-cloud-search-alpha) (Alpha)
2524

2625
If you need support for other Google APIs, check out the [Google Node.js API Client library][googleapis].
2726

@@ -646,50 +645,6 @@ vision.detectFaces('./image.jpg', function(err, faces) {
646645
```
647646

648647

649-
## Google Cloud Search (Alpha)
650-
651-
> **This is an Alpha release of Google Cloud Search.** This feature is not covered by any SLA or deprecation policy and may be subject to backward-incompatible changes.
652-
653-
- [API Documentation][gcloud-search-docs]
654-
- [Official Documentation][cloud-search-docs] - *If you are not a tester, this documentation is unavailable.*
655-
656-
#### Preview
657-
658-
```js
659-
var gcloud = require('gcloud');
660-
661-
// Authenticating on a per-API-basis. You don't need to do this if you auth on a
662-
// global basis (see Authentication section above).
663-
664-
var search = gcloud.search({
665-
projectId: 'my-project',
666-
keyFilename: '/path/to/keyfile.json'
667-
});
668-
669-
// Create a document in a new index.
670-
var index = search.index('memberData');
671-
672-
var document = index.document('member-id-34211');
673-
document.addField('preferredContactForm').addTextValue('phone');
674-
675-
index.createDocument(document, function(err, document) {
676-
console.log(err || document);
677-
});
678-
679-
// Search an index and get the results as a readable object stream.
680-
var index = search.index('memberData');
681-
682-
index.search('preferredContactForm:phone')
683-
.on('error', console.error)
684-
.on('data', function(document) {
685-
// document.id = 'member-id-34211';
686-
})
687-
.on('end', function() {
688-
// All results consumed.
689-
});
690-
```
691-
692-
693648
## Contributing
694649

695650
Contributions to this library are always welcome and highly encouraged.
@@ -710,7 +665,6 @@ Apache 2.0 - See [COPYING](COPYING) for more information.
710665
[gcloud-prediction-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/prediction
711666
[gcloud-pubsub-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/pubsub
712667
[gcloud-resource-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/resource
713-
[gcloud-search-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/search
714668
[gcloud-storage-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/storage
715669
[gcloud-translate-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/translate
716670
[gcloud-vision-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/vision
@@ -746,8 +700,6 @@ Apache 2.0 - See [COPYING](COPYING) for more information.
746700

747701
[cloud-resource-docs]: https://cloud.google.com/resource-manager
748702

749-
[cloud-search-docs]: https://cloud.google.com/search
750-
751703
[cloud-storage-docs]: https://cloud.google.com/storage/docs/overview
752704

753705
[cloud-translate-docs]: https://cloud.google.com/translate/docs

docs/json/master/search/.gitkeep

Whitespace-only changes.

docs/toc.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,6 @@
146146
"title": "Project",
147147
"type": "resource/project"
148148
}]
149-
}, {
150-
"title": "Search",
151-
"type": "search",
152-
"nav": [{
153-
"title": "Index",
154-
"type": "search/index"
155-
}, {
156-
"title": "Document",
157-
"type": "search/document"
158-
}, {
159-
"title": "Field",
160-
"type": "search/field"
161-
}]
162149
}, {
163150
"title": "Storage",
164151
"type": "storage",

lib/index.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -210,32 +210,6 @@ var apis = {
210210
*/
211211
resource: require('./resource'),
212212

213-
/**
214-
* [Google Cloud Search](https://cloud.google.com/search) allows you to
215-
* quickly perform full-text and geospatial searches against your data without
216-
* having to spin up your own instances and without the hassle of managing and
217-
* maintaining a search service.
218-
*
219-
* <p class="notice">
220-
* **This is an Alpha release of Google Cloud Search.** This feature is not
221-
* covered by any SLA or deprecation policy and may be subject to backward-
222-
* incompatible changes. If you are not a tester, official documentation is
223-
* unavailable.
224-
* </p>
225-
*
226-
* @type {module:search}
227-
*
228-
* @return {module:search}
229-
*
230-
* @example
231-
* var gcloud = require('gcloud');
232-
* var search = gcloud.search({
233-
* projectId: 'grape-spaceship-123',
234-
* keyFilename: '/path/to/keyfile.json'
235-
* });
236-
*/
237-
search: require('./search'),
238-
239213
/**
240214
* Google Cloud Storage allows you to store data on Google infrastructure.
241215
* Read [Google Cloud Storage API docs](https://developers.google.com/storage)

lib/search/document.js

Lines changed: 0 additions & 255 deletions
This file was deleted.

0 commit comments

Comments
 (0)