Skip to content

Commit

Permalink
search: removing search api
Browse files Browse the repository at this point in the history
  • Loading branch information
callmehiphop authored and stephenplusplus committed Apr 25, 2016
1 parent c5f5216 commit e9e4170
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 2,669 deletions.
48 changes: 0 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ This client supports the following Google Cloud Platform services:
* [Google Cloud Logging](#google-cloud-logging-beta) (Beta)
* [Google Cloud Resource Manager](#google-cloud-resource-manager-beta) (Beta)
* [Google Cloud Vision](#google-cloud-vision-beta) (Beta)
* [Google Cloud Search](#google-cloud-search-alpha) (Alpha)

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

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


## Google Cloud Search (Alpha)

> **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.
- [API Documentation][gcloud-search-docs]
- [Official Documentation][cloud-search-docs] - *If you are not a tester, this documentation is unavailable.*

#### Preview

```js
var gcloud = require('gcloud');

// Authenticating on a per-API-basis. You don't need to do this if you auth on a
// global basis (see Authentication section above).

var search = gcloud.search({
projectId: 'my-project',
keyFilename: '/path/to/keyfile.json'
});

// Create a document in a new index.
var index = search.index('memberData');

var document = index.document('member-id-34211');
document.addField('preferredContactForm').addTextValue('phone');

index.createDocument(document, function(err, document) {
console.log(err || document);
});

// Search an index and get the results as a readable object stream.
var index = search.index('memberData');

index.search('preferredContactForm:phone')
.on('error', console.error)
.on('data', function(document) {
// document.id = 'member-id-34211';
})
.on('end', function() {
// All results consumed.
});
```


## Contributing

Contributions to this library are always welcome and highly encouraged.
Expand All @@ -710,7 +665,6 @@ Apache 2.0 - See [COPYING](COPYING) for more information.
[gcloud-prediction-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/prediction
[gcloud-pubsub-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/pubsub
[gcloud-resource-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/resource
[gcloud-search-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/search
[gcloud-storage-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/storage
[gcloud-translate-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/translate
[gcloud-vision-docs]: https://googlecloudplatform.github.io/gcloud-node/#/docs/vision
Expand Down Expand Up @@ -746,8 +700,6 @@ Apache 2.0 - See [COPYING](COPYING) for more information.

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

[cloud-search-docs]: https://cloud.google.com/search

[cloud-storage-docs]: https://cloud.google.com/storage/docs/overview

[cloud-translate-docs]: https://cloud.google.com/translate/docs
Expand Down
Empty file removed docs/json/master/search/.gitkeep
Empty file.
13 changes: 0 additions & 13 deletions docs/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,6 @@
"title": "Project",
"type": "resource/project"
}]
}, {
"title": "Search",
"type": "search",
"nav": [{
"title": "Index",
"type": "search/index"
}, {
"title": "Document",
"type": "search/document"
}, {
"title": "Field",
"type": "search/field"
}]
}, {
"title": "Storage",
"type": "storage",
Expand Down
26 changes: 0 additions & 26 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,32 +210,6 @@ var apis = {
*/
resource: require('./resource'),

/**
* [Google Cloud Search](https://cloud.google.com/search) allows you to
* quickly perform full-text and geospatial searches against your data without
* having to spin up your own instances and without the hassle of managing and
* maintaining a search service.
*
* <p class="notice">
* **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. If you are not a tester, official documentation is
* unavailable.
* </p>
*
* @type {module:search}
*
* @return {module:search}
*
* @example
* var gcloud = require('gcloud');
* var search = gcloud.search({
* projectId: 'grape-spaceship-123',
* keyFilename: '/path/to/keyfile.json'
* });
*/
search: require('./search'),

/**
* Google Cloud Storage allows you to store data on Google infrastructure.
* Read [Google Cloud Storage API docs](https://developers.google.com/storage)
Expand Down
255 changes: 0 additions & 255 deletions lib/search/document.js

This file was deleted.

Loading

0 comments on commit e9e4170

Please sign in to comment.