Permalink
Browse files

Queries are less complicated by just using the JSON DSL. No need for …

…complicated abstractions.

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  • Loading branch information...
1 parent a3a7659 commit ba59efdd0a28f30b81f999ef52cc1982963f03da @ncb000gt committed Mar 8, 2011
Showing with 0 additions and 17 deletions.
  1. +0 −2 index.js
  2. +0 −1 lib/elasticsearch.js
  3. +0 −14 lib/query.js
View
@@ -1,11 +1,9 @@
var elasticsearch = require('./lib/elasticsearch'),
cluster = require('./lib/cluster'),
- query = require('./lib/query'),
utils = require('./lib/utils'),
exports = module.exports;
exports.createClient = function() {
return new elasticsearch(arguments);
}
-exports.query = query;
exports.cluster = cluster;
View
@@ -1,5 +1,4 @@
var utils = require('./utils'),
- Query = require('./query'),
Index = require('./index'),
sys = require('sys');
View
@@ -1,14 +0,0 @@
-function Query() {
- this.query = {query:{}};
-}
-
-module.exports = Query;
-
-Query.prototype.addField = function addField(name, field) {
- if (!(this.query.query.field)) {
- this.query.query.field = {};
- }
- this.query.query.field[name] = field;
-
- return this;
-}

0 comments on commit ba59efd

Please sign in to comment.