All tests are passing. Removed the HTML docs

This commit is contained in:
Spencer Alger
2013-10-03 10:05:58 -07:00
parent 462444c20b
commit 9e608226e1
229 changed files with 11719 additions and 45504 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -34,12 +34,15 @@ module.exports = function (grunt) {
dest: 'dist/elasticsearch-node.js'
}
},
nodeunit: {
all: [
simplemocha: {
unit: [
'test/unit/*.test.js'
],
integration: [
'test/integration/*.test.js'
],
options: {
reporter: 'default'
reporter: 'spec'
}
},
jshint: {
@ -81,13 +84,13 @@ module.exports = function (grunt) {
});
// load plugins
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
// Default task.
grunt.registerTask('default', ['jshint', 'nodeunit']);
grunt.registerTask('test', ['nodeunit']);
grunt.registerTask('default', ['jshint', 'simple-mocha']);
grunt.registerTask('test', ['simplemocha:integration']);
};

View File

@ -1,18 +0,0 @@
YUI.add("yuidoc-meta", function(Y) {
Y.YUIDoc = { meta: {
"classes": [
"Client",
"ConnectionPool",
"Log",
"Loggers.File",
"Loggers.Stdio",
"Loggers.Stream",
"NodeHttp",
"Transport",
"jQueryXhr",
"utils"
],
"modules": [],
"allModules": []
} };
});

View File

@ -1,85 +0,0 @@
/*
* Custom styles for the YUIDoc Bootstrap Theme
* Authors: kevinlacotaco
* tonybaroneee
*/
/* -- Navigation Bar -------------------------------------------------------- */
.navbar .navbar-inner .brand {
height: 40px;
margin: 0;
padding: 0 5px 0 10px;
cursor: default;
}
.navbar-text {
font-size: 12px;
padding-left: 5px;
cursor: default;
}
.navbar-form {
margin-right: 3px;
}
#options-form {
margin-top: 20px;
padding-right: 20px;
}
/* -- Sidebar --------------------------------------------------------------- */
#sidebar .tab-content {
border: 1px solid #DFDFDF;
border-top: 0px;
padding-bottom: 5px;
-webkit-border-radius: 0 0 4px 4px;
-moz-border-radius: 0 0 4px 4px;
border-radius: 0 0 4px 4px;
}
#api-tabview-filter input {
width: 94.5%;
}
#sidebar .tab-pane li a {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
#sidebar .tab-pane li a:hover,
#sidebar .tab-pane li a:focus {
outline: 0;
border: 0;
text-decoration: none;
color: #ffffff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
background-color: #0088cc;
}
/* -- Content --------------------------------------------------------------- */
#docs-main {
margin-top: 65px;
}
.content {
padding-bottom: 50px;
}
.content .page-header h1 small {
padding-left: 5px;
}
.content .well:not(.moduledesc) p {
margin: 9px 0;
}
/* -- YUI Overrides --------------------------------------------------------- */
.apidocs .index-item {
text-overflow: ellipsis;
overflow: hidden;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -1,793 +0,0 @@
/*
Font sizes for all selectors other than the body are given in percentages,
with 100% equal to 13px. To calculate a font size percentage, multiply the
desired size in pixels by 7.6923076923.
Here's a quick lookup table:
10px - 76.923%
11px - 84.615%
12px - 92.308%
13px - 100%
14px - 107.692%
15px - 115.385%
16px - 123.077%
17px - 130.769%
18px - 138.462%
19px - 146.154%
20px - 153.846%
*/
html {
background: #fff;
color: #333;
overflow-y: scroll;
}
body {
font: 13px/1.4 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', 'Bitstream Vera Sans', 'Helvetica', 'Arial', sans-serif;
margin: 0;
padding: 0;
padding-top: 40px;
}
/* -- Links ----------------------------------------------------------------- */
a {
color: #356de4;
text-decoration: none;
}
.hidden {
display: none;
}
a:hover { text-decoration: underline; }
/* "Jump to Table of Contents" link is shown to assistive tools, but hidden from
sight until it's focused. */
.jump {
position: absolute;
padding: 3px 6px;
left: -99999px;
top: 0;
}
.jump:focus { left: 40%; }
/* -- Paragraphs ------------------------------------------------------------ */
p { margin: 1.3em 0; }
dd p, td p { margin-bottom: 0; }
dd p:first-child, td p:first-child { margin-top: 0; }
/* -- Headings -------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
color: #D98527;/*was #f80*/
font-family: 'Trebuchet MS', sans-serif;
font-weight: bold;
line-height: 1.1;
margin: 1.1em 0 0.5em;
}
h1 {
font-size: 184.6%;
color: #30418C;
margin: 0.75em 0 0.5em;
}
h2 {
font-size: 153.846%;
color: #E48A2B;
}
h3 { font-size: 138.462%; }
h4 {
border-bottom: 1px solid #DBDFEA;
color: #E48A2B;
font-size: 115.385%;
font-weight: normal;
padding-bottom: 2px;
}
h5, h6 { font-size: 107.692%; }
/* -- Code and examples ----------------------------------------------------- */
code, kbd, pre, samp {
font-family: Menlo, Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;
font-size: 92.308%;
}
p code, p kbd, p samp {
background: #FCFBFA;
border: 1px solid #EFEEED;
padding: 0 3px;
}
a code, a kbd, a samp,
pre code, pre kbd, pre samp,
table code, table kbd, table samp,
.intro code, .intro kbd, .intro samp,
.toc code, .toc kbd, .toc samp {
background: none;
border: none;
padding: 0;
}
pre.code, pre.terminal, pre.cmd {
overflow-x: auto;
*overflow-x: scroll;
padding: 0.3em 0.6em;
}
pre.code {
background: #FCFBFA;
border: 1px solid #EFEEED;
border-left-width: 5px;
}
pre.terminal, pre.cmd {
background: #F0EFFC;
border: 1px solid #D0CBFB;
border-left: 5px solid #D0CBFB;
}
/* Don't reduce the font size of <code>/<kbd>/<samp> elements inside <pre>
blocks. */
pre code, pre kbd, pre samp { font-size: 100%; }
/* Used to denote text that shouldn't be selectable, such as line numbers or
shell prompts. Guess which browser this doesn't work in. */
.noselect {
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
}
/* -- Lists ----------------------------------------------------------------- */
dd { margin: 0.2em 0 0.7em 1em; }
dl { margin: 1em 0; }
dt { font-weight: bold; }
/* -- Tables ---------------------------------------------------------------- */
caption, th { text-align: left; }
table {
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #fff;
padding: 5px 12px;
vertical-align: top;
}
td { background: #E6E9F5; }
td dl { margin: 0; }
td dl dl { margin: 1em 0; }
td pre:first-child { margin-top: 0; }
th {
background: #D2D7E6;/*#97A0BF*/
border-bottom: none;
border-top: none;
color: #000;/*#FFF1D5*/
font-family: 'Trebuchet MS', sans-serif;
font-weight: bold;
line-height: 1.3;
white-space: nowrap;
}
/* -- Layout and Content ---------------------------------------------------- */
#doc {
margin: auto;
min-width: 1024px;
}
.content { padding: 0 20px 0 25px; }
.sidebar {
padding: 0 15px 0 10px;
}
#bd {
padding: 7px 0 130px;
position: relative;
width: 99%;
}
/* -- Table of Contents ----------------------------------------------------- */
/* The #toc id refers to the single global table of contents, while the .toc
class refers to generic TOC lists that could be used throughout the page. */
.toc code, .toc kbd, .toc samp { font-size: 100%; }
.toc li { font-weight: bold; }
.toc li li { font-weight: normal; }
/* -- Intro and Example Boxes ----------------------------------------------- */
/*
.intro, .example { margin-bottom: 2em; }
.example {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-box-shadow: 0 0 5px #bfbfbf;
-webkit-box-shadow: 0 0 5px #bfbfbf;
box-shadow: 0 0 5px #bfbfbf;
padding: 1em;
}
.intro {
background: none repeat scroll 0 0 #F0F1F8; border: 1px solid #D4D8EB; padding: 0 1em;
}
*/
/* -- Other Styles ---------------------------------------------------------- */
/* These are probably YUI-specific, and should be moved out of Selleck's default
theme. */
.button {
border: 1px solid #dadada;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #444;
display: inline-block;
font-family: Helvetica, Arial, sans-serif;
font-size: 92.308%;
font-weight: bold;
padding: 4px 13px 3px;
-moz-text-shadow: 1px 1px 0 #fff;
-webkit-text-shadow: 1px 1px 0 #fff;
text-shadow: 1px 1px 0 #fff;
white-space: nowrap;
background: #EFEFEF; /* old browsers */
background: -moz-linear-gradient(top, #f5f5f5 0%, #efefef 50%, #e5e5e5 51%, #dfdfdf 100%); /* firefox */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(50%,#efefef), color-stop(51%,#e5e5e5), color-stop(100%,#dfdfdf)); /* webkit */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#dfdfdf',GradientType=0 ); /* ie */
}
.button:hover {
border-color: #466899;
color: #fff;
text-decoration: none;
-moz-text-shadow: 1px 1px 0 #222;
-webkit-text-shadow: 1px 1px 0 #222;
text-shadow: 1px 1px 0 #222;
background: #6396D8; /* old browsers */
background: -moz-linear-gradient(top, #6396D8 0%, #5A83BC 50%, #547AB7 51%, #466899 100%); /* firefox */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6396D8), color-stop(50%,#5A83BC), color-stop(51%,#547AB7), color-stop(100%,#466899)); /* webkit */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6396D8', endColorstr='#466899',GradientType=0 ); /* ie */
}
.newwindow { text-align: center; }
.header .version em {
display: block;
text-align: right;
}
#classdocs .item {
border-bottom: 1px solid #466899;
margin: 1em 0;
padding: 1.5em;
}
#classdocs .item .params p,
#classdocs .item .returns p {
display: inline;
}
#classdocs .item em code, #classdocs .item em.comment {
color: green;
}
#classdocs .item em.comment a {
color: green;
text-decoration: underline;
}
#classdocs .foundat {
font-size: 11px;
font-style: normal;
}
.attrs .emits {
margin-left: 2em;
padding: .5em;
border-left: 1px dashed #ccc;
}
abbr {
border-bottom: 1px dashed #ccc;
font-size: 80%;
cursor: help;
}
.prettyprint li.L0,
.prettyprint li.L1,
.prettyprint li.L2,
.prettyprint li.L3,
.prettyprint li.L5,
.prettyprint li.L6,
.prettyprint li.L7,
.prettyprint li.L8 {
list-style: decimal;
}
ul li p {
margin-top: 0;
}
.method .name {
font-size: 110%;
}
.apidocs .methods .extends .method,
.apidocs .properties .extends .property,
.apidocs .attrs .extends .attr,
.apidocs .events .extends .event {
font-weight: bold;
}
.apidocs .methods .extends .inherited,
.apidocs .properties .extends .inherited,
.apidocs .attrs .extends .inherited,
.apidocs .events .extends .inherited {
font-weight: normal;
}
#hd {
background: whiteSmoke;
background: -moz-linear-gradient(top,#DCDBD9 0,#F6F5F3 100%);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#DCDBD9),color-stop(100%,#F6F5F3));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdbd9',endColorstr='#F6F5F3',GradientType=0);
border-bottom: 1px solid #DFDFDF;
padding: 0 15px 1px 20px;
margin-bottom: 15px;
}
#hd img {
margin-right: 10px;
vertical-align: middle;
}
/* -- API Docs CSS ---------------------------------------------------------- */
/*
This file is organized so that more generic styles are nearer the top, and more
specific styles are nearer the bottom of the file. This allows us to take full
advantage of the cascade to avoid redundant style rules. Please respect this
convention when making changes.
*/
/* -- Generic TabView styles ------------------------------------------------ */
/*
These styles apply to all API doc tabviews. To change styles only for a
specific tabview, see the other sections below.
*/
.yui3-js-enabled .apidocs .tabview {
visibility: hidden; /* Hide until the TabView finishes rendering. */
_visibility: visible;
}
.apidocs .tabview.yui3-tabview-content { visibility: visible; }
.apidocs .tabview .yui3-tabview-panel { background: #fff; }
/* -- Generic Content Styles ------------------------------------------------ */
/* Headings */
h2, h3, h4, h5, h6 {
border: none;
color: #30418C;
font-weight: bold;
text-decoration: none;
}
.link-docs {
float: right;
font-size: 15px;
margin: 4px 4px 6px;
padding: 6px 30px 5px;
}
.apidocs { zoom: 1; }
/* Generic box styles. */
.apidocs .box {
border: 1px solid;
border-radius: 3px;
margin: 1em 0;
padding: 0 1em;
}
/* A flag is a compact, capsule-like indicator of some kind. It's used to
indicate private and protected items, item return types, etc. in an
attractive and unobtrusive way. */
.apidocs .flag {
background: #bababa;
border-radius: 3px;
color: #fff;
font-size: 11px;
margin: 0 0.5em;
padding: 2px 4px 1px;
}
/* Class/module metadata such as "Uses", "Extends", "Defined in", etc. */
.apidocs .meta {
background: #f9f9f9;
border-color: #efefef;
color: #555;
font-size: 11px;
padding: 3px 6px;
}
.apidocs .meta p { margin: 0; }
/* Deprecation warning. */
.apidocs .box.deprecated,
.apidocs .flag.deprecated {
background: #fdac9f;
border: 1px solid #fd7775;
}
.apidocs .box.deprecated p { margin: 0.5em 0; }
.apidocs .flag.deprecated { color: #333; }
/* Module/Class intro description. */
.apidocs .intro {
background: #f0f1f8;
border-color: #d4d8eb;
}
/* Loading spinners. */
#bd.loading .apidocs,
#api-list.loading .yui3-tabview-panel {
background: #fff url(../img/spinner.gif) no-repeat center 70px;
min-height: 150px;
}
#bd.loading .apidocs .content,
#api-list.loading .yui3-tabview-panel .apis {
display: none;
}
.apidocs .no-visible-items { color: #666; }
/* Generic inline list. */
.apidocs ul.inline {
display: inline;
list-style: none;
margin: 0;
padding: 0;
}
.apidocs ul.inline li { display: inline; }
/* Comma-separated list. */
.apidocs ul.commas li:after { content: ','; }
.apidocs ul.commas li:last-child:after { content: ''; }
/* Keyboard shortcuts. */
kbd .cmd { font-family: Monaco, Helvetica; }
/* -- Generic Access Level styles ------------------------------------------- */
.apidocs .item.protected,
.apidocs .item.private,
.apidocs .index-item.protected,
.apidocs .index-item.deprecated,
.apidocs .index-item.private {
display: none;
}
.show-deprecated .item.deprecated,
.show-deprecated .index-item.deprecated,
.show-protected .item.protected,
.show-protected .index-item.protected,
.show-private .item.private,
.show-private .index-item.private {
display: block;
}
.hide-inherited .item.inherited,
.hide-inherited .index-item.inherited {
display: none;
}
/* -- Generic Item Index styles --------------------------------------------- */
.apidocs .index { margin: 1.5em 0 3em; }
.apidocs .index h3 {
border-bottom: 1px solid #efefef;
color: #333;
font-size: 13px;
margin: 2em 0 0.6em;
padding-bottom: 2px;
}
.apidocs .index .no-visible-items { margin-top: 2em; }
.apidocs .index-list {
border-color: #efefef;
font-size: 12px;
list-style: none;
margin: 0;
padding: 0;
-moz-column-count: 4;
-moz-column-gap: 10px;
-moz-column-width: 170px;
-ms-column-count: 4;
-ms-column-gap: 10px;
-ms-column-width: 170px;
-o-column-count: 4;
-o-column-gap: 10px;
-o-column-width: 170px;
-webkit-column-count: 4;
-webkit-column-gap: 10px;
-webkit-column-width: 170px;
column-count: 4;
column-gap: 10px;
column-width: 170px;
}
.apidocs .no-columns .index-list {
-moz-column-count: 1;
-ms-column-count: 1;
-o-column-count: 1;
-webkit-column-count: 1;
column-count: 1;
}
.apidocs .index-item { white-space: nowrap; }
.apidocs .index-item .flag {
background: none;
border: none;
color: #afafaf;
display: inline;
margin: 0 0 0 0.2em;
padding: 0;
}
/* -- Generic API item styles ----------------------------------------------- */
.apidocs .args {
display: inline;
margin: 0 0.5em;
}
.apidocs .flag.chainable { background: #46ca3b; }
.apidocs .flag.protected { background: #9b86fc; }
.apidocs .flag.private { background: #fd6b1b; }
.apidocs .flag.async { background: #356de4; }
.apidocs .flag.required { background: #e60923; }
.apidocs .item {
border-bottom: 1px solid #efefef;
padding-top: 10px;
padding-bottom: 10px;
}
.apidocs .item h4,
.apidocs .item h5,
.apidocs .item h6 {
color: #333;
font-family: inherit;
font-size: 100%;
}
.apidocs .item .description p,
.apidocs .item pre.code {
margin: 1em 0 0;
}
.apidocs .item .meta {
background: none;
border: none;
padding: 0;
}
.apidocs .item .name {
display: inline;
font-size: 14px;
}
.apidocs .item .type,
.apidocs .item .type a,
.apidocs .returns-inline {
color: #555;
}
.apidocs .item .type,
.apidocs .returns-inline {
font-size: 11px;
margin: 0 0 0 0;
}
.apidocs .item .type a { border-bottom: 1px dotted #afafaf; }
.apidocs .item .type a:hover { border: none; }
/* -- Item Parameter List --------------------------------------------------- */
.apidocs .params-list {
list-style: square;
margin: 1em 0 0 2em;
padding: 0;
}
.apidocs .param .param-description {
padding-top: 2px;
}
.apidocs .param { margin-bottom: 1em; }
.apidocs .param .type,
.apidocs .param .type a {
color: #666;
}
.apidocs .param .type {
margin: 0 0 0 0.5em;
*margin-left: 0.5em;
}
.apidocs .param-name { font-weight: bold; }
/* -- Item "Emits" block ---------------------------------------------------- */
.apidocs .item .emits {
background: #f9f9f9;
border-color: #eaeaea;
}
/* -- Item "Returns" block -------------------------------------------------- */
.apidocs .item .returns .type,
.apidocs .item .returns .type a {
font-size: 100%;
margin: 0;
}
/* -- Class Constructor block ----------------------------------------------- */
.apidocs .constructor .item {
border: none;
padding-bottom: 0;
}
.apidocs .constructor {
padding-bottom: 10px;
}
/* -- File Source View ------------------------------------------------------ */
.apidocs .file pre.code,
#doc .apidocs .file pre.prettyprint {
background: inherit;
border: none;
overflow: visible;
padding: 0;
}
.apidocs .L0,
.apidocs .L1,
.apidocs .L2,
.apidocs .L3,
.apidocs .L4,
.apidocs .L5,
.apidocs .L6,
.apidocs .L7,
.apidocs .L8,
.apidocs .L9 {
background: inherit;
}
/* -- Submodule List -------------------------------------------------------- */
.apidocs .module-submodule-description {
font-size: 12px;
margin: 0.3em 0 1em;
}
.apidocs .module-submodule-description p:first-child { margin-top: 0; }
/* -- Sidebar TabView ------------------------------------------------------- */
#api-tabview { margin-top: 0.6em; }
#api-tabview-filter,
#api-tabview-panel {
border: 1px solid #dfdfdf;
}
#api-tabview-filter {
border-bottom: none;
border-top: none;
padding: 0.6em 10px 0 10px;
}
#api-tabview-panel { border-top: none; }
#api-filter { width: 97%; }
/* -- Content TabView ------------------------------------------------------- */
#classdocs .yui3-tabview-panel { border: none; }
/* -- Source File Contents -------------------------------------------------- */
.prettyprint li.L0,
.prettyprint li.L1,
.prettyprint li.L2,
.prettyprint li.L3,
.prettyprint li.L5,
.prettyprint li.L6,
.prettyprint li.L7,
.prettyprint li.L8 {
list-style: decimal;
}
/* -- API options ----------------------------------------------------------- */
#api-options {
font-size: 11px;
margin-top: 2.2em;
position: absolute;
right: 1.5em;
}
/*#api-options label { margin-right: 0.6em; }*/
/* -- API list -------------------------------------------------------------- */
#api-list {
margin-top: 1.5em;
*zoom: 1;
}
.apis {
font-size: 12px;
line-height: 1.4;
list-style: none;
margin: 0;
padding: 0.5em 0 0.5em 0.4em;
}
.apis a {
border: 1px solid transparent;
display: block;
margin: 0 0 0 -4px;
padding: 1px 4px 0;
text-decoration: none;
_border: none;
_display: inline;
}
.apis a:hover,
.apis a:focus {
background: #E8EDFC;
background: -moz-linear-gradient(top, #e8edfc 0%, #becef7 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#E8EDFC), color-stop(100%,#BECEF7));
border-color: #AAC0FA;
border-radius: 3px;
color: #333;
outline: none;
}
.api-list-item a:hover,
.api-list-item a:focus {
font-weight: bold;
text-shadow: 1px 1px 1px #fff;
}
.apis .message { color: #888; }
.apis .result a { padding: 3px 5px 2px; }
.apis .result .type {
right: 4px;
top: 7px;
}
.api-list-item .yui3-highlight {
font-weight: bold;
}
.form-inline label {
line-height: 20px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -1,10 +0,0 @@
<!doctype html>
<html>
<head>
<title>Redirector</title>
<meta http-equiv="refresh" content="0;url=../">
</head>
<body>
<a href="../">Click here to redirect</a>
</body>
</html>

View File

@ -1,52 +0,0 @@
YUI.add('api-filter', function (Y) {
Y.APIFilter = Y.Base.create('apiFilter', Y.Base, [Y.AutoCompleteBase], {
// -- Initializer ----------------------------------------------------------
initializer: function () {
this._bindUIACBase();
this._syncUIACBase();
},
getDisplayName: function(name) {
Y.each(Y.YUIDoc.meta.allModules, function(i) {
if (i.name === name && i.displayName) {
name = i.displayName;
}
});
return name;
}
}, {
// -- Attributes -----------------------------------------------------------
ATTRS: {
resultHighlighter: {
value: 'phraseMatch'
},
// May be set to "classes" or "modules".
queryType: {
value: 'classes'
},
source: {
valueFn: function() {
var self = this;
return function(q) {
var data = Y.YUIDoc.meta[self.get('queryType')],
out = [];
Y.each(data, function(v) {
if (v.toLowerCase().indexOf(q.toLowerCase()) > -1) {
out.push(v);
}
});
return out;
};
}
}
}
});
}, '3.4.0', {requires: [
'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources'
]});

View File

@ -1,251 +0,0 @@
YUI.add('api-list', function (Y) {
var Lang = Y.Lang,
YArray = Y.Array,
APIList = Y.namespace('APIList'),
classesNode = Y.one('#api-classes'),
inputNode = Y.one('#api-filter'),
modulesNode = Y.one('#api-modules'),
tabviewNode = Y.one('#api-tabview'),
tabs = APIList.tabs = {},
filter = APIList.filter = new Y.APIFilter({
inputNode : inputNode,
maxResults: 1000,
on: {
results: onFilterResults
}
}),
search = APIList.search = new Y.APISearch({
inputNode : inputNode,
maxResults: 100,
on: {
clear : onSearchClear,
results: onSearchResults
}
}),
tabview = APIList.tabview = new Y.TabView({
srcNode : tabviewNode,
panelNode: '#api-tabview-panel',
render : true,
on: {
selectionChange: onTabSelectionChange
}
}),
focusManager = APIList.focusManager = tabviewNode.plug(Y.Plugin.NodeFocusManager, {
circular : true,
descendants: '#api-filter, .yui3-tab-panel-selected .api-list-item a, .yui3-tab-panel-selected .result a',
keys : {next: 'down:40', previous: 'down:38'}
}).focusManager,
LIST_ITEM_TEMPLATE =
'<li class="api-list-item {typeSingular}">' +
'<a href="{rootPath}{typePlural}/{name}.html">{displayName}</a>' +
'</li>';
// -- Init ---------------------------------------------------------------------
// Duckpunch FocusManager's key event handling to prevent it from handling key
// events when a modifier is pressed.
Y.before(function (e, activeDescendant) {
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) {
return new Y.Do.Prevent();
}
}, focusManager, '_focusPrevious', focusManager);
Y.before(function (e, activeDescendant) {
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) {
return new Y.Do.Prevent();
}
}, focusManager, '_focusNext', focusManager);
// Create a mapping of tabs in the tabview so we can refer to them easily later.
tabview.each(function (tab, index) {
var name = tab.get('label').toLowerCase();
tabs[name] = {
index: index,
name : name,
tab : tab
};
});
// Switch tabs on Ctrl/Cmd-Left/Right arrows.
tabviewNode.on('key', onTabSwitchKey, 'down:37,39');
// Focus the filter input when the `/` key is pressed.
Y.one(Y.config.doc).on('key', onSearchKey, 'down:83');
// Keep the Focus Manager up to date.
inputNode.on('focus', function () {
focusManager.set('activeDescendant', inputNode);
});
// Update all tabview links to resolved URLs.
tabview.get('panelNode').all('a').each(function (link) {
link.setAttribute('href', link.get('href'));
});
// -- Private Functions --------------------------------------------------------
function getFilterResultNode() {
return filter.get('queryType') === 'classes' ? classesNode : modulesNode;
}
// -- Event Handlers -----------------------------------------------------------
function onFilterResults(e) {
var frag = Y.one(Y.config.doc.createDocumentFragment()),
resultNode = getFilterResultNode(),
typePlural = filter.get('queryType'),
typeSingular = typePlural === 'classes' ? 'class' : 'module';
if (e.results.length) {
YArray.each(e.results, function (result) {
frag.append(Lang.sub(LIST_ITEM_TEMPLATE, {
rootPath : APIList.rootPath,
displayName : filter.getDisplayName(result.highlighted),
name : result.text,
typePlural : typePlural,
typeSingular: typeSingular
}));
});
} else {
frag.append(
'<li class="message">' +
'No ' + typePlural + ' found.' +
'</li>'
);
}
resultNode.empty(true);
resultNode.append(frag);
focusManager.refresh();
}
function onSearchClear(e) {
focusManager.refresh();
}
function onSearchKey(e) {
var target = e.target;
if (target.test('input,select,textarea')
|| target.get('isContentEditable')) {
return;
}
e.preventDefault();
inputNode.focus();
focusManager.refresh();
}
function onSearchResults(e) {
var frag = Y.one(Y.config.doc.createDocumentFragment());
if (e.results.length) {
YArray.each(e.results, function (result) {
frag.append(result.display);
});
} else {
frag.append(
'<li class="message">' +
'No results found. Maybe you\'ll have better luck with a ' +
'different query?' +
'</li>'
);
}
focusManager.refresh();
}
function onTabSelectionChange(e) {
var tab = e.newVal,
name = tab.get('label').toLowerCase();
tabs.selected = {
index: tab.get('index'),
name : name,
tab : tab
};
switch (name) {
case 'classes': // fallthru
case 'modules':
filter.setAttrs({
minQueryLength: 0,
queryType : name
});
search.set('minQueryLength', -1);
// Only send a request if this isn't the initially-selected tab.
if (e.prevVal) {
filter.sendRequest(filter.get('value'));
}
break;
case 'everything':
filter.set('minQueryLength', -1);
search.set('minQueryLength', 1);
if (search.get('value')) {
search.sendRequest(search.get('value'));
} else {
inputNode.focus();
}
break;
default:
// WTF? We shouldn't be here!
filter.set('minQueryLength', -1);
search.set('minQueryLength', -1);
}
if (focusManager) {
setTimeout(function () {
focusManager.refresh();
}, 1);
}
}
function onTabSwitchKey(e) {
var currentTabIndex = tabs.selected.index;
if (!(e.ctrlKey || e.metaKey)) {
return;
}
e.preventDefault();
switch (e.keyCode) {
case 37: // left arrow
if (currentTabIndex > 0) {
tabview.selectChild(currentTabIndex - 1);
inputNode.focus();
}
break;
case 39: // right arrow
if (currentTabIndex < (Y.Object.size(tabs) - 2)) {
tabview.selectChild(currentTabIndex + 1);
inputNode.focus();
}
break;
}
}
}, '3.4.0', {requires: [
'api-filter', 'api-search', 'event-key', 'node-focusmanager', 'tabview'
]});

View File

@ -1,98 +0,0 @@
YUI.add('api-search', function (Y) {
var Lang = Y.Lang,
Node = Y.Node,
YArray = Y.Array;
Y.APISearch = Y.Base.create('apiSearch', Y.Base, [Y.AutoCompleteBase], {
// -- Public Properties ----------------------------------------------------
RESULT_TEMPLATE:
'<li class="result {resultType}">' +
'<a href="{url}">' +
'<h3 class="title">{name}</h3>' +
'<span class="type">{resultType}</span>' +
'<div class="description">{description}</div>' +
'<span class="className">{class}</span>' +
'</a>' +
'</li>',
// -- Initializer ----------------------------------------------------------
initializer: function () {
this._bindUIACBase();
this._syncUIACBase();
},
// -- Protected Methods ----------------------------------------------------
_apiResultFilter: function (query, results) {
// Filter components out of the results.
return YArray.filter(results, function (result) {
return result.raw.resultType === 'component' ? false : result;
});
},
_apiResultFormatter: function (query, results) {
return YArray.map(results, function (result) {
var raw = Y.merge(result.raw), // create a copy
desc = raw.description || '';
// Convert description to text and truncate it if necessary.
desc = Node.create('<div>' + desc + '</div>').get('text');
if (desc.length > 65) {
desc = Y.Escape.html(desc.substr(0, 65)) + ' &hellip;';
} else {
desc = Y.Escape.html(desc);
}
raw['class'] || (raw['class'] = '');
raw.description = desc;
// Use the highlighted result name.
raw.name = result.highlighted;
return Lang.sub(this.RESULT_TEMPLATE, raw);
}, this);
},
_apiTextLocator: function (result) {
return result.displayName || result.name;
}
}, {
// -- Attributes -----------------------------------------------------------
ATTRS: {
resultFormatter: {
valueFn: function () {
return this._apiResultFormatter;
}
},
resultFilters: {
valueFn: function () {
return this._apiResultFilter;
}
},
resultHighlighter: {
value: 'phraseMatch'
},
resultListLocator: {
value: 'data.results'
},
resultTextLocator: {
valueFn: function () {
return this._apiTextLocator;
}
},
source: {
value: '/api/v1/search?q={query}&count={maxResults}'
}
}
});
}, '3.4.0', {requires: [
'autocomplete-base', 'autocomplete-highlighters', 'autocomplete-sources',
'escape'
]});

View File

@ -1,370 +0,0 @@
YUI().use(
'yuidoc-meta',
'api-list', 'history-hash', 'node-screen', 'node-style', 'pjax',
function (Y) {
var win = Y.config.win,
localStorage = win.localStorage,
bdNode = Y.one('#bd'),
pjax,
defaultRoute,
classTabView,
selectedTab;
// Kill pjax functionality unless serving over HTTP.
if (!Y.getLocation().protocol.match(/^https?\:/)) {
Y.Router.html5 = false;
}
// Create the default route with middleware which enables syntax highlighting
// on the loaded content.
defaultRoute = Y.Pjax.defaultRoute.concat(function (req, res, next) {
prettyPrint();
bdNode.removeClass('loading');
next();
});
pjax = new Y.Pjax({
container : '#docs-main',
contentSelector: '#docs-main > .content',
linkSelector : '#bd a',
titleSelector : '#xhr-title',
navigateOnHash: true,
root : '/',
routes : [
// -- / ----------------------------------------------------------------
{
path : '/(index.html)?',
callbacks: defaultRoute
},
// -- /classes/* -------------------------------------------------------
{
path : '/classes/:class.html*',
callbacks: [defaultRoute, 'handleClasses']
},
// -- /files/* ---------------------------------------------------------
{
path : '/files/*file',
callbacks: [defaultRoute, 'handleFiles']
},
// -- /modules/* -------------------------------------------------------
{
path : '/modules/:module.html*',
callbacks: defaultRoute
}
]
});
// -- Utility Functions --------------------------------------------------------
pjax.checkVisibility = function (tab) {
tab || (tab = selectedTab);
if (!tab) { return; }
var panelNode = tab.get('panelNode'),
visibleItems;
// If no items are visible in the tab panel due to the current visibility
// settings, display a message to that effect.
visibleItems = panelNode.all('.item,.index-item').some(function (itemNode) {
if (itemNode.getComputedStyle('display') !== 'none') {
return true;
}
});
panelNode.all('.no-visible-items').remove();
if (!visibleItems) {
if (Y.one('#index .index-item')) {
panelNode.append(
'<div class="no-visible-items">' +
'<p>' +
'Some items are not shown due to the current visibility ' +
'settings. Use the checkboxes at the upper right of this ' +
'page to change the visibility settings.' +
'</p>' +
'</div>'
);
} else {
panelNode.append(
'<div class="no-visible-items">' +
'<p>' +
'This class doesn\'t provide any methods, properties, ' +
'attributes, or events.' +
'</p>' +
'</div>'
);
}
}
// Hide index sections without any visible items.
Y.all('.index-section').each(function (section) {
var items = 0,
visibleItems = 0;
section.all('.index-item').each(function (itemNode) {
items += 1;
if (itemNode.getComputedStyle('display') !== 'none') {
visibleItems += 1;
}
});
section.toggleClass('hidden', !visibleItems);
section.toggleClass('no-columns', visibleItems < 4);
});
};
pjax.initClassTabView = function () {
if (!Y.all('#classdocs .api-class-tab').size()) {
return;
}
if (classTabView) {
classTabView.destroy();
selectedTab = null;
}
classTabView = new Y.TabView({
srcNode: '#classdocs',
on: {
selectionChange: pjax.onTabSelectionChange
}
});
pjax.updateTabState();
classTabView.render();
};
pjax.initLineNumbers = function () {
var hash = win.location.hash.substring(1),
container = pjax.get('container'),
hasLines, node;
// Add ids for each line number in the file source view.
container.all('.linenums>li').each(function (lineNode, index) {
lineNode.set('id', 'l' + (index + 1));
lineNode.addClass('file-line');
hasLines = true;
});
// Scroll to the desired line.
if (hasLines && /^l\d+$/.test(hash)) {
if ((node = container.getById(hash))) {
win.scroll(0, node.getY());
}
}
};
pjax.initRoot = function () {
var terminators = /^(?:classes|files|modules)$/,
parts = pjax._getPathRoot().split('/'),
root = [],
i, len, part;
for (i = 0, len = parts.length; i < len; i += 1) {
part = parts[i];
if (part.match(terminators)) {
// Makes sure the path will end with a "/".
root.push('');
break;
}
root.push(part);
}
pjax.set('root', root.join('/'));
};
pjax.updateTabState = function (src) {
var hash = win.location.hash.substring(1),
defaultTab, node, tab, tabPanel;
function scrollToNode() {
if (node.hasClass('protected')) {
Y.one('#api-show-protected').set('checked', true);
pjax.updateVisibility();
}
if (node.hasClass('private')) {
Y.one('#api-show-private').set('checked', true);
pjax.updateVisibility();
}
setTimeout(function () {
// For some reason, unless we re-get the node instance here,
// getY() always returns 0.
var node = Y.one('#classdocs').getById(hash);
win.scrollTo(0, node.getY() - 70);
}, 1);
}
if (!classTabView) {
return;
}
if (src === 'hashchange' && !hash) {
defaultTab = 'index';
} else {
if (localStorage) {
defaultTab = localStorage.getItem('tab_' + pjax.getPath()) ||
'index';
} else {
defaultTab = 'index';
}
}
if (hash && (node = Y.one('#classdocs').getById(hash))) {
if ((tabPanel = node.ancestor('.api-class-tabpanel', true))) {
if ((tab = Y.one('#classdocs .api-class-tab.' + tabPanel.get('id')))) {
if (classTabView.get('rendered')) {
Y.Widget.getByNode(tab).set('selected', 1);
} else {
tab.addClass('yui3-tab-selected');
}
}
}
// Scroll to the desired element if this is a hash URL.
if (node) {
if (classTabView.get('rendered')) {
scrollToNode();
} else {
classTabView.once('renderedChange', scrollToNode);
}
}
} else {
tab = Y.one('#classdocs .api-class-tab.' + defaultTab);
// When the `defaultTab` node isn't found, `localStorage` is stale.
if (!tab && defaultTab !== 'index') {
tab = Y.one('#classdocs .api-class-tab.index');
}
if (classTabView.get('rendered')) {
Y.Widget.getByNode(tab).set('selected', 1);
} else {
tab.addClass('yui3-tab-selected');
}
}
};
pjax.updateVisibility = function () {
var container = pjax.get('container');
container.toggleClass('hide-inherited',
!Y.one('#api-show-inherited').get('checked'));
container.toggleClass('show-deprecated',
Y.one('#api-show-deprecated').get('checked'));
container.toggleClass('show-protected',
Y.one('#api-show-protected').get('checked'));
container.toggleClass('show-private',
Y.one('#api-show-private').get('checked'));
pjax.checkVisibility();
};
// -- Route Handlers -----------------------------------------------------------
pjax.handleClasses = function (req, res, next) {
var status = res.ioResponse.status;
// Handles success and local filesystem XHRs.
if (!status || (status >= 200 && status < 300)) {
pjax.initClassTabView();
}
next();
};
pjax.handleFiles = function (req, res, next) {
var status = res.ioResponse.status;
// Handles success and local filesystem XHRs.
if (!status || (status >= 200 && status < 300)) {
pjax.initLineNumbers();
}
next();
};
// -- Event Handlers -----------------------------------------------------------
pjax.onNavigate = function (e) {
var hash = e.hash,
originTarget = e.originEvent && e.originEvent.target,
tab;
if (hash) {
tab = originTarget && originTarget.ancestor('.yui3-tab', true);
if (hash === win.location.hash) {
pjax.updateTabState('hashchange');
} else if (!tab) {
win.location.hash = hash;
}
e.preventDefault();
return;
}
// Only scroll to the top of the page when the URL doesn't have a hash.
this.set('scrollToTop', !e.url.match(/#.+$/));
bdNode.addClass('loading');
};
pjax.onOptionClick = function (e) {
pjax.updateVisibility();
};
pjax.onTabSelectionChange = function (e) {
var tab = e.newVal,
tabId = tab.get('contentBox').getAttribute('href').substring(1);
selectedTab = tab;
// If switching from a previous tab (i.e., this is not the default tab),
// replace the history entry with a hash URL that will cause this tab to
// be selected if the user navigates away and then returns using the back
// or forward buttons.
if (e.prevVal && localStorage) {
localStorage.setItem('tab_' + pjax.getPath(), tabId);
}
pjax.checkVisibility(tab);
};
// -- Init ---------------------------------------------------------------------
pjax.on('navigate', pjax.onNavigate);
pjax.initRoot();
pjax.upgrade();
pjax.initClassTabView();
pjax.initLineNumbers();
pjax.updateVisibility();
Y.APIList.rootPath = pjax.get('root');
Y.one('#api-options').delegate('click', pjax.onOptionClick, 'input');
Y.on('hashchange', function (e) {
pjax.updateTabState('hashchange');
}, win);
});

View File

@ -1,7 +0,0 @@
$(function() {
'use strict';
window.prettyPrint();
});

View File

@ -1,17 +0,0 @@
YUI().use('node', function(Y) {
var code = Y.all('.prettyprint.linenums');
if (code.size()) {
code.each(function(c) {
var lis = c.all('ol li'),
l = 1;
lis.each(function(n) {
n.prepend('<a name="LINENUM_' + l + '"></a>');
l++;
});
});
var h = location.hash;
location.hash = '';
h = h.replace('LINE_', 'LINENUM_');
location.hash = h;
}
});

View File

@ -1,384 +0,0 @@
.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-default:active,
.btn-primary:active,
.btn-success:active,
.btn-info:active,
.btn-warning:active,
.btn-danger:active,
.btn-default.active,
.btn-primary.active,
.btn-success.active,
.btn-info.active,
.btn-warning.active,
.btn-danger.active {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn:active,
.btn.active {
background-image: none;
}
.btn-default {
text-shadow: 0 1px 0 #fff;
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(top, #ffffff, 0%, #e6e6e6, 100%);
background-image: -moz-linear-gradient(top, #ffffff 0%, #e6e6e6 100%);
background-image: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
background-repeat: repeat-x;
border-color: #e0e0e0;
border-color: #ccc;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
}
.btn-default:active,
.btn-default.active {
background-color: #e6e6e6;
border-color: #e0e0e0;
}
.btn-primary {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#3071a9));
background-image: -webkit-linear-gradient(top, #428bca, 0%, #3071a9, 100%);
background-image: -moz-linear-gradient(top, #428bca 0%, #3071a9 100%);
background-image: linear-gradient(to bottom, #428bca 0%, #3071a9 100%);
background-repeat: repeat-x;
border-color: #2d6ca2;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0);
}
.btn-primary:active,
.btn-primary.active {
background-color: #3071a9;
border-color: #2d6ca2;
}
.btn-success {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5cb85c), to(#449d44));
background-image: -webkit-linear-gradient(top, #5cb85c, 0%, #449d44, 100%);
background-image: -moz-linear-gradient(top, #5cb85c 0%, #449d44 100%);
background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
background-repeat: repeat-x;
border-color: #419641;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
}
.btn-success:active,
.btn-success.active {
background-color: #449d44;
border-color: #419641;
}
.btn-warning {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f0ad4e), to(#ec971f));
background-image: -webkit-linear-gradient(top, #f0ad4e, 0%, #ec971f, 100%);
background-image: -moz-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
background-repeat: repeat-x;
border-color: #eb9316;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
}
.btn-warning:active,
.btn-warning.active {
background-color: #ec971f;
border-color: #eb9316;
}
.btn-danger {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9534f), to(#c9302c));
background-image: -webkit-linear-gradient(top, #d9534f, 0%, #c9302c, 100%);
background-image: -moz-linear-gradient(top, #d9534f 0%, #c9302c 100%);
background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
background-repeat: repeat-x;
border-color: #c12e2a;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
}
.btn-danger:active,
.btn-danger.active {
background-color: #c9302c;
border-color: #c12e2a;
}
.btn-info {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5bc0de), to(#31b0d5));
background-image: -webkit-linear-gradient(top, #5bc0de, 0%, #31b0d5, 100%);
background-image: -moz-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
background-repeat: repeat-x;
border-color: #2aabd2;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
}
.btn-info:active,
.btn-info.active {
background-color: #31b0d5;
border-color: #2aabd2;
}
.thumbnail,
.img-thumbnail {
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
background-color: #357ebd;
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#357ebd));
background-image: -webkit-linear-gradient(top, #428bca, 0%, #357ebd, 100%);
background-image: -moz-linear-gradient(top, #428bca 0%, #357ebd 100%);
background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);
}
.navbar {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ffffff), to(#f8f8f8));
background-image: -webkit-linear-gradient(top, #ffffff, 0%, #f8f8f8, 100%);
background-image: -moz-linear-gradient(top, #ffffff 0%, #f8f8f8 100%);
background-image: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
background-repeat: repeat-x;
border-radius: 4px;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 5px rgba(0, 0, 0, 0.075);
}
.navbar .navbar-nav > .active > a {
background-color: #f8f8f8;
}
.navbar-brand,
.navbar-nav > li > a {
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.navbar-inverse {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#3c3c3c), to(#222222));
background-image: -webkit-linear-gradient(top, #3c3c3c, 0%, #222222, 100%);
background-image: -moz-linear-gradient(top, #3c3c3c 0%, #222222 100%);
background-image: linear-gradient(to bottom, #3c3c3c 0%, #222222 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
}
.navbar-inverse .navbar-nav > .active > a {
background-color: #222222;
}
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.navbar-static-top,
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0;
}
.alert {
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.alert-success {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#dff0d8), to(#c8e5bc));
background-image: -webkit-linear-gradient(top, #dff0d8, 0%, #c8e5bc, 100%);
background-image: -moz-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
background-repeat: repeat-x;
border-color: #b2dba1;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
}
.alert-info {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9edf7), to(#b9def0));
background-image: -webkit-linear-gradient(top, #d9edf7, 0%, #b9def0, 100%);
background-image: -moz-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
background-repeat: repeat-x;
border-color: #9acfea;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
}
.alert-warning {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#fcf8e3), to(#f8efc0));
background-image: -webkit-linear-gradient(top, #fcf8e3, 0%, #f8efc0, 100%);
background-image: -moz-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
background-repeat: repeat-x;
border-color: #f5e79e;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
}
.alert-danger {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f2dede), to(#e7c3c3));
background-image: -webkit-linear-gradient(top, #f2dede, 0%, #e7c3c3, 100%);
background-image: -moz-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
background-repeat: repeat-x;
border-color: #dca7a7;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
}
.progress {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ebebeb), to(#f5f5f5));
background-image: -webkit-linear-gradient(top, #ebebeb, 0%, #f5f5f5, 100%);
background-image: -moz-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
}
.progress-bar {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#3071a9));
background-image: -webkit-linear-gradient(top, #428bca, 0%, #3071a9, 100%);
background-image: -moz-linear-gradient(top, #428bca 0%, #3071a9 100%);
background-image: linear-gradient(to bottom, #428bca 0%, #3071a9 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0);
}
.progress-bar-success {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5cb85c), to(#449d44));
background-image: -webkit-linear-gradient(top, #5cb85c, 0%, #449d44, 100%);
background-image: -moz-linear-gradient(top, #5cb85c 0%, #449d44 100%);
background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
}
.progress-bar-info {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#5bc0de), to(#31b0d5));
background-image: -webkit-linear-gradient(top, #5bc0de, 0%, #31b0d5, 100%);
background-image: -moz-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
}
.progress-bar-warning {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f0ad4e), to(#ec971f));
background-image: -webkit-linear-gradient(top, #f0ad4e, 0%, #ec971f, 100%);
background-image: -moz-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
}
.progress-bar-danger {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9534f), to(#c9302c));
background-image: -webkit-linear-gradient(top, #d9534f, 0%, #c9302c, 100%);
background-image: -moz-linear-gradient(top, #d9534f 0%, #c9302c 100%);
background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
}
.list-group {
border-radius: 4px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
text-shadow: 0 -1px 0 #3071a9;
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#3278b3));
background-image: -webkit-linear-gradient(top, #428bca, 0%, #3278b3, 100%);
background-image: -moz-linear-gradient(top, #428bca 0%, #3278b3 100%);
background-image: linear-gradient(to bottom, #428bca 0%, #3278b3 100%);
background-repeat: repeat-x;
border-color: #3278b3;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0);
}
.panel {
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.panel-default > .panel-heading {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f5f5f5), to(#e8e8e8));
background-image: -webkit-linear-gradient(top, #f5f5f5, 0%, #e8e8e8, 100%);
background-image: -moz-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
}
.panel-primary > .panel-heading {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#428bca), to(#357ebd));
background-image: -webkit-linear-gradient(top, #428bca, 0%, #357ebd, 100%);
background-image: -moz-linear-gradient(top, #428bca 0%, #357ebd 100%);
background-image: linear-gradient(to bottom, #428bca 0%, #357ebd 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);
}
.panel-success > .panel-heading {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#dff0d8), to(#d0e9c6));
background-image: -webkit-linear-gradient(top, #dff0d8, 0%, #d0e9c6, 100%);
background-image: -moz-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
}
.panel-info > .panel-heading {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#d9edf7), to(#c4e3f3));
background-image: -webkit-linear-gradient(top, #d9edf7, 0%, #c4e3f3, 100%);
background-image: -moz-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
}
.panel-warning > .panel-heading {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#fcf8e3), to(#faf2cc));
background-image: -webkit-linear-gradient(top, #fcf8e3, 0%, #faf2cc, 100%);
background-image: -moz-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
}
.panel-danger > .panel-heading {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#f2dede), to(#ebcccc));
background-image: -webkit-linear-gradient(top, #f2dede, 0%, #ebcccc, 100%);
background-image: -moz-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
}
.well {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#e8e8e8), to(#f5f5f5));
background-image: -webkit-linear-gradient(top, #e8e8e8, 0%, #f5f5f5, 100%);
background-image: -moz-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
background-repeat: repeat-x;
border-color: #dcdcdc;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,228 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata></metadata>
<defs>
<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
<font-face units-per-em="1200" ascent="960" descent="-240" />
<missing-glyph horiz-adv-x="500" />
<glyph />
<glyph />
<glyph unicode=" " />
<glyph unicode="*" d="M1100 500h-259l183 -183l-141 -141l-183 183v-259h-200v259l-183 -183l-141 141l183 183h-259v200h259l-183 183l141 141l183 -183v259h200v-259l183 183l141 -141l-183 -183h259v-200z" />
<glyph unicode="+" d="M1100 400h-400v-400h-300v400h-400v300h400v400h300v-400h400v-300z" />
<glyph unicode="&#xa0;" />
<glyph unicode="&#x2000;" horiz-adv-x="652" />
<glyph unicode="&#x2001;" horiz-adv-x="1304" />
<glyph unicode="&#x2002;" horiz-adv-x="652" />
<glyph unicode="&#x2003;" horiz-adv-x="1304" />
<glyph unicode="&#x2004;" horiz-adv-x="434" />
<glyph unicode="&#x2005;" horiz-adv-x="326" />
<glyph unicode="&#x2006;" horiz-adv-x="217" />
<glyph unicode="&#x2007;" horiz-adv-x="217" />
<glyph unicode="&#x2008;" horiz-adv-x="163" />
<glyph unicode="&#x2009;" horiz-adv-x="260" />
<glyph unicode="&#x200a;" horiz-adv-x="72" />
<glyph unicode="&#x202f;" horiz-adv-x="260" />
<glyph unicode="&#x205f;" horiz-adv-x="326" />
<glyph unicode="&#x20ac;" d="M800 500h-300q9 -74 33 -132t52.5 -91t62 -54.5t59 -29t46.5 -7.5q29 0 66 13t75 37t63.5 67.5t25.5 96.5h174q-31 -172 -128 -278q-107 -117 -274 -117q-205 0 -324 158q-36 46 -69 131.5t-45 205.5h-217l100 100h113q0 47 5 100h-218l100 100h135q37 167 112 257 q117 141 297 141q242 0 354 -189q60 -103 66 -209h-181q0 55 -25.5 99t-63.5 68t-75 36.5t-67 12.5q-24 0 -52.5 -10t-62.5 -32t-65.5 -67t-50.5 -107h379l-100 -100h-300q-6 -46 -6 -100h406z" />
<glyph unicode="&#x2212;" d="M1100 700h-900v-300h900v300z" />
<glyph unicode="&#x2601;" d="M178 300h750q120 0 205 86t85 208q0 120 -85 206.5t-205 86.5q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5q0 -80 56.5 -137t135.5 -57z" />
<glyph unicode="&#x2709;" d="M1200 1100h-1200l600 -603zM300 600l-300 -300v600zM1200 900v-600l-300 300zM800 500l400 -400h-1200l400 400l200 -200z" />
<glyph unicode="&#x270f;" d="M1101 889l99 92q13 13 13 32.5t-13 33.5l-153 153q-15 13 -33 13t-33 -13l-94 -97zM401 189l614 614l-214 214l-614 -614zM-13 -13l333 112l-223 223z" />
<glyph unicode="&#xe000;" horiz-adv-x="500" d="M0 0z" />
<glyph unicode="&#xe001;" d="M700 100h300v-100h-800v100h300v550l-500 550h1200l-500 -550v-550z" />
<glyph unicode="&#xe002;" d="M1000 934v-521q-64 16 -138 -7q-79 -26 -122.5 -83t-25.5 -111q17 -55 85.5 -75.5t147.5 4.5q70 23 111.5 63.5t41.5 95.5v881q0 10 -7 15.5t-17 2.5l-752 -193q-10 -3 -17 -12.5t-7 -19.5v-689q-64 17 -138 -7q-79 -25 -122.5 -82t-25.5 -112t86 -75.5t147 5.5 q65 21 109 69t44 90v606z" />
<glyph unicode="&#xe003;" d="M913 432l300 -300q7 -8 7 -18t-7 -18l-109 -109q-8 -7 -18 -7t-18 7l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342t142 342t342 142t342 -142t142 -342q0 -142 -78 -261zM176 693q0 -136 97 -233t234 -97t233.5 96.5t96.5 233.5t-96.5 233.5t-233.5 96.5 t-234 -97t-97 -233z" />
<glyph unicode="&#xe005;" d="M649 949q48 69 109.5 105t121.5 38t118.5 -20.5t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-149.5 152.5t-126.5 127.5t-94 124.5t-33.5 117.5q0 64 28 123t73 100.5t104.5 64t119 20.5 t120 -38.5t104.5 -104.5z" />
<glyph unicode="&#xe006;" d="M791 522l145 -449l-384 275l-382 -275l146 447l-388 280h479l146 400h2l146 -400h472zM168 71l2 1z" />
<glyph unicode="&#xe007;" d="M791 522l145 -449l-384 275l-382 -275l146 447l-388 280h479l146 400h2l146 -400h472zM747 331l-74 229l193 140h-235l-77 211l-78 -211h-239l196 -142l-73 -226l192 140zM168 71l2 1z" />
<glyph unicode="&#xe008;" d="M1200 143v-143h-1200v143l400 257v100q-37 0 -68.5 74.5t-31.5 125.5v200q0 124 88 212t212 88t212 -88t88 -212v-200q0 -51 -31.5 -125.5t-68.5 -74.5v-100z" />
<glyph unicode="&#xe009;" d="M1200 1100v-1100h-1200v1100h1200zM200 1000h-100v-100h100v100zM900 1000h-600v-400h600v400zM1100 1000h-100v-100h100v100zM200 800h-100v-100h100v100zM1100 800h-100v-100h100v100zM200 600h-100v-100h100v100zM1100 600h-100v-100h100v100zM900 500h-600v-400h600 v400zM200 400h-100v-100h100v100zM1100 400h-100v-100h100v100zM200 200h-100v-100h100v100zM1100 200h-100v-100h100v100z" />
<glyph unicode="&#xe010;" d="M500 1050v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5zM1100 1050v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h400 q21 0 35.5 -14.5t14.5 -35.5zM500 450v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5zM1100 450v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5z" />
<glyph unicode="&#xe011;" d="M300 1050v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM700 1050v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200 q21 0 35.5 -14.5t14.5 -35.5zM1100 1050v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM300 650v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM700 650v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM1100 650v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM300 250v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM700 250v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM1100 250v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5 t14.5 -35.5z" />
<glyph unicode="&#xe012;" d="M300 1050v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM1200 1050v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h700 q21 0 35.5 -14.5t14.5 -35.5zM300 450v200q0 21 -14.5 35.5t-35.5 14.5h-200q-21 0 -35.5 -14.5t-14.5 -35.5v-200q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5zM1200 650v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5zM300 250v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h200q21 0 35.5 -14.5t14.5 -35.5zM1200 250v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h700q21 0 35.5 -14.5t14.5 -35.5z" />
<glyph unicode="&#xe013;" d="M448 34l818 820l-212 212l-607 -607l-206 207l-212 -212z" />
<glyph unicode="&#xe014;" d="M882 106l-282 282l-282 -282l-212 212l282 282l-282 282l212 212l282 -282l282 282l212 -212l-282 -282l282 -282z" />
<glyph unicode="&#xe015;" d="M913 432l300 -300q7 -8 7 -18t-7 -18l-109 -109q-8 -7 -18 -7t-18 7l-300 300q-119 -78 -261 -78q-200 0 -342 142t-142 342t142 342t342 142t342 -142t142 -342q0 -142 -78 -261zM507 363q137 0 233.5 96.5t96.5 233.5t-96.5 233.5t-233.5 96.5t-234 -97t-97 -233 t97 -233t234 -97zM600 800h100v-200h-100v-100h-200v100h-100v200h100v100h200v-100z" />
<glyph unicode="&#xe016;" d="M913 432l300 -299q7 -7 7 -18t-7 -18l-109 -109q-8 -8 -18 -8t-18 8l-300 299q-120 -77 -261 -77q-200 0 -342 142t-142 342t142 342t342 142t342 -142t142 -342q0 -141 -78 -262zM176 694q0 -136 97 -233t234 -97t233.5 97t96.5 233t-96.5 233t-233.5 97t-234 -97 t-97 -233zM300 801v-200h400v200h-400z" />
<glyph unicode="&#xe017;" d="M700 750v400q0 21 -14.5 35.5t-35.5 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-400q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5zM800 975v166q167 -62 272 -210t105 -331q0 -118 -45.5 -224.5t-123 -184t-184 -123t-224.5 -45.5t-224.5 45.5t-184 123 t-123 184t-45.5 224.5q0 183 105 331t272 210v-166q-103 -55 -165 -155t-62 -220q0 -177 125 -302t302 -125t302 125t125 302q0 120 -62 220t-165 155z" />
<glyph unicode="&#xe018;" d="M1200 1h-200v1200h200v-1200zM900 1h-200v800h200v-800zM600 1h-200v500h200v-500zM300 301h-200v-300h200v300z" />
<glyph unicode="&#xe019;" d="M488 183l38 -151q40 -5 74 -5q27 0 74 5l38 151l6 2q46 13 93 39l5 3l134 -81q56 44 104 105l-80 134l3 5q24 44 39 93l1 6l152 38q5 40 5 74q0 28 -5 73l-152 38l-1 6q-16 51 -39 93l-3 5l80 134q-44 58 -104 105l-134 -81l-5 3q-45 25 -93 39l-6 1l-38 152q-40 5 -74 5 q-27 0 -74 -5l-38 -152l-5 -1q-50 -14 -94 -39l-5 -3l-133 81q-59 -47 -105 -105l80 -134l-3 -5q-25 -47 -38 -93l-2 -6l-151 -38q-6 -48 -6 -73q0 -33 6 -74l151 -38l2 -6q14 -49 38 -93l3 -5l-80 -134q45 -59 105 -105l133 81l5 -3q45 -26 94 -39zM600 815q89 0 152 -63 t63 -151q0 -89 -63 -152t-152 -63t-152 63t-63 152q0 88 63 151t152 63z" />
<glyph unicode="&#xe020;" d="M900 1100h275q10 0 17.5 -7.5t7.5 -17.5v-50q0 -11 -7 -18t-18 -7h-1050q-11 0 -18 7t-7 18v50q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5v-100zM800 1100v100h-300v-100h300zM200 900h900v-800q0 -41 -29.5 -71 t-70.5 -30h-700q-41 0 -70.5 30t-29.5 71v800zM300 100h100v700h-100v-700zM500 100h100v700h-100v-700zM700 100h100v700h-100v-700zM900 100h100v700h-100v-700z" />
<glyph unicode="&#xe021;" d="M1301 601h-200v-600h-300v400h-300v-400h-300v600h-200l656 644z" />
<glyph unicode="&#xe022;" d="M600 700h400v-675q0 -11 -7 -18t-18 -7h-850q-11 0 -18 7t-7 18v1150q0 11 7 18t18 7h475v-500zM1000 800h-300v300z" />
<glyph unicode="&#xe023;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM600 1014q-171 0 -292.5 -121.5t-121.5 -292.5t121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5zM600 600h200 v-100h-300v400h100v-300z" />
<glyph unicode="&#xe024;" d="M721 400h-242l-40 -400h-539l431 1200h209l-21 -300h162l-20 300h208l431 -1200h-538zM712 500l-27 300h-170l-27 -300h224z" />
<glyph unicode="&#xe025;" d="M1100 400v-400h-1100v400h490l-290 300h200v500h300v-500h200l-290 -300h490zM988 300h-175v-100h175v100z" />
<glyph unicode="&#xe026;" d="M600 1199q122 0 233 -47.5t191 -127.5t127.5 -191t47.5 -233t-47.5 -233t-127.5 -191t-191 -127.5t-233 -47.5t-233 47.5t-191 127.5t-127.5 191t-47.5 233t47.5 233t127.5 191t191 127.5t233 47.5zM600 1012q-170 0 -291 -121t-121 -291t121 -291t291 -121t291 121 t121 291t-121 291t-291 121zM700 600h150l-250 -300l-250 300h150v300h200v-300z" />
<glyph unicode="&#xe027;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM600 1014q-171 0 -292.5 -121.5t-121.5 -292.5t121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5zM850 600h-150 v-300h-200v300h-150l250 300z" />
<glyph unicode="&#xe028;" d="M0 500l200 700h800q199 -700 200 -700v-475q0 -11 -7 -18t-18 -7h-1150q-11 0 -18 7t-7 18v475zM903 1000h-606l-97 -500h200l50 -200h300l50 200h200z" />
<glyph unicode="&#xe029;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM600 1014q-171 0 -292.5 -121.5t-121.5 -292.5q0 -172 121.5 -293t292.5 -121t292.5 121t121.5 293q0 171 -121.5 292.5t-292.5 121.5zM797 598 l-297 -201v401z" />
<glyph unicode="&#xe030;" d="M1177 600h-150q0 -177 -125 -302t-302 -125t-302 125t-125 302t125 302t302 125q136 0 246 -81l-146 -146h400v400l-145 -145q-157 122 -355 122q-118 0 -224.5 -45.5t-184 -123t-123 -184t-45.5 -224.5t45.5 -224.5t123 -184t184 -123t224.5 -45.5t224.5 45.5t184 123 t123 184t45.5 224.5z" />
<glyph unicode="&#xe031;" d="M700 800l147 147q-112 80 -247 80q-177 0 -302 -125t-125 -302h-150q0 118 45.5 224.5t123 184t184 123t224.5 45.5q198 0 355 -122l145 145v-400h-400zM500 400l-147 -147q112 -80 247 -80q177 0 302 125t125 302h150q0 -118 -45.5 -224.5t-123 -184t-184 -123 t-224.5 -45.5q-198 0 -355 122l-145 -145v400h400z" />
<glyph unicode="&#xe032;" d="M100 1200v-1200h1100v1200h-1100zM1100 100h-900v900h900v-900zM400 800h-100v100h100v-100zM1000 800h-500v100h500v-100zM400 600h-100v100h100v-100zM1000 600h-500v100h500v-100zM400 400h-100v100h100v-100zM1000 400h-500v100h500v-100zM400 200h-100v100h100v-100 zM1000 300h-500v-100h500v100z" />
<glyph unicode="&#xe034;" d="M200 0h-100v1100h100v-1100zM1100 600v500q-40 -81 -101.5 -115.5t-127.5 -29.5t-138 25t-139.5 40t-125.5 25t-103 -29.5t-65 -115.5v-500q60 60 127.5 84t127.5 17.5t122 -23t119 -30t110 -11t103 42t91 120.5z" />
<glyph unicode="&#xe035;" d="M1200 275v300q0 116 -49.5 227t-131 192.5t-192.5 131t-227 49.5t-227 -49.5t-192.5 -131t-131 -192.5t-49.5 -227v-300q0 -11 7 -18t18 -7h50q11 0 18 7t7 18v300q0 127 70.5 231.5t184.5 161.5t245 57t245 -57t184.5 -161.5t70.5 -231.5v-300q0 -11 7 -18t18 -7h50 q11 0 18 7t7 18zM400 480v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6h160q8 0 14 -6t6 -14zM1000 480v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6h160q8 0 14 -6t6 -14z" />
<glyph unicode="&#xe036;" d="M0 800v-400h300l300 -200v800l-300 -200h-300zM971 600l141 -141l-71 -71l-141 141l-141 -141l-71 71l141 141l-141 141l71 71l141 -141l141 141l71 -71z" />
<glyph unicode="&#xe037;" d="M0 800v-400h300l300 -200v800l-300 -200h-300zM700 857l69 53q111 -135 111 -310q0 -169 -106 -302l-67 54q86 110 86 248q0 146 -93 257z" />
<glyph unicode="&#xe038;" d="M974 186l6 8q142 178 142 405q0 230 -144 408l-6 8l-83 -64l7 -8q123 -151 123 -344q0 -189 -119 -339l-7 -8zM300 801l300 200v-800l-300 200h-300v400h300zM702 858l69 53q111 -135 111 -310q0 -170 -106 -303l-67 55q86 110 86 248q0 145 -93 257z" />
<glyph unicode="&#xe039;" d="M100 700h400v100h100v100h-100v300h-500v-600h100v100zM1200 700v500h-600v-200h100v-300h200v-300h300v200h-200v100h200zM100 1100h300v-300h-300v300zM800 800v300h300v-300h-300zM200 900h100v100h-100v-100zM900 1000h100v-100h-100v100zM300 600h-100v-100h-200 v-500h500v500h-200v100zM900 200v-100h-200v100h-100v100h100v200h-200v100h300v-300h200v-100h-100zM400 400v-300h-300v300h300zM300 200h-100v100h100v-100zM1100 300h100v-100h-100v100zM600 100h100v-100h-100v100zM1200 100v-100h-300v100h300z" />
<glyph unicode="&#xe040;" d="M100 1200h-100v-1000h100v1000zM300 200h-100v1000h100v-1000zM700 200h-200v1000h200v-1000zM900 200h-100v1000h100v-1000zM1200 1200v-1000h-200v1000h200zM400 100v-100h-300v100h300zM500 91h100v-91h-100v91zM700 91h100v-91h-100v91zM1100 91v-91h-200v91h200z " />
<glyph unicode="&#xe041;" d="M1200 500l-500 -500l-699 700v475q0 10 7.5 17.5t17.5 7.5h474zM320 882q29 29 29 71t-29 71q-30 30 -71.5 30t-71.5 -30q-29 -29 -29 -71t29 -71q30 -30 71.5 -30t71.5 30z" />
<glyph unicode="&#xe042;" d="M1201 500l-500 -500l-699 700v475q0 11 7 18t18 7h474zM1501 500l-500 -500l-50 50l450 450l-700 700h100zM320 882q30 29 30 71t-30 71q-29 30 -71 30t-71 -30q-30 -29 -30 -71t30 -71q29 -30 71 -30t71 30z" />
<glyph unicode="&#xe043;" d="M1200 1200v-1000l-100 -100v1000h-750l-100 -100h750v-1000h-900v1025l175 175h925z" />
<glyph unicode="&#xe045;" d="M947 829l-94 346q-2 11 -10 18t-18 7h-450q-10 0 -18 -7t-10 -18l-94 -346l40 -124h592zM1200 800v-700h-200v200h-800v-200h-200v700h200l100 -200h600l100 200h200zM881 176l38 -152q2 -10 -3.5 -17t-15.5 -7h-600q-10 0 -15.5 7t-3.5 17l38 152q2 10 11.5 17t19.5 7 h500q10 0 19.5 -7t11.5 -17z" />
<glyph unicode="&#xe047;" d="M1200 0v66q-34 1 -74 43q-18 19 -33 42t-21 37l-6 13l-385 998h-93l-399 -1006q-24 -48 -52 -75q-12 -12 -33 -25t-36 -20l-15 -7v-66h365v66q-41 0 -72 11t-49 38t1 71l92 234h391l82 -222q16 -45 -5.5 -88.5t-74.5 -43.5v-66h417zM416 521l178 457l46 -140l116 -317 h-340z" />
<glyph unicode="&#xe048;" d="M100 1199h471q120 0 213 -88t93 -228q0 -55 -11.5 -101.5t-28 -74t-33.5 -47.5t-28 -28l-12 -7q8 -3 21.5 -9t48 -31.5t60.5 -58t47.5 -91.5t21.5 -129q0 -84 -59 -156.5t-142 -111t-162 -38.5h-500v89q41 7 70.5 32.5t29.5 65.5v827q0 28 -1 39.5t-5.5 26t-15.5 21 t-29 14t-49 14.5v70zM400 1079v-379h139q76 0 130 61.5t54 138.5q0 82 -84 130.5t-239 48.5zM400 200h161q89 0 153 48.5t64 132.5q0 90 -62.5 154.5t-156.5 64.5h-159v-400z" />
<glyph unicode="&#xe049;" d="M877 1200l2 -57q-33 -8 -62 -25.5t-46 -37t-29.5 -38t-17.5 -30.5l-5 -12l-128 -825q-10 -52 14 -82t95 -36v-57h-500v57q77 7 134.5 40.5t65.5 80.5l173 849q10 56 -10 74t-91 37q-6 1 -10.5 2.5t-9.5 2.5v57h425z" />
<glyph unicode="&#xe050;" d="M1150 1200h150v-300h-50q0 29 -8 48.5t-18.5 30t-33.5 15t-39.5 5.5t-50.5 1h-200v-850l100 -50v-100h-400v100l100 50v850h-200q-34 0 -50.5 -1t-40 -5.5t-33.5 -15t-18.5 -30t-8.5 -48.5h-49v300h150h700zM100 1000v-800h75l-125 -167l-125 167h75v800h-75l125 167 l125 -167h-75z" />
<glyph unicode="&#xe051;" d="M950 1201h150v-300h-50q0 29 -8 48.5t-18 30t-33.5 15t-40 5.5t-50.5 1h-200v-650l100 -50v-100h-400v100l100 50v650h-200q-34 0 -50.5 -1t-39.5 -5.5t-33.5 -15t-18.5 -30t-8 -48.5h-50v300h150h700zM200 101h800v75l167 -125l-167 -125v75h-800v-75l-167 125l167 125 v-75z" />
<glyph unicode="&#xe052;" d="M700 950v100q0 21 -14.5 35.5t-35.5 14.5h-600q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h600q21 0 35.5 15t14.5 35zM1100 650v100q0 21 -14.5 35.5t-35.5 14.5h-1000q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h1000 q21 0 35.5 15t14.5 35zM900 350v100q0 21 -14.5 35.5t-35.5 14.5h-800q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h800q21 0 35.5 15t14.5 35zM1200 50v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35 t35.5 -15h1100q21 0 35.5 15t14.5 35z" />
<glyph unicode="&#xe053;" d="M1000 950v100q0 21 -14.5 35.5t-35.5 14.5h-700q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h700q21 0 35.5 15t14.5 35zM1200 650v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h1100 q21 0 35.5 15t14.5 35zM1000 350v100q0 21 -14.5 35.5t-35.5 14.5h-700q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h700q21 0 35.5 15t14.5 35zM1200 50v100q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35 t35.5 -15h1100q21 0 35.5 15t14.5 35z" />
<glyph unicode="&#xe054;" d="M500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-600q-21 0 -35.5 15t-14.5 35zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1000q-21 0 -35.5 15 t-14.5 35zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15t-14.5 35zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100 q-21 0 -35.5 15t-14.5 35z" />
<glyph unicode="&#xe055;" d="M0 950v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM0 650v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15 t-14.5 35zM0 350v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100q-21 0 -35.5 15t-14.5 35zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-1100 q-21 0 -35.5 15t-14.5 35z" />
<glyph unicode="&#xe056;" d="M0 950v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM300 950v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800q-21 0 -35.5 15 t-14.5 35zM0 650v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM300 650v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-800 q-21 0 -35.5 15t-14.5 35zM0 350v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15 h-800q-21 0 -35.5 15t-14.5 35zM0 50v100q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35zM300 50v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -20 -14.5 -35t-35.5 -15 h-800q-21 0 -35.5 15t-14.5 35z" />
<glyph unicode="&#xe057;" d="M400 1100h-100v-1100h100v1100zM700 950v100q0 21 -15 35.5t-35 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h100q20 0 35 15t15 35zM1100 650v100q0 21 -15 35.5t-35 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15 h500q20 0 35 15t15 35zM100 425v75h-201v100h201v75l166 -125zM900 350v100q0 21 -15 35.5t-35 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h300q20 0 35 15t15 35zM1200 50v100q0 21 -15 35.5t-35 14.5h-600q-21 0 -35.5 -14.5t-14.5 -35.5 v-100q0 -20 14.5 -35t35.5 -15h600q20 0 35 15t15 35z" />
<glyph unicode="&#xe058;" d="M201 950v100q0 21 -15 35.5t-35 14.5h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h100q20 0 35 15t15 35zM801 1100h100v-1100h-100v1100zM601 650v100q0 21 -15 35.5t-35 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15 h500q20 0 35 15t15 35zM1101 425v75h200v100h-200v75l-167 -125zM401 350v100q0 21 -15 35.5t-35 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -20 14.5 -35t35.5 -15h300q20 0 35 15t15 35zM701 50v100q0 21 -15 35.5t-35 14.5h-600q-21 0 -35.5 -14.5t-14.5 -35.5 v-100q0 -20 14.5 -35t35.5 -15h600q20 0 35 15t15 35z" />
<glyph unicode="&#xe059;" d="M900 925v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53v650q0 31 22 53t53 22h750q31 0 53 -22t22 -53zM1200 300l-300 300l300 300v-600z" />
<glyph unicode="&#xe060;" d="M1200 1056v-1012q0 -18 -12.5 -31t-31.5 -13h-1112q-18 0 -31 13t-13 31v1012q0 18 13 31t31 13h1112q19 0 31.5 -13t12.5 -31zM1100 1000h-1000v-737l247 182l298 -131l-74 156l293 318l236 -288v500zM476 750q0 -56 -39 -95t-95 -39t-95 39t-39 95t39 95t95 39t95 -39 t39 -95z" />
<glyph unicode="&#xe062;" d="M600 1213q123 0 227 -63t164.5 -169.5t60.5 -229.5t-73 -272q-73 -114 -166.5 -237t-150.5 -189l-57 -66q-10 9 -27 26t-66.5 70.5t-96 109t-104 135.5t-100.5 155q-63 139 -63 262q0 124 60.5 231.5t165 172t226.5 64.5zM599 514q107 0 182.5 75.5t75.5 182.5t-75.5 182 t-182.5 75t-182 -75.5t-75 -181.5q0 -107 75.5 -182.5t181.5 -75.5z" />
<glyph unicode="&#xe063;" d="M600 1199q122 0 233 -47.5t191 -127.5t127.5 -191t47.5 -233t-47.5 -233t-127.5 -191t-191 -127.5t-233 -47.5t-233 47.5t-191 127.5t-127.5 191t-47.5 233t47.5 233t127.5 191t191 127.5t233 47.5zM600 173v854q-176 0 -301.5 -125t-125.5 -302t125.5 -302t301.5 -125z " />
<glyph unicode="&#xe064;" d="M554 1295q21 -71 57.5 -142.5t76 -130.5t83 -118.5t82 -117t70 -116t50 -125.5t18.5 -136q0 -89 -39 -165.5t-102 -126.5t-140 -79.5t-156 -33.5q-114 6 -211.5 53t-161.5 138.5t-64 210.5q0 94 34 186t88.5 172.5t112 159t115 177t87.5 194.5zM455 296q-7 6 -18 17 t-34 48t-33 77q-15 73 -14 143.5t10 122.5l9 51q-92 -110 -119.5 -185t-12.5 -156q14 -82 59.5 -136t136.5 -80z" />
<glyph unicode="&#xe065;" d="M1108 902l113 113l-21 85l-92 28l-113 -113zM1100 625v-225q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5v300q0 165 117.5 282.5t282.5 117.5q366 -6 397 -14l-186 -186h-311q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5 t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v125zM436 341l161 50l412 412l-114 113l-405 -405z" />
<glyph unicode="&#xe066;" d="M1100 453v-53q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5v300q0 165 117.5 282.5t282.5 117.5h261l2 -80q-133 -32 -218 -120h-145q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5z M813 431l360 324l-359 318v-216q-7 0 -19 -1t-48 -8t-69.5 -18.5t-76.5 -37t-76.5 -59t-62 -88t-39.5 -121.5q30 38 81.5 64t103 35.5t99 14t77.5 3.5l29 -1v-209z" />
<glyph unicode="&#xe067;" d="M1100 569v-169q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5v300q0 165 117.5 282.5t282.5 117.5h300q60 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69z M625 348l566 567l-136 137l-430 -431l-147 147l-136 -136z" />
<glyph unicode="&#xe068;" d="M900 303v198h-200v-200h195l-295 -300l-300 300h200v200h-200v-198l-300 300l300 296v-198h200v200h-200l300 300l295 -300h-195v-200h200v198l300 -296z" />
<glyph unicode="&#xe069;" d="M900 0l-500 488v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-437l500 487v-1100z" />
<glyph unicode="&#xe070;" d="M1200 0l-500 488v-488l-500 488v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-437l500 487v-487l500 487v-1100z" />
<glyph unicode="&#xe071;" d="M1200 0l-500 488v-488l-564 550l564 550v-487l500 487v-1100z" />
<glyph unicode="&#xe072;" d="M1100 550l-900 550v-1100z" />
<glyph unicode="&#xe073;" d="M500 150v800q0 21 -14.5 35.5t-35.5 14.5h-200q-21 0 -35.5 -14.5t-14.5 -35.5v-800q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5zM900 150v800q0 21 -14.5 35.5t-35.5 14.5h-200q-21 0 -35.5 -14.5t-14.5 -35.5v-800q0 -21 14.5 -35.5t35.5 -14.5h200 q21 0 35.5 14.5t14.5 35.5z" />
<glyph unicode="&#xe074;" d="M1100 150v800q0 21 -14.5 35.5t-35.5 14.5h-800q-21 0 -35.5 -14.5t-14.5 -35.5v-800q0 -20 14.5 -35t35.5 -15h800q21 0 35.5 15t14.5 35z" />
<glyph unicode="&#xe075;" d="M500 0v488l-500 -488v1100l500 -487v487l564 -550z" />
<glyph unicode="&#xe076;" d="M1050 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-500 -488v488l-500 -488v1100l500 -487v487l500 -487v437q0 21 14.5 35.5t35.5 14.5z" />
<glyph unicode="&#xe077;" d="M850 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-500 -488v1100l500 -487v437q0 21 14.5 35.5t35.5 14.5z" />
<glyph unicode="&#xe078;" d="M650 1064l-550 -564h1100zM1200 350v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5z" />
<glyph unicode="&#xe079;" d="M777 7l240 240l-353 353l353 353l-240 240l-592 -594z" />
<glyph unicode="&#xe080;" d="M513 -46l-241 240l353 353l-353 353l241 240l572 -571l21 -22l-1 -1v-1z" />
<glyph unicode="&#xe081;" d="M600 1197q162 0 299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5t80 299.5t217.5 217.5t299.5 80zM500 900v-200h-200v-200h200v-200h200v200h200v200h-200v200h-200z" />
<glyph unicode="&#xe082;" d="M600 1197q162 0 299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5t80 299.5t217.5 217.5t299.5 80zM300 700v-200h600v200h-600z" />
<glyph unicode="&#xe083;" d="M600 1197q162 0 299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5t80 299.5t217.5 217.5t299.5 80zM247 741l141 -141l-142 -141l213 -213l141 142l141 -142l213 213l-142 141l142 141l-213 212l-141 -141 l-141 142z" />
<glyph unicode="&#xe084;" d="M600 1197q162 0 299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5t80 299.5t217.5 217.5t299.5 80zM546 623l-102 102l-174 -174l276 -277l411 411l-175 174z" />
<glyph unicode="&#xe085;" d="M600 1197q162 0 299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5t80 299.5t217.5 217.5t299.5 80zM500 500h200q5 3 14 8t31.5 25.5t39.5 45.5t31 69t14 94q0 51 -17.5 89t-42 58t-58.5 32t-58.5 15t-51.5 3 q-105 0 -172 -56t-67 -183h144q4 0 11.5 -1t11 -1t6.5 3t3 9t1 11t3.5 8.5t3.5 6t5.5 4t6.5 2.5t9 1.5t9 0.5h11.5h12.5q19 0 30 -10t11 -26q0 -22 -4 -28t-27 -22q-5 -1 -12.5 -3t-27 -13.5t-34 -27t-26.5 -46t-11 -68.5zM500 400v-100h200v100h-200z" />
<glyph unicode="&#xe086;" d="M600 1197q162 0 299.5 -80t217.5 -217.5t80 -299.5t-80 -299.5t-217.5 -217.5t-299.5 -80t-299.5 80t-217.5 217.5t-80 299.5t80 299.5t217.5 217.5t299.5 80zM500 900v-100h200v100h-200zM400 700v-100h100v-200h-100v-100h400v100h-100v300h-300z" />
<glyph unicode="&#xe087;" d="M1200 700v-200h-203q-25 -102 -116.5 -186t-180.5 -117v-197h-200v197q-140 27 -208 102.5t-98 200.5h-194v200h194q15 60 36 104.5t55.5 86t88 69t126.5 40.5v200h200v-200q54 -20 113 -60t112.5 -105.5t71.5 -134.5h203zM700 500v-206q149 48 201 206h-201v200h200 q-25 74 -76 127.5t-124 76.5v-204h-200v203q-75 -24 -130 -77.5t-79 -125.5h209v-200h-210q24 -73 79.5 -127.5t130.5 -78.5v206h200z" />
<glyph unicode="&#xe088;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM600 1014q-171 0 -292.5 -121.5t-121.5 -292.5t121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5zM844 735 l-135 -135l135 -135l-109 -109l-135 135l-135 -135l-109 109l135 135l-135 135l109 109l135 -135l135 135z" />
<glyph unicode="&#xe089;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM600 1014q-171 0 -292.5 -121.5t-121.5 -292.5t121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5zM896 654 l-346 -345l-228 228l141 141l87 -87l204 205z" />
<glyph unicode="&#xe090;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM248 385l568 567q-100 62 -216 62q-171 0 -292.5 -121.5t-121.5 -292.5q0 -115 62 -215zM955 809l-564 -564q97 -59 209 -59q171 0 292.5 121.5 t121.5 292.5q0 112 -59 209z" />
<glyph unicode="&#xe091;" d="M1200 400h-600v-301l-600 448l600 453v-300h600v-300z" />
<glyph unicode="&#xe092;" d="M600 400h-600v300h600v300l600 -453l-600 -448v301z" />
<glyph unicode="&#xe093;" d="M1098 600h-298v-600h-300v600h-296l450 600z" />
<glyph unicode="&#xe094;" d="M998 600l-449 -600l-445 600h296v600h300v-600h298z" />
<glyph unicode="&#xe095;" d="M600 199v301q-95 -2 -183 -20t-170 -52t-147 -92.5t-100 -135.5q6 132 41 238.5t103.5 193t184 138t271.5 59.5v271l600 -453z" />
<glyph unicode="&#xe096;" d="M1200 1200h-400l129 -129l-294 -294l142 -142l294 294l129 -129v400zM565 423l-294 -294l129 -129h-400v400l129 -129l294 294z" />
<glyph unicode="&#xe097;" d="M871 730l129 -130h-400v400l129 -129l295 295l142 -141zM200 600h400v-400l-129 130l-295 -295l-142 141l295 295z" />
<glyph unicode="&#xe101;" d="M600 1177q118 0 224.5 -45.5t184 -123t123 -184t45.5 -224.5t-45.5 -224.5t-123 -184t-184 -123t-224.5 -45.5t-224.5 45.5t-184 123t-123 184t-45.5 224.5t45.5 224.5t123 184t184 123t224.5 45.5zM686 549l58 302q4 20 -8 34.5t-33 14.5h-207q-20 0 -32 -14.5t-8 -34.5 l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5zM700 400h-200v-100h200v100z" />
<glyph unicode="&#xe102;" d="M1200 900h-111v6t-1 15t-3 18l-34 172q-11 39 -41.5 63t-69.5 24q-32 0 -61 -17l-239 -144q-22 -13 -40 -35q-19 24 -40 36l-238 144q-33 18 -62 18q-39 0 -69.5 -23t-40.5 -61l-35 -177q-2 -8 -3 -18t-1 -15v-6h-111v-100h100v-200h400v300h200v-300h400v200h100v100z M731 900l202 197q5 -12 12 -32.5t23 -64t25 -72t7 -28.5h-269zM481 900h-281q-3 0 14 48t35 96l18 47zM100 0h400v400h-400v-400zM700 400h400v-400h-400v400z" />
<glyph unicode="&#xe103;" d="M0 121l216 193q-9 53 -13 83t-5.5 94t9 113t38.5 114t74 124q47 60 99.5 102.5t103 68t127.5 48t145.5 37.5t184.5 43.5t220 58.5q0 -189 -22 -343t-59 -258t-89 -181.5t-108.5 -120t-122 -68t-125.5 -30t-121.5 -1.5t-107.5 12.5t-87.5 17t-56.5 7.5l-99 -55l-201 -202 v143zM692 611q70 38 118.5 69.5t102 79t99 111.5t86.5 148q22 50 24 60t-6 19q-7 5 -17 5t-26.5 -14.5t-33.5 -39.5q-35 -51 -113.5 -108.5t-139.5 -89.5l-61 -32q-369 -197 -458 -401q-48 -111 -28.5 -117.5t86.5 76.5q55 66 367 234z" />
<glyph unicode="&#xe105;" d="M1261 600l-26 -40q-6 -10 -20 -30t-49 -63.5t-74.5 -85.5t-97 -90t-116.5 -83.5t-132.5 -59t-145.5 -23.5t-145.5 23.5t-132.5 59t-116.5 83.5t-97 90t-74.5 85.5t-49 63.5t-20 30l-26 40l26 40q6 10 20 30t49 63.5t74.5 85.5t97 90t116.5 83.5t132.5 59t145.5 23.5 t145.5 -23.5t132.5 -59t116.5 -83.5t97 -90t74.5 -85.5t49 -63.5t20 -30zM600 240q64 0 123.5 20t100.5 45.5t85.5 71.5t66.5 75.5t58 81.5t47 66q-1 1 -28.5 37.5t-42 55t-43.5 53t-57.5 63.5t-58.5 54q49 -74 49 -163q0 -124 -88 -212t-212 -88t-212 88t-88 212 q0 85 46 158q-102 -87 -226 -258q7 -10 40.5 -58t56 -78.5t68 -77.5t87.5 -75t103 -49.5t125 -21.5zM484 762l-107 -106q49 -124 154 -191l105 105q-37 24 -75 72t-57 84z" />
<glyph unicode="&#xe106;" d="M906 1200l-314 -1200h-148l37 143q-82 21 -165 71.5t-140 102t-109.5 112t-72 88.5t-29.5 43l-26 40l26 40q6 10 20 30t49 63.5t74.5 85.5t97 90t116.5 83.5t132.5 59t145.5 23.5q61 0 121 -17l37 142h148zM1261 600l-26 -40q-7 -12 -25.5 -38t-63.5 -79.5t-95.5 -102.5 t-124 -100t-146.5 -79l38 145q22 15 44.5 34t46 44t40.5 44t41 50.5t33.5 43.5t33 44t24.5 34q-97 127 -140 175l39 146q67 -54 131.5 -125.5t87.5 -103.5t36 -52zM513 264l37 141q-107 18 -178.5 101.5t-71.5 193.5q0 85 46 158q-102 -87 -226 -258q210 -282 393 -336z M484 762l-107 -106q49 -124 154 -191l47 47l23 87q-30 28 -59 69t-44 68z" />
<glyph unicode="&#xe107;" d="M-47 0h1294q37 0 50.5 35.5t-7.5 67.5l-642 1056q-20 33 -48 36t-48 -29l-642 -1066q-21 -32 -7.5 -66t50.5 -34zM700 200v100h-200v-100h-345l445 723l445 -723h-345zM700 700h-200v-100l100 -300l100 300v100z" />
<glyph unicode="&#xe108;" d="M800 711l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -91 100 -113v-64q0 -21 -13 -29t-32 1l-94 78h-222l-94 -78q-19 -9 -32 -1t-13 29v64q0 22 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5v41q0 20 11 44.5t26 38.5 l363 325v339q0 62 44 106t106 44t106 -44t44 -106v-339z" />
<glyph unicode="&#xe110;" d="M941 800l-600 -600h-341v200h259l600 600h241v198l300 -295l-300 -300v197h-159zM381 678l141 142l-181 180h-341v-200h259zM1100 598l300 -295l-300 -300v197h-241l-181 181l141 142l122 -123h159v198z" />
<glyph unicode="&#xe111;" d="M100 1100h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5z" />
<glyph unicode="&#xe112;" d="M400 900h-300v300h300v-300zM1100 900h-300v300h300v-300zM1100 800v-200q0 -42 -3 -83t-15 -104t-31.5 -116t-58 -109.5t-89 -96.5t-129 -65.5t-174.5 -25.5t-174.5 25.5t-129 65.5t-89 96.5t-58 109.5t-31.5 116t-15 104t-3 83v200h300v-250q0 -113 6 -145 q17 -92 102 -117q39 -11 92 -11q37 0 66.5 5.5t50 15.5t36 24t24 31.5t14 37.5t7 42t2.5 45t0 47v25v250h300z" />
<glyph unicode="&#xe113;" d="M902 184l226 227l-578 579l-580 -579l227 -227l352 353z" />
<glyph unicode="&#xe114;" d="M650 218l578 579l-226 227l-353 -353l-352 353l-227 -227z" />
<glyph unicode="&#xe115;" d="M1198 400v600h-796l215 -200h381v-400h-198l299 -283l299 283h-200zM-198 700l299 283l300 -283h-203v-400h385l215 -200h-800v600h-196z" />
<glyph unicode="&#xe116;" d="M1050 1200h94q20 0 35 -14.5t15 -35.5t-15 -35.5t-35 -14.5h-54l-201 -961q-2 -4 -6 -10.5t-19 -17.5t-33 -11h-31v-50q0 -20 -14.5 -35t-35.5 -15t-35.5 15t-14.5 35v50h-300v-50q0 -20 -14.5 -35t-35.5 -15t-35.5 15t-14.5 35v50h-50q-21 0 -35.5 15t-14.5 35 q0 21 14.5 35.5t35.5 14.5h535l48 200h-633q-32 0 -54.5 21t-27.5 43l-100 475q-5 24 10 42q14 19 39 19h896l38 162q5 17 18.5 27.5t30.5 10.5z" />
<glyph unicode="&#xe117;" d="M1200 1000v-100h-1200v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500zM0 800h1200v-800h-1200v800z" />
<glyph unicode="&#xe118;" d="M201 800l-200 -400v600h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500v-200h-1000zM1501 700l-300 -700h-1200l300 700h1200z" />
<glyph unicode="&#xe119;" d="M302 300h198v600h-198l298 300l298 -300h-198v-600h198l-298 -300z" />
<glyph unicode="&#xe120;" d="M900 303v197h-600v-197l-300 297l300 298v-198h600v198l300 -298z" />
<glyph unicode="&#xe121;" d="M31 400l172 739q5 22 23 41.5t38 19.5h672q19 0 37.5 -22.5t23.5 -45.5l172 -732h-1138zM100 300h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM900 200h-100v-100h100v100z M1100 200h-100v-100h100v100z" />
<glyph unicode="&#xe122;" d="M1100 200v850q0 21 14.5 35.5t35.5 14.5q20 0 35 -14.5t15 -35.5v-850q0 -20 -15 -35t-35 -15q-21 0 -35.5 15t-14.5 35zM325 800l675 250v-850l-675 200h-38l47 -276q2 -12 -3 -17.5t-11 -6t-21 -0.5h-8h-83q-20 0 -34.5 14t-18.5 35q-56 337 -56 351v250v5 q0 13 0.5 18.5t2.5 13t8 10.5t15 3h200zM-101 600v50q0 24 25 49t50 38l25 13v-250l-11 5.5t-24 14t-30 21.5t-24 27.5t-11 31.5z" />
<glyph unicode="&#xe124;" d="M445 1180l-45 -233l-224 78l78 -225l-233 -44l179 -156l-179 -155l233 -45l-78 -224l224 78l45 -233l155 179l155 -179l45 233l224 -78l-78 224l234 45l-180 155l180 156l-234 44l78 225l-224 -78l-45 233l-155 -180z" />
<glyph unicode="&#xe125;" d="M700 1200h-50q-27 0 -51 -20t-38 -48l-96 -198l-145 -196q-20 -26 -20 -63v-400q0 -75 100 -75h61q123 -100 139 -100h250q46 0 83 57l238 344q29 31 29 74v100q0 44 -30.5 84.5t-69.5 40.5h-328q28 118 28 125v150q0 44 -30.5 84.5t-69.5 40.5zM700 925l-50 -225h450 v-125l-250 -375h-214l-136 100h-100v375l150 212l100 213h50v-175zM0 800v-600h200v600h-200z" />
<glyph unicode="&#xe126;" d="M700 0h-50q-27 0 -51 20t-38 48l-96 198l-145 196q-20 26 -20 63v400q0 75 100 75h61q123 100 139 100h250q46 0 83 -57l238 -344q29 -31 29 -74v-100q0 -44 -30.5 -84.5t-69.5 -40.5h-328q28 -118 28 -125v-150q0 -44 -30.5 -84.5t-69.5 -40.5zM200 400h-200v600h200 v-600zM700 275l-50 225h450v125l-250 375h-214l-136 -100h-100v-375l150 -212l100 -213h50v175z" />
<glyph unicode="&#xe127;" d="M364 873l362 230q14 6 25 6q17 0 29 -12l109 -112q14 -14 14 -34q0 -18 -11 -32l-85 -121h302q85 0 138.5 -38t53.5 -110t-54.5 -111t-138.5 -39h-107l-130 -339q-7 -22 -20.5 -41.5t-28.5 -19.5h-341q-7 0 -90 81t-83 94v525q0 17 14 35.5t28 28.5zM408 792v-503 l100 -89h293l131 339q6 21 19.5 41t28.5 20h203q16 0 25 15t9 36q0 20 -9 34.5t-25 14.5h-457h-6.5h-7.5t-6.5 0.5t-6 1t-5 1.5t-5.5 2.5t-4 4t-4 5.5q-5 12 -5 20q0 14 10 27l147 183l-86 83zM208 200h-200v600h200v-600z" />
<glyph unicode="&#xe128;" d="M475 1104l365 -230q7 -4 16.5 -10.5t26 -26t16.5 -36.5v-526q0 -13 -85.5 -93.5t-93.5 -80.5h-342q-15 0 -28.5 20t-19.5 41l-131 339h-106q-84 0 -139 39t-55 111t54 110t139 37h302l-85 121q-11 16 -11 32q0 21 14 34l109 113q13 12 29 12q11 0 25 -6zM370 946 l145 -184q10 -11 10 -26q0 -11 -5 -20q-1 -3 -3.5 -5.5l-4 -4t-5 -2.5t-5.5 -1.5t-6.5 -1t-6.5 -0.5h-7.5h-6.5h-476v-100h222q15 0 28.5 -20.5t19.5 -40.5l131 -339h293l106 89v502l-342 237zM1199 201h-200v600h200v-600z" />
<glyph unicode="&#xe129;" d="M1100 473v342q0 15 -20 28.5t-41 19.5l-339 131v106q0 84 -39 139t-111 55t-110 -53.5t-38 -138.5v-302l-121 84q-15 12 -33.5 11.5t-32.5 -13.5l-112 -110q-22 -22 -6 -53l230 -363q4 -6 10.5 -15.5t26 -25t36.5 -15.5h525q13 0 94 83t81 90zM911 400h-503l-236 339 l83 86l183 -146q22 -18 47 -5q3 1 5.5 3.5l4 4t2.5 5t1.5 5.5t1 6.5t0.5 6v7.5v7v456q0 22 25 31t50 -0.5t25 -30.5v-202q0 -16 20 -29.5t41 -19.5l339 -130v-294zM1000 200v-200h-600v200h600z" />
<glyph unicode="&#xe130;" d="M305 1104v200h600v-200h-600zM605 310l339 131q20 6 40.5 19.5t20.5 28.5v342q0 7 -81 90t-94 83h-525q-17 0 -35.5 -14t-28.5 -28l-10 -15l-230 -362q-15 -31 7 -53l112 -110q13 -13 32 -13.5t34 10.5l121 85l-1 -302q0 -84 38.5 -138t110.5 -54t111 55t39 139v106z M905 804v-294l-340 -130q-20 -6 -40 -20t-20 -29v-202q0 -22 -25 -31t-50 0t-25 31v456v14.5t-1.5 11.5t-5 12t-9.5 7q-24 13 -46 -5l-184 -146l-83 86l237 339h503z" />
<glyph unicode="&#xe131;" d="M603 1195q162 0 299.5 -80t217.5 -218t80 -300t-80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5zM598 701h-298v-201h300l-2 -194l402 294l-402 298v-197z" />
<glyph unicode="&#xe132;" d="M597 1195q122 0 232.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-218 -217.5t-300 -80t-299.5 80t-217.5 217.5t-80 299.5q0 122 47.5 232.5t127.5 190.5t190.5 127.5t231.5 47.5zM200 600l400 -294v194h302v201h-300v197z" />
<glyph unicode="&#xe133;" d="M603 1195q121 0 231.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5zM300 600h200v-300h200v300h200l-300 400z" />
<glyph unicode="&#xe134;" d="M603 1195q121 0 231.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5zM500 900v-300h-200l300 -400l300 400h-200v300h-200z" />
<glyph unicode="&#xe135;" d="M603 1195q121 0 231.5 -47.5t190.5 -127.5t127.5 -190.5t47.5 -232.5q0 -162 -80 -299.5t-217.5 -217.5t-299.5 -80t-300 80t-218 217.5t-80 299.5q0 122 47.5 232.5t127.5 190.5t190.5 127.5t232.5 47.5zM627 1101q-15 -12 -36.5 -21t-34.5 -12t-44 -8t-39 -6 q-15 -3 -45.5 0.5t-45.5 -2.5q-21 -7 -52 -26.5t-34 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -90.5t-29.5 -79.5q-8 -33 5.5 -92.5t7.5 -87.5q0 -9 17 -44t16 -60q12 0 23 -5.5t23 -15t20 -13.5q24 -12 108 -42q22 -8 53 -31.5t59.5 -38.5t57.5 -11q8 -18 -15 -55 t-20 -57q42 -71 87 -80q0 -6 -3 -15.5t-3.5 -14.5t4.5 -17q102 -2 221 112q30 29 47 47t34.5 49t20.5 62q-14 9 -37 9.5t-36 7.5q-14 7 -49 15t-52 19q-9 0 -39.5 -0.5t-46.5 -1.5t-39 -6.5t-39 -16.5q-50 -35 -66 -12q-4 2 -3.5 25.5t0.5 25.5q-6 13 -26.5 17t-24.5 7 q2 22 -2 41t-16.5 28t-38.5 -20q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q12 -19 32 -37.5t34 -27.5l14 -8q0 3 9.5 39.5t5.5 57.5q-4 23 14.5 44.5t22.5 31.5q5 14 10 35t8.5 31t15.5 22.5t34 21.5q-6 18 10 37q8 0 23.5 -1.5t24.5 -1.5 t20.5 4.5t20.5 15.5q-10 23 -30.5 42.5t-38 30t-49 26.5t-43.5 23q11 41 1 44q31 -13 58.5 -14.5t39.5 3.5l11 4q6 36 -17 53.5t-64 28.5t-56 23q-19 -3 -37 0zM613 994q0 -18 8 -42.5t16.5 -44t9.5 -23.5q-9 2 -31 5t-36 5t-32 8t-30 14q3 12 16 30t16 25q10 -10 18.5 -10 t14 6t14.5 14.5t16 12.5z" />
<glyph unicode="&#xe137;" horiz-adv-x="1220" d="M100 1196h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 1096h-200v-100h200v100zM100 796h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 696h-500v-100h500v100zM100 396h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 296h-300v-100h300v100z " />
<glyph unicode="&#xe138;" d="M1100 1200v-100h-1000v100h1000zM150 1000h900l-350 -500v-300l-200 -200v500z" />
<glyph unicode="&#xe140;" d="M329 729l142 142l-200 200l129 129h-400v-400l129 129zM1200 1200v-400l-129 129l-200 -200l-142 142l200 200l-129 129h400zM271 129l129 -129h-400v400l129 -129l200 200l142 -142zM1071 271l129 129v-400h-400l129 129l-200 200l142 142z" />
<glyph unicode="&#xe141;" d="M596 1192q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM596 1010q-171 0 -292.5 -121.5t-121.5 -292.5q0 -172 121.5 -293t292.5 -121t292.5 121t121.5 293q0 171 -121.5 292.5t-292.5 121.5zM455 905 q22 0 38 -16t16 -39t-16 -39t-38 -16q-23 0 -39 16.5t-16 38.5t16 38.5t39 16.5zM708 821l1 1q-9 14 -9 28q0 22 16 38.5t39 16.5q22 0 38 -16t16 -39t-16 -39t-38 -16q-14 0 -29 10l-55 -145q17 -22 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5 q0 32 20.5 56.5t51.5 29.5zM855 709q23 0 38.5 -15.5t15.5 -38.5t-16 -39t-38 -16q-23 0 -39 16t-16 39q0 22 16 38t39 16zM345 709q23 0 39 -16t16 -38q0 -23 -16 -39t-39 -16q-22 0 -38 16t-16 39t15.5 38.5t38.5 15.5z" />
<glyph unicode="&#xe143;" d="M649 54l-16 22q-90 125 -293 323q-71 70 -104.5 105.5t-77 89.5t-61 99t-17.5 91q0 131 98.5 229.5t230.5 98.5q143 0 241 -129q103 129 246 129q129 0 226 -98.5t97 -229.5q0 -46 -17.5 -91t-61 -99t-77 -89.5t-104.5 -105.5q-203 -198 -293 -323zM844 524l12 12 q64 62 97.5 97t64.5 79t31 72q0 71 -48 119t-105 48q-74 0 -132 -82l-118 -171l-114 174q-51 79 -123 79q-60 0 -109.5 -49t-49.5 -118q0 -27 30.5 -70t61.5 -75.5t95 -94.5l22 -22q93 -90 190 -201q82 92 195 203z" />
<glyph unicode="&#xe144;" d="M476 406l19 -17l105 105l-212 212l389 389l247 -247l-95 -96l18 -18q46 -46 77 -99l29 29q35 35 62.5 88t27.5 96q0 93 -66 159l-141 141q-66 66 -159 66q-95 0 -159 -66l-283 -283q-66 -64 -66 -159q0 -93 66 -159zM123 193l141 -141q66 -66 159 -66q95 0 159 66 l283 283q66 66 66 159t-66 159l-141 141q-12 12 -19 17l-105 -105l212 -212l-389 -389l-247 248l95 95l-18 18q-46 45 -75 101l-55 -55q-66 -66 -66 -159q0 -94 66 -160z" />
<glyph unicode="&#xe145;" d="M200 100v953q0 21 30 46t81 48t129 38t163 15t162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5zM900 1000h-600v-700h600v700zM600 46q43 0 73.5 30.5t30.5 73.5t-30.5 73.5t-73.5 30.5t-73.5 -30.5t-30.5 -73.5 t30.5 -73.5t73.5 -30.5z" />
<glyph unicode="&#xe148;" d="M700 1029v-307l64 -14q34 -7 64 -16.5t70 -31.5t67.5 -52t47.5 -80.5t20 -112.5q0 -139 -89 -224t-244 -96v-77h-100v78q-152 17 -237 104q-40 40 -52.5 93.5t-15.5 139.5h139q5 -77 48.5 -126.5t117.5 -64.5v335l-27 7q-46 14 -79 26.5t-72 36t-62.5 52t-40 72.5 t-16.5 99q0 92 44 159.5t109 101t144 40.5v78h100v-79q38 -4 72.5 -13.5t75.5 -31.5t71 -53.5t51.5 -84t24.5 -118.5h-159q-8 72 -35 109.5t-101 50.5zM600 755v274q-61 -8 -97.5 -37.5t-36.5 -102.5q0 -29 8 -51t16.5 -34t29.5 -22.5t31 -13.5t38 -10q7 -2 11 -3zM700 548 v-311q170 18 170 151q0 64 -44 99.5t-126 60.5z" />
<glyph unicode="&#xe149;" d="M866 300l50 -147q-41 -25 -80.5 -36.5t-59 -13t-61.5 -1.5q-23 0 -128 33t-155 29q-39 -4 -82 -17t-66 -25l-24 -11l-55 145l16.5 11t15.5 10t13.5 9.5t14.5 12t14.5 14t17.5 18.5q48 55 54 126.5t-30 142.5h-221v100h166q-24 49 -44 104q-10 26 -14.5 55.5t-3 72.5 t25 90t68.5 87q97 88 263 88q129 0 230 -89t101 -208h-153q0 52 -34 89.5t-74 51.5t-76 14q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -11 2.5 -24.5t5.5 -24t9.5 -26.5t10.5 -25t14 -27.5t14 -25.5t15.5 -27t13.5 -24h242v-100h-197q8 -50 -2.5 -115t-31.5 -94 q-41 -59 -99 -113q35 11 84 18t70 7q32 1 102 -16t104 -17q76 0 136 30z" />
<glyph unicode="&#xe150;" d="M300 0l298 300h-198v900h-200v-900h-198zM900 1200l298 -300h-198v-900h-200v900h-198z" />
<glyph unicode="&#xe151;" d="M400 300h198l-298 -300l-298 300h198v900h200v-900zM1000 1200v-500h-100v100h-100v-100h-100v500h300zM901 1100h-100v-200h100v200zM700 500h300v-200h-99v-100h-100v100h99v100h-200v100zM800 100h200v-100h-300v200h100v-100z" />
<glyph unicode="&#xe152;" d="M400 300h198l-298 -300l-298 300h198v900h200v-900zM1000 1200v-200h-99v-100h-100v100h99v100h-200v100h300zM800 800h200v-100h-300v200h100v-100zM700 500h300v-500h-100v100h-100v-100h-100v500zM801 200h100v200h-100v-200z" />
<glyph unicode="&#xe153;" d="M300 0l298 300h-198v900h-200v-900h-198zM900 1100h-100v100h200v-500h-100v400zM1100 500v-500h-100v100h-200v400h300zM1001 400h-100v-200h100v200z" />
<glyph unicode="&#xe154;" d="M300 0l298 300h-198v900h-200v-900h-198zM1100 1200v-500h-100v100h-200v400h300zM1001 1100h-100v-200h100v200zM900 400h-100v100h200v-500h-100v400z" />
<glyph unicode="&#xe155;" d="M300 0l298 300h-198v900h-200v-900h-198zM900 1000h-200v200h200v-200zM1000 700h-300v200h300v-200zM1100 400h-400v200h400v-200zM1200 100h-500v200h500v-200z" />
<glyph unicode="&#xe156;" d="M300 0l298 300h-198v900h-200v-900h-198zM1200 1000h-500v200h500v-200zM1100 700h-400v200h400v-200zM1000 400h-300v200h300v-200zM900 100h-200v200h200v-200z" />
<glyph unicode="&#xe157;" d="M400 1100h300q162 0 281 -118.5t119 -281.5v-300q0 -165 -118.5 -282.5t-281.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5v300q0 165 117.5 282.5t282.5 117.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5 t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5z" />
<glyph unicode="&#xe158;" d="M700 0h-300q-163 0 -281.5 117.5t-118.5 282.5v300q0 163 119 281.5t281 118.5h300q165 0 282.5 -117.5t117.5 -282.5v-300q0 -165 -117.5 -282.5t-282.5 -117.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5 t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5zM400 800v-500l333 250z" />
<glyph unicode="&#xe159;" d="M0 400v300q0 163 117.5 281.5t282.5 118.5h300q163 0 281.5 -119t118.5 -281v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-300q-165 0 -282.5 117.5t-117.5 282.5zM900 300v500q0 41 -29.5 70.5t-70.5 29.5h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5 t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5zM800 700h-500l250 -333z" />
<glyph unicode="&#xe160;" d="M1100 700v-300q0 -162 -118.5 -281t-281.5 -119h-300q-165 0 -282.5 118.5t-117.5 281.5v300q0 165 117.5 282.5t282.5 117.5h300q165 0 282.5 -117.5t117.5 -282.5zM900 300v500q0 41 -29.5 70.5t-70.5 29.5h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5 t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5zM550 733l-250 -333h500z" />
<glyph unicode="&#xe161;" d="M500 1100h400q165 0 282.5 -117.5t117.5 -282.5v-300q0 -165 -117.5 -282.5t-282.5 -117.5h-400v200h500q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-500v200zM700 550l-400 -350v200h-300v300h300v200z" />
<glyph unicode="&#xe162;" d="M403 2l9 -1q13 0 26 16l538 630q15 19 6 36q-8 18 -32 16h-300q1 4 78 219.5t79 227.5q2 17 -6 27l-8 8h-9q-16 0 -25 -15q-4 -5 -98.5 -111.5t-228 -257t-209.5 -238.5q-17 -19 -7 -40q10 -19 32 -19h302q-155 -438 -160 -458q-5 -21 4 -32z" />
<glyph unicode="&#xe163;" d="M800 200h-500q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5h500v185q-14 4 -114 7.5t-193 5.5l-93 2q-165 0 -282.5 -117.5t-117.5 -282.5v-300q0 -165 117.5 -282.5t282.5 -117.5h300q47 0 100 15v185zM900 200v200h-300v300h300v200l400 -350z" />
<glyph unicode="&#xe164;" d="M1200 700l-149 149l-342 -353l-213 213l353 342l-149 149h500v-500zM1022 571l-122 -123v-148q0 -41 -29.5 -70.5t-70.5 -29.5h-500q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5h156l118 122l-74 78h-100q-165 0 -282.5 -117.5t-117.5 -282.5v-300 q0 -165 117.5 -282.5t282.5 -117.5h300q163 0 281.5 117.5t118.5 282.5v98z" />
<glyph unicode="&#xe165;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM600 1014q-171 0 -292.5 -121.5t-121.5 -292.5t121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5zM600 794 q80 0 137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137t57 137t137 57z" />
<glyph unicode="&#xe166;" d="M700 800v400h-300v-400h-300l445 -500l450 500h-295zM25 300h1048q11 0 19 -7.5t8 -17.5v-275h-1100v275q0 11 7 18t18 7zM1000 200h-100v-50h100v50z" />
<glyph unicode="&#xe167;" d="M400 700v-300h300v300h295l-445 500l-450 -500h300zM25 300h1048q11 0 19 -7.5t8 -17.5v-275h-1100v275q0 11 7 18t18 7zM1000 200h-100v-50h100v50z" />
<glyph unicode="&#xe168;" d="M405 400l596 596l-154 155l-442 -442l-150 151l-155 -155zM25 300h1048q11 0 19 -7.5t8 -17.5v-275h-1100v275q0 11 7 18t18 7zM1000 200h-100v-50h100v50z" />
<glyph unicode="&#xe169;" d="M409 1103l-97 97l-212 -212l97 -98zM650 861l-149 149l-212 -212l149 -149l-238 -248h700v699zM25 300h1048q11 0 19 -7.5t8 -17.5v-275h-1100v275q0 11 7 18t18 7zM1000 200h-100v-50h100v50z" />
<glyph unicode="&#xe170;" d="M539 950l-149 -149l212 -212l149 148l248 -237v700h-699zM297 709l-97 -97l212 -212l98 97zM25 300h1048q11 0 19 -7.5t8 -17.5v-275h-1100v275q0 11 7 18t18 7zM1000 200h-100v-50h100v50z" />
<glyph unicode="&#xe171;" d="M1200 1199v-1079l-475 272l-310 -393v416h-392zM1166 1148l-672 -712v-226z" />
<glyph unicode="&#xe172;" d="M1100 1000v-850q0 -21 -15 -35.5t-35 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1200h-100v-200h100v200z" />
<glyph unicode="&#xe173;" d="M578 500h-378v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-218l-276 -275l-120 120zM700 1200h-100v-200h100v200zM1300 538l-475 -476l-244 244l123 123l120 -120l353 352z" />
<glyph unicode="&#xe174;" d="M529 500h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-269l-103 -103l-170 170zM700 1200h-100v-200h100v200zM1167 6l-170 170l-170 -170l-127 127l170 170l-170 170l127 127l170 -170l170 170l127 -128 l-170 -169l170 -170z" />
<glyph unicode="&#xe175;" d="M700 500h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-300h-400v-200zM700 1000h-100v200h100v-200zM1000 600h-200v-300h-200l300 -300l300 300h-200v300z" />
<glyph unicode="&#xe176;" d="M602 500h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100l200 -200v-402l-200 200zM700 1000h-100v200h100v-200zM1000 300h200l-300 300l-300 -300h200v-300h200v300z" />
<glyph unicode="&#xe177;" d="M1200 900v150q0 21 -14.5 35.5t-35.5 14.5h-1100q-21 0 -35.5 -14.5t-14.5 -35.5v-150h1200zM0 800v-550q0 -21 14.5 -35.5t35.5 -14.5h1100q21 0 35.5 14.5t14.5 35.5v550h-1200zM100 500h400v-200h-400v200z" />
<glyph unicode="&#xe178;" d="M500 1000h400v198l300 -298l-300 -298v198h-400v200zM100 800v200h100v-200h-100zM400 800h-100v200h100v-200zM700 300h-400v-198l-300 298l300 298v-198h400v-200zM800 500h100v-200h-100v200zM1000 500v-200h100v200h-100z" />
<glyph unicode="&#xe179;" d="M1200 50v1106q0 31 -18 40.5t-44 -7.5l-276 -117q-25 -16 -43.5 -50.5t-18.5 -65.5v-359q0 -29 10.5 -55.5t25 -43t29 -28.5t25.5 -18l10 -5v-397q0 -21 14.5 -35.5t35.5 -14.5h200q21 0 35.5 14.5t14.5 35.5zM550 1200l50 -100v-400l-100 -203v-447q0 -21 -14.5 -35.5 t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447l-100 203v400l50 100l50 -100v-300h100v300l50 100l50 -100v-300h100v300z" />
<glyph unicode="&#xe180;" d="M1100 106v888q0 22 25 34.5t50 13.5l25 2v56h-400v-56q75 0 87.5 -6t12.5 -44v-394h-500v394q0 38 12.5 44t87.5 6v56h-400v-56q4 0 11 -0.5t24 -3t30 -7t24 -15t11 -24.5v-888q0 -22 -25 -34.5t-50 -13.5l-25 -2v-56h400v56q-75 0 -87.5 6t-12.5 44v394h500v-394 q0 -38 -12.5 -44t-87.5 -6v-56h400v56q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5z" />
<glyph unicode="&#xe181;" d="M675 1000l-100 100h-375l-100 -100h400l200 -200v-98l295 98h105v200h-425zM500 300v500q0 41 -29.5 70.5t-70.5 29.5h-300q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h300q41 0 70.5 29.5t29.5 70.5zM100 800h300v-200h-300v200zM700 565l400 133 v-163l-400 -133v163zM100 500h300v-200h-300v200zM805 300l295 98v-298h-425l-100 -100h-375l-100 100h400l200 200h105z" />
<glyph unicode="&#xe182;" d="M179 1169l-162 -162q-1 -11 -0.5 -32.5t16 -90t46.5 -140t104 -177.5t175 -208q103 -103 207.5 -176t180 -103.5t137 -47t92.5 -16.5l31 1l163 162q16 17 13 40.5t-22 37.5l-192 136q-19 14 -45 12t-42 -19l-119 -118q-143 103 -267 227q-126 126 -227 268l118 118 q17 17 20 41.5t-11 44.5l-139 194q-14 19 -36.5 22t-40.5 -14z" />
<glyph unicode="&#xe183;" d="M1200 712v200q-6 8 -19 20.5t-63 45t-112 57t-171 45t-235 20.5q-92 0 -175 -10.5t-141.5 -27t-108.5 -36.5t-81.5 -40t-53.5 -36.5t-31 -27.5l-9 -10v-200q0 -21 14.5 -33.5t34.5 -8.5l202 33q20 4 34.5 21t14.5 38v146q141 24 300 24t300 -24v-146q0 -21 14.5 -38 t34.5 -21l202 -33q20 -4 34.5 8.5t14.5 33.5zM800 650l365 -303q14 -14 24.5 -39.5t10.5 -45.5v-212q0 -21 -15 -35.5t-35 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v212q0 20 10.5 45.5t24.5 39.5l365 303v50q0 4 1 10.5t12 22.5t30 28.5t60 23t97 10.5t97 -10t60 -23.5 t30 -27.5t12 -24l1 -10v-50z" />
<glyph unicode="&#xe184;" d="M175 200h950l-125 150v250l100 100v400h-100v-200h-100v200h-200v-200h-100v200h-200v-200h-100v200h-100v-400l100 -100v-250zM1200 100v-100h-1100v100h1100z" />
<glyph unicode="&#xe185;" d="M600 1100h100q41 0 70.5 -29.5t29.5 -70.5v-1000h-300v1000q0 41 29.5 70.5t70.5 29.5zM1000 800h100q41 0 70.5 -29.5t29.5 -70.5v-700h-300v700q0 41 29.5 70.5t70.5 29.5zM400 0v400q0 41 -29.5 70.5t-70.5 29.5h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-400h300z" />
<glyph unicode="&#xe186;" d="M1200 800v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212zM1000 900h-900v-700h900v700zM200 800v-300h200v-100h-200v-100h300v300h-200v100h200v100h-300zM800 800h-200v-500h200v100h100v300h-100 v100zM800 700v-300h-100v300h100z" />
<glyph unicode="&#xe187;" d="M1200 800v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212zM1000 900h-900v-700h900v700zM400 600h-100v200h-100v-500h100v200h100v-200h100v500h-100v-200zM800 800h-200v-500h200v100h100v300h-100 v100zM800 700v-300h-100v300h100z" />
<glyph unicode="&#xe188;" d="M1200 800v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212zM1000 900h-900v-700h900v700zM200 800v-500h300v100h-200v300h200v100h-300zM600 800v-500h300v100h-200v300h200v100h-300z" />
<glyph unicode="&#xe189;" d="M1200 800v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212zM1000 900h-900v-700h900v700zM500 700l-300 -150l300 -150v300zM600 400l300 150l-300 150v-300z" />
<glyph unicode="&#xe190;" d="M1200 800v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212zM1000 900h-900v-700h900v700zM900 800v-500h-700v500h700zM300 400h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130v-300zM800 700h-130 q-38 0 -66.5 -43t-28.5 -108t27 -107t68 -42h130v300z" />
<glyph unicode="&#xe191;" d="M1200 800v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212zM1000 900h-900v-700h900v700zM200 800v-300h200v-100h-200v-100h300v300h-200v100h200v100h-300zM800 300h100v500h-200v-100h100v-400z M601 300h100v100h-100v-100z" />
<glyph unicode="&#xe192;" d="M1200 800v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88h700q124 0 212 -88t88 -212zM1000 900h-900v-700h900v700zM300 700v100h-100v-500h300v400h-200zM800 300h100v500h-200v-100h100v-400zM401 400h-100v200h100v-200z M601 300h100v100h-100v-100z" />
<glyph unicode="&#xe193;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM1000 900h-900v-700h900v700zM400 700h-200v100h300v-300h-99v-100h-100v100h99v200zM800 700h-100v100h200v-500h-100v400zM201 400h100v-100 h-100v100zM701 300h-100v100h100v-100z" />
<glyph unicode="&#xe194;" d="M600 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM600 1014q-171 0 -292.5 -121.5t-121.5 -292.5t121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5zM800 700h-300 v-200h300v-100h-300l-100 100v200l100 100h300v-100z" />
<glyph unicode="&#xe195;" d="M596 1196q162 0 299 -80t217 -217t80 -299t-80 -299t-217 -217t-299 -80t-299 80t-217 217t-80 299t80 299t217 217t299 80zM596 1014q-171 0 -292.5 -121.5t-121.5 -292.5t121.5 -292.5t292.5 -121.5t292.5 121.5t121.5 292.5t-121.5 292.5t-292.5 121.5zM800 700v-100 h-100v100h-200v-100h200v-100h-200v-100h-100v400h300zM800 400h-100v100h100v-100z" />
<glyph unicode="&#xe197;" d="M800 300h128q120 0 205 86t85 208q0 120 -85 206.5t-205 86.5q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5q0 -80 56.5 -137t135.5 -57h222v300h400v-300zM700 200h200l-300 -300 l-300 300h200v300h200v-300z" />
<glyph unicode="&#xe198;" d="M600 714l403 -403q94 26 154.5 104t60.5 178q0 121 -85 207.5t-205 86.5q-46 0 -90 -14q-44 97 -134.5 156.5t-200.5 59.5q-152 0 -260 -107.5t-108 -260.5q0 -25 2 -37q-66 -14 -108.5 -67.5t-42.5 -122.5q0 -80 56.5 -137t135.5 -57h8zM700 -100h-200v300h-200l300 300 l300 -300h-200v-300z" />
<glyph unicode="&#xe199;" d="M700 200h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170l-270 -300h400v-155l-75 -45h350l-75 45v155z" />
<glyph unicode="&#xe200;" d="M700 45v306q46 -30 100 -30q74 0 126.5 52.5t52.5 126.5q0 24 -9 55q50 32 79.5 83t29.5 112q0 90 -61.5 155.5t-150.5 71.5q-26 89 -99.5 145.5t-167.5 56.5q-116 0 -197.5 -81.5t-81.5 -197.5q0 -4 1 -12t1 -11q-14 2 -23 2q-74 0 -126.5 -52.5t-52.5 -126.5 q0 -53 28.5 -97t75.5 -65q-4 -16 -4 -38q0 -74 52.5 -126.5t126.5 -52.5q56 0 100 30v-306l-75 -45h350z" />
<glyph unicode="&#x1f4bc;" d="M800 1000h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5h200q41 0 70.5 -29.5t29.5 -70.5v-100zM500 1000h200v100h-200v-100zM1200 400v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v200h1200z" />
<glyph unicode="&#x1f4c5;" d="M1100 900v150q0 21 -14.5 35.5t-35.5 14.5h-150v100h-100v-100h-500v100h-100v-100h-150q-21 0 -35.5 -14.5t-14.5 -35.5v-150h1100zM0 800v-750q0 -20 14.5 -35t35.5 -15h1000q21 0 35.5 15t14.5 35v750h-1100zM100 600h100v-100h-100v100zM300 600h100v-100h-100v100z M500 600h100v-100h-100v100zM700 600h100v-100h-100v100zM900 600h100v-100h-100v100zM100 400h100v-100h-100v100zM300 400h100v-100h-100v100zM500 400h100v-100h-100v100zM700 400h100v-100h-100v100zM900 400h100v-100h-100v100zM100 200h100v-100h-100v100zM300 200 h100v-100h-100v100zM500 200h100v-100h-100v100zM700 200h100v-100h-100v100zM900 200h100v-100h-100v100z" />
<glyph unicode="&#x1f4cc;" d="M902 1185l283 -282q15 -15 15 -36t-15 -35q-14 -15 -35 -15t-35 15l-36 35l-279 -267v-300l-212 210l-208 -207l-380 -303l303 380l207 208l-210 212h300l267 279l-35 36q-15 14 -15 35t15 35q14 15 35 15t35 -15z" />
<glyph unicode="&#x1f4ce;" d="M518 119l69 -60l517 511q67 67 95 157t11 183q-16 87 -67 154t-130 103q-69 33 -152 33q-107 0 -197 -55q-40 -24 -111 -95l-512 -512q-68 -68 -81 -163t35 -173q35 -57 94 -89t129 -32q63 0 119 28q33 16 65 40.5t52.5 45.5t59.5 64q40 44 57 61l394 394q35 35 47 84 t-3 96q-27 87 -117 104q-20 2 -29 2q-46 0 -79.5 -17t-67.5 -51l-388 -396l-7 -7l69 -67l377 373q20 22 39 38q23 23 50 23q38 0 53 -36q16 -39 -20 -75l-547 -547q-52 -52 -125 -52q-55 0 -100 33t-54 96q-5 35 2.5 66t31.5 63t42 50t56 54q24 21 44 41l348 348 q52 52 82.5 79.5t84 54t107.5 26.5q25 0 48 -4q95 -17 154 -94.5t51 -175.5q-7 -101 -98 -192l-252 -249l-253 -256z" />
<glyph unicode="&#x1f4f7;" d="M1200 200v600q0 41 -29.5 70.5t-70.5 29.5h-150q-4 8 -11.5 21.5t-33 48t-53 61t-69 48t-83.5 21.5h-200q-41 0 -82 -20.5t-70 -50t-52 -59t-34 -50.5l-12 -20h-150q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5z M1000 700h-100v100h100v-100zM844 500q0 -100 -72 -172t-172 -72t-172 72t-72 172t72 172t172 72t172 -72t72 -172zM706 500q0 44 -31 75t-75 31t-75 -31t-31 -75t31 -75t75 -31t75 31t31 75z" />
<glyph unicode="&#x1f512;" d="M900 800h100q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-900q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h100v200q0 82 59 141t141 59h300q82 0 141 -59t59 -141v-200zM400 800h300v150q0 21 -14.5 35.5t-35.5 14.5h-200 q-21 0 -35.5 -14.5t-14.5 -35.5v-150z" />
<glyph unicode="&#x1f514;" d="M1062 400h17q20 0 33.5 -14.5t13.5 -35.5q0 -20 -13 -40t-31 -27q-22 -9 -63 -23t-167.5 -37t-251.5 -23t-245.5 20.5t-178.5 41.5l-58 20q-18 7 -31 27.5t-13 40.5q0 21 13.5 35.5t33.5 14.5h17l118 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3 32t29 13h94 q20 0 29 -10.5t3 -29.5l-18 -37q83 -19 144 -82.5t76 -140.5l63 -327zM600 104q-54 0 -103 6q12 -49 40 -79.5t63 -30.5t63 30.5t39 79.5q-48 -6 -102 -6z" />
<glyph unicode="&#x1f516;" d="M200 0l450 444l450 -443v1150q0 20 -14.5 35t-35.5 15h-800q-21 0 -35.5 -15t-14.5 -35v-1151z" />
<glyph unicode="&#x1f525;" d="M400 755q2 -12 8 -41.5t8 -43t6 -39.5t3.5 -39.5t-1 -33.5t-6 -31.5t-13.5 -24t-21 -20.5t-31 -12q-38 -10 -67 13t-40.5 61.5t-15 81.5t10.5 75q-52 -46 -83.5 -101t-39 -107t-7.5 -85t5 -63q9 -56 44 -119.5t105 -108.5q31 -21 64 -16t62 23.5t57 49.5t48 61.5t35 60.5 q32 66 39 184.5t-13 157.5q79 -80 122 -164t26 -184q-5 -33 -20.5 -69.5t-37.5 -80.5q-10 -19 -14.5 -29t-12 -26t-9 -23.5t-3 -19t2.5 -15.5t11 -9.5t19.5 -5t30.5 2.5t42 8q57 20 91 34t87.5 44.5t87 64t65.5 88.5t47 122q38 172 -44.5 341.5t-246.5 278.5q22 -44 43 -129 q39 -159 -32 -154q-15 2 -33 9q-79 33 -120.5 100t-44 175.5t48.5 257.5q-13 -8 -34 -23.5t-72.5 -66.5t-88.5 -105.5t-60 -138t-8 -166.5z" />
<glyph unicode="&#x1f527;" d="M948 778l251 126q13 -175 -151 -267q-123 -70 -253 -23l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5t15 37.5l600 599q-33 101 6 201.5t135 154.5q164 92 306 -9l-259 -138z" />
</font>
</defs></svg>

Before

Width:  |  Height:  |  Size: 62 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,130 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Change Log</title>
</head>
<body bgcolor="white">
<a style="float:right" href="README.html">README</a>
<h1>Known Issues</h1>
<ul>
<li>Perl formatting is really crappy. Partly because the author is lazy and
partly because Perl is
<a href="http://www.perlmonks.org/?node_id=663393">hard</a> to parse.
<li>On some browsers, <code>&lt;code&gt;</code> elements with newlines in the text
which use CSS to specify <code>white-space:pre</code> will have the newlines
improperly stripped if the element is not attached to the document at the time
the stripping is done. Also, on IE 6, all newlines will be stripped from
<code>&lt;code&gt;</code> elements because of the way IE6 produces
<code>innerHTML</code>. Workaround: use <code>&lt;pre&gt;</code> for code with
newlines.
</ul>
<h1>Change Log</h1>
<h2>29 March 2007</h2>
<ul>
<li>Added <a href="tests/prettify_test.html#PHP">tests</a> for PHP support
to address
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=3"
>issue 3</a>.
<li>Fixed
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=6"
>bug</a>: <code>prettyPrintOne</code> was not halting. This was not
reachable through the normal entry point.
<li>Fixed
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
>bug</a>: recursing into a script block or PHP tag that was not properly
closed would not silently drop the content.
(<a href="tests/prettify_test.html#issue4">test</a>)
<li>Fixed
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=8"
>bug</a>: was eating tabs
(<a href="tests/prettify_test.html#issue8">test</a>)
<li>Fixed entity handling so that the caveat
<blockquote>
<p>Caveats: please properly escape less-thans. <tt>x&amp;lt;y</tt>
instead of <tt>x&lt;y</tt>, and use <tt>&quot;</tt> instead of
<tt>&amp;quot;</tt> for string delimiters.</p>
</blockquote>
is no longer applicable.
<li>Added noisefree's C#
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=4"
>patch</a>
<li>Added a <a href="http://google-code-prettify.googlecode.com/files/prettify-small.zip">distribution</a> that has comments and
whitespace removed to reduce download size from 45.5kB to 12.8kB.
</ul>
<h2>4 Jul 2008</h2>
<ul>
<li>Added <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=17">language specific formatters</a> that are triggered by the presence
of a <code>lang-&lt;language-file-extension&gt;</code></li>
<li>Fixed <a href="http://code.google.com/p/google-code-prettify/issues/detail?id=29">bug</a>: python handling of <code>'''string'''</code>
<li>Fixed bug: <code>/</code> in regex <code>[charsets] should not end regex</code>
</ul>
<h2>5 Jul 2008</h2>
<ul>
<li>Defined language extensions for Lisp and Lua</code>
</ul>
<h2>14 Jul 2008</h2>
<ul>
<li>Language handlers for F#, OCAML, SQL</code>
<li>Support for <code>nocode</code> spans to allow embedding of line
numbers and code annotations which should not be styled or otherwise
affect the tokenization of prettified code.
See the issue 22
<a href="tests/prettify_test.html#issue22">testcase</a>.</code>
</ul>
<h2>6 Jan 2009</h2>
<ul>
<li>Language handlers for Visual Basic, Haskell, CSS, and WikiText</li>
<li>Added <tt>.mxml</tt> extension to the markup style handler for
Flex <a href="http://en.wikipedia.org/wiki/MXML">MXML files</a>. See
<a
href="http://code.google.com/p/google-code-prettify/issues/detail?id=37"
>issue 37</a>.
<li>Added <tt>.m</tt> extension to the C style handler so that Objective
C source files properly highlight. See
<a
href="http://code.google.com/p/google-code-prettify/issues/detail?id=58"
>issue 58</a>.
<li>Changed HTML lexer to use the same embedded source mechanism as the
wiki language handler, and changed to use the registered
CSS handler for STYLE element content.
</ul>
<h2>21 May 2009</h2>
<ul>
<li>Rewrote to improve performance on large files.
See <a href="http://mikesamuel.blogspot.com/2009/05/efficient-parsing-in-javascript.html">benchmarks</a>.</li>
<li>Fixed bugs with highlighting of Haskell line comments, Lisp
number literals, Lua strings, C preprocessor directives,
newlines in Wiki code on Windows, and newlines in IE6.</li>
</ul>
<h2>14 August 2009</h2>
<ul>
<li>Fixed prettifying of <code>&lt;code&gt;</code> blocks with embedded newlines.
</ul>
<h2>3 October 2009</h2>
<ul>
<li>Fixed prettifying of XML/HTML tags that contain uppercase letters.
</ul>
<h2>19 July 2010</h2>
<ul>
<li>Added support for line numbers. Bug
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=22"
>22</a></li>
<li>Added YAML support. Bug
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=123"
>123</a></li>
<li>Added VHDL support courtesy Le Poussin.</li>
<li>IE performance improvements. Bug
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=102"
>102</a> courtesy jacobly.</li>
<li>A variety of markup formatting fixes courtesy smain and thezbyg.</li>
<li>Fixed copy and paste in IE[678].
<li>Changed output to use <code>&amp;#160;</code> instead of
<code>&amp;nbsp;</code> so that the output works when embedded in XML.
Bug
<a href="http://code.google.com/p/google-code-prettify/issues/detail?id=108"
>108</a>.</li>
</ul>
</body>
</html>

View File

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,203 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Javascript code prettifier</title>
<link href="src/prettify.css" type="text/css" rel="stylesheet" />
<script src="src/prettify.js" type="text/javascript"></script>
<style type="text/css">
body { margin-left: .5in }
h1, h2, h3, h4, .footer { margin-left: -.4in; }
</style>
</head>
<body onload="prettyPrint()" bgcolor="white">
<small style="float: right">Languages : <a href="README-zh-Hans.html">CH</a></small>
<h1>Javascript code prettifier</h1>
<h2>Setup</h2>
<ol>
<li><a href="http://code.google.com/p/google-code-prettify/downloads/list">Download</a> a distribution
<li>Include the script and stylesheets in your document
(you will need to make sure the css and js file are on your server, and
adjust the paths in the <tt>script</tt> and <tt>link</tt> tag)
<pre class="prettyprint">
&lt;link href="prettify.css" type="text/css" rel="stylesheet" />
&lt;script type="text/javascript" src="prettify.js">&lt;/script></pre>
<li>Add <code class="prettyprint lang-html">onload="prettyPrint()"</code> to your
document's body tag.
<li>Modify the stylesheet to get the coloring you prefer</li>
</ol>
<h2>Usage</h2>
<p>Put code snippets in
<tt>&lt;pre class="prettyprint"&gt;...&lt;/pre&gt;</tt>
or <tt>&lt;code class="prettyprint"&gt;...&lt;/code&gt;</tt>
and it will automatically be pretty printed.
<table summary="code examples">
<tr>
<th>The original
<th>Prettier
<tr>
<td><pre style="border: 1px solid #888;padding: 2px"
><a name="voila1"></a>class Voila {
public:
// Voila
static const string VOILA = "Voila";
// will not interfere with embedded <a href="#voila1">tags</a>.
}</pre>
<td><pre class="prettyprint"><a name="voila2"></a>class Voila {
public:
// Voila
static const string VOILA = "Voila";
// will not interfere with embedded <a href="#voila2">tags</a>.
}</pre>
</table>
<h2>FAQ</h2>
<h3 id="langs">Which languages does it work for?</h3>
<p>The comments in <tt>prettify.js</tt> are authoritative but the lexer
should work on a number of languages including C and friends,
Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles.
It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl
and Ruby, but, because of commenting conventions, doesn't work on
Smalltalk, or CAML-like languages.</p>
<p>LISPy languages are supported via an extension:
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lisp.js"
><code>lang-lisp.js</code></a>.</p>
<p>And similarly for
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-css.js"
><code>CSS</code></a>,
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-hs.js"
><code>Haskell</code></a>,
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.js"
><code>Lua</code></a>,
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-ml.js"
><code>OCAML, SML, F#</code></a>,
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vb.js"
><code>Visual Basic</code></a>,
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-sql.js"
><code>SQL</code></a>,
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-proto.js"
><code>Protocol Buffers</code></a>, and
<a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-wiki.js"
><code>WikiText</code></a>..
<p>If you'd like to add an extension for your favorite language, please
look at <tt>src/lang-lisp.js</tt> and file an
<a href="http://code.google.com/p/google-code-prettify/issues/list"
>issue</a> including your language extension, and a testcase.</p>
<h3>How do I specify which language my code is in?</h3>
<p>You don't need to specify the language since <code>prettyprint()</code>
will guess. You can specify a language by specifying the language extension
along with the <code>prettyprint</code> class like so:</p>
<pre class="prettyprint lang-html"
>&lt;pre class=&quot;prettyprint <b>lang-html</b>&quot;&gt;
The lang-* class specifies the language file extensions.
File extensions supported by default include
"bsh", "c", "cc", "cpp", "cs", "csh", "cyc", "cv", "htm", "html",
"java", "js", "m", "mxml", "perl", "pl", "pm", "py", "rb", "sh",
"xhtml", "xml", "xsl".
&lt;/pre&gt;</pre>
<h3>It doesn't work on <tt>&lt;obfuscated code sample&gt;</tt>?</h3>
<p>Yes. Prettifying obfuscated code is like putting lipstick on a pig
&mdash; i.e. outside the scope of this tool.</p>
<h3>Which browsers does it work with?</h3>
<p>It's been tested with IE 6, Firefox 1.5 &amp; 2, and Safari 2.0.4.
Look at <a href="tests/prettify_test.html">the test page</a> to see if it
works in your browser.</p>
<h3>What's changed?</h3>
<p>See the <a href="CHANGES.html">change log</a></p>
<h3>Why doesn't Prettyprinting of strings work on WordPress?</h3>
<p>Apparently wordpress does "smart quoting" which changes close quotes.
This causes end quotes to not match up with open quotes.
<p>This breaks prettifying as well as copying and pasting of code samples.
See
<a href="http://wordpress.org/support/topic/125038"
>WordPress's help center</a> for info on how to stop smart quoting of code
snippets.</p>
<h3 id="linenums">How do I put line numbers in my code?</h3>
<p>You can use the <code>linenums</code> class to turn on line
numbering. If your code doesn't start at line number 1, you can
add a colon and a line number to the end of that class as in
<code>linenums:52</code>.
<p>For example
<pre class="prettyprint">&lt;pre class="prettyprint linenums:<b>4</b>"
&gt;// This is line 4.
foo();
bar();
baz();
boo();
far();
faz();
&lt;pre&gt;</pre>
produces
<pre class="prettyprint linenums:4"
>// This is line 4.
foo();
bar();
baz();
boo();
far();
faz();
</pre>
<h3>How do I prevent a portion of markup from being marked as code?</h3>
<p>You can use the <code>nocode</code> class to identify a span of markup
that is not code.
<pre class="prettyprint">&lt;pre class=prettyprint&gt;
int x = foo(); /* This is a comment &lt;span class="nocode"&gt;This is not code&lt;/span&gt;
Continuation of comment */
int y = bar();
&lt;/pre&gt;</pre>
produces
<pre class="prettyprint">
int x = foo(); /* This is a comment <span class="nocode">This is not code</span>
Continuation of comment */
int y = bar();
</pre>
<p>For a more complete example see the issue22
<a href="tests/prettify_test.html#issue22">testcase</a>.</p>
<h3>I get an error message "a is not a function" or "opt_whenDone is not a function"</h3>
<p>If you are calling <code>prettyPrint</code> via an event handler, wrap it in a function.
Instead of doing
<blockquote>
<code class="prettyprint lang-js"
>addEventListener('load', prettyPrint, false);</code>
</blockquote>
wrap it in a closure like
<blockquote>
<code class="prettyprint lang-js"
>addEventListener('load', function (event) { prettyPrint() }, false);</code>
</blockquote>
so that the browser does not pass an event object to <code>prettyPrint</code> which
will confuse it.
<br><br><br>
<div class="footer">
<!-- Created: Tue Oct 3 17:51:56 PDT 2006 -->
<!-- hhmts start -->
Last modified: Wed Jul 19 13:56:00 PST 2010
<!-- hhmts end -->
</div>
</body>
</html>

View File

@ -1 +0,0 @@
.com {color: #93a1a1;}.lit{ color: #195f91;}.pun,.opn,.clo { color: #93a1a1;}.fun { color: #dc322f;}.str,.atv {color: #D14;}.kwd, .prettyprint .tag { color: #1e347b; }.typ, .atn, .dec, .var { color: teal; }.pln { color: #48484c; }.prettyprint {padding: 8px;background-color: #f7f7f9;border: 1px solid #e1e1e8;}.prettyprint.linenums {-webkit-box-shadow: inset 45px 0 0 #fbfbfc, inset 46px 0 0 #ececf0;-moz-box-shadow: inset 45px 0 0 #fbfbfc, inset 46px 0 0 #ececf0;box-shadow: inset 45px 0 0 #fbfbfc, inset 46px 0 0 #ececf0;}ol.linenums {margin: 0 0 0 43px;}ol.linenums li {padding-left: 12px;color: #bebec5;line-height: 20px;text-shadow: 0 1px 0 #fff;}

View File

@ -1,28 +0,0 @@
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a=
[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c<
f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&&
(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r=
{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.length,
t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(typeof b===
"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m),
l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,
q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/,
q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g,
"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a),
a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e}
for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttribute("value",
m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a){var m=
a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue=
j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],
"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+
I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),
["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",
/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),
["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b=
!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?setTimeout(m,
250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",
PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();

File diff suppressed because it is too large Load Diff

View File

@ -1,223 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ConnectionPool - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>ConnectionPool <small>Class</small></h1>
<small class="foundat">
Defined in: <a href="../files/src_lib_connection_pool.js.html#l1"><code>src&#x2F;lib&#x2F;connection_pool.js:1</code></a>
</small>
</div>
<div class="well">
<p>Manager of connections to a node(s), capable of ensuring that connections are clear and living
before providing them to the application</p>
</div>
<div class="constructor">
<h2>Constructor</h2>
<div id="method_ConnectionPool" class="method item">
<h3 class="name">
<code>
ConnectionPool
<small>([config={}])</small>
</code>
</h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_lib_connection_pool.js.html#l1"><code>src&#x2F;lib&#x2F;connection_pool.js:1</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<table>
<tr>
<td>
<code>
[config]
</code>
</td>
<td>
<span class="type">Object</span>
</td>
<td class="param-description">
<ul>
<li>an object describing the configuration for the ConnectionPool</li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</div>
<div>
<div id="index" class="pill">
<h2 class="off-left">Index</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,222 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loggers.File - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>Loggers.File <small>Class</small></h1>
<small class="foundat">
Defined in: <a href="../files/src_lib_loggers_file.js.html#l1"><code>src&#x2F;lib&#x2F;loggers&#x2F;file.js:1</code></a>
</small>
</div>
<div class="well">
<p>Logger that writes to a file</p>
</div>
<div class="constructor">
<h2>Constructor</h2>
<div id="method_Loggers.File" class="method item">
<h3 class="name">
<code>
Loggers.File
<small>(config)</small>
</code>
</h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_lib_loggers_file.js.html#l1"><code>src&#x2F;lib&#x2F;loggers&#x2F;file.js:1</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<table>
<tr>
<td>
<code>
config
</code>
</td>
<td>
<span class="type">Object</span>
</td>
<td class="param-description">
<ul>
<li>Configuration for the FileLogger object</li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</div>
<div>
<div id="index" class="pill">
<h2 class="off-left">Index</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -1,244 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Loggers.Stream - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>Loggers.Stream <small>Class</small></h1>
<small class="foundat">
Defined in: <a href="../files/src_lib_loggers_stream.js.html#l1"><code>src&#x2F;lib&#x2F;loggers&#x2F;stream.js:1</code></a>
</small>
</div>
<div class="well">
<p>A logger object, which listens to the LogBridge for logging events based on it&#39;s config. This
logger writes it logs to any <a href="http://nodejs.org/api/stream.html#stream_class_stream_writable_1">WriteableStream</a>.</p>
</div>
<div class="constructor">
<h2>Constructor</h2>
<div id="method_Loggers.Stream" class="method item">
<h3 class="name">
<code>
Loggers.Stream
<small>(config, logBridge)</small>
</code>
</h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_lib_loggers_stream.js.html#l1"><code>src&#x2F;lib&#x2F;loggers&#x2F;stream.js:1</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<table>
<tr>
<td>
<code>
config
</code>
</td>
<td>
<span class="type">Object</span>
</td>
<td class="param-description">
<ul>
<li>A hash of the config options</li>
</ul>
</td>
</tr>
<tr>
<td>
<code>
logBridge
</code>
</td>
<td>
<span class="type"><a href="../classes/Log.html" class="crosslink">Log</a></span>
</td>
<td class="param-description">
<ul>
<li>The log bridge that will emit events for each log entry</li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</div>
<div>
<div id="index" class="pill">
<h2 class="off-left">Index</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,136 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NodeHttp - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>NodeHttp <small>Class</small></h1>
<small class="foundat">
Defined in: <a href="../files/src_lib_transports_node_http.js.html#l5"><code>src&#x2F;lib&#x2F;transports&#x2F;node_http.js:5</code></a>
</small>
</div>
<div class="well">
<p>Http transport to use in Node.js</p>
</div>
<div>
<div id="index" class="pill">
<h2 class="off-left">Index</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,346 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transport - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>Transport <small>Class</small></h1>
<small class="foundat">
Defined in: <a href="../files/src_lib_transport.js.html#l21"><code>src&#x2F;lib&#x2F;transport.js:21</code></a>
</small>
</div>
<div class="well">
<p>"Abstract" class responsible for managing connection pools, sniffing for nodes, and serializing/
deserializing requests and ES errors.</p>
</div>
<div class="constructor">
<h2>Constructor</h2>
<div id="method_Transport" class="method item">
<h3 class="name">
<code>
Transport
<small>([config={}])</small>
</code>
</h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_lib_transport.js.html#l21"><code>src&#x2F;lib&#x2F;transport.js:21</code></a>
</p>
</div>
<div class="description">
</div>
<div class="params">
<h4>Parameters:</h4>
<table>
<tr>
<td>
<code>
[config]
</code>
</td>
<td>
<span class="type">Object</span>
</td>
<td class="param-description">
<ul>
<li>An object with configuration parameters</li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</div>
<div>
<div id="index" class="pill">
<h2 class="off-left">Index</h2>
<div class="index-section methods">
<h3>Methods</h3>
<ul class="index-list methods">
<li class="index-item method">
<a href="#method_defaults" data-tabid="#methods" data-tablink="defaults">defaults</a>
<span class="label label-primary">static</span>
</li>
</ul>
</div>
</div>
<div id="methods">
<h2 class="off-left">Methods</h2>
<div id="method_defaults" class="method item">
<h3 class="name">
<code>
defaults
<small>(update)</small>
</code>
</h3>
<span class="returns-inline">
<span class="type">Undefined</span>
</span>
<span class="flag static">static</span>
<div class="meta">
<p>
Defined in
<a href="../files/src_lib_transport.js.html#l49"><code>src&#x2F;lib&#x2F;transport.js:49</code></a>
</p>
</div>
<div class="description">
<p>Modify the defaults for the Transport class</p>
</div>
<div class="params">
<h4>Parameters:</h4>
<table>
<tr>
<td>
<code>
update
</code>
</td>
<td>
<span class="type">Object</span>
</td>
<td class="param-description">
<p>An object representing the changes to be made to the defaults.</p>
</td>
</tr>
</table>
</div>
<div class="returns">
<h4>Returns:</h4>
<div class="returns-description">
<span class="type">Undefined</span>:
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,10 +0,0 @@
<!doctype html>
<html>
<head>
<title>Redirector</title>
<meta http-equiv="refresh" content="0;url=../">
</head>
<body>
<a href="../">Click here to redirect</a>
</body>
</html>

View File

@ -1,194 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jQueryXhr - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>jQueryXhr <small>Class</small></h1>
<small class="foundat">
Defined in: <a href="../files/src_lib_transports_jquery_xhr.js.html#l1"><code>src&#x2F;lib&#x2F;transports&#x2F;jquery_xhr.js:1</code></a>
</small>
</div>
<div class="well">
<p>Transport class for making HTTP requests using jQuery&#39;s ajax methods</p>
</div>
<div class="constructor">
<h2>Constructor</h2>
<div id="method_jQueryXhr" class="method item">
<h3 class="name">
<code>
jQueryXhr
<small>()</small>
</code>
</h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_lib_transports_jquery_xhr.js.html#l1"><code>src&#x2F;lib&#x2F;transports&#x2F;jquery_xhr.js:1</code></a>
</p>
</div>
<div class="description">
</div>
</div>
</div>
<div>
<div id="index" class="pill">
<h2 class="off-left">Index</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +0,0 @@
<!doctype html>
<html>
<head>
<title>Redirector</title>
<meta http-equiv="refresh" content="0;url=../">
</head>
<body>
<a href="../">Click here to redirect</a>
</body>
</html>

View File

@ -1,212 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/bulk.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/bulk.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
var consistencyOptions = [&#x27;one&#x27;, &#x27;quorum&#x27;, &#x27;all&#x27;];
var replicationOptions = [&#x27;sync&#x27;, &#x27;async&#x27;];
/**
* Perform an elasticsearch [bulk](http://elasticsearch.org/guide/reference/api/bulk/) request
*
* @for Client
* @method bulk
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Explicitely set the replication type
* @param {string} params.type - Default document type for items which don&#x27;t provide one
*/
function doBulk(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;PUT&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, PUT&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_bulk&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_bulk&#x27;;
}
else {
request.url = &#x27;/_bulk&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;consistency&#x27;)) {
if (_.contains(consistencyOptions, params.consistency)) {
query.consistency = params.consistency;
} else {
throw new TypeError(
&#x27;Invalid consistency:&#x27; + params.consistency +
&#x27; should be one of &#x27; + consistencyOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;replication&#x27;)) {
if (_.contains(replicationOptions, params.replication)) {
query.replication = params.replication;
} else {
throw new TypeError(
&#x27;Invalid replication:&#x27; + params.replication +
&#x27; should be one of &#x27; + replicationOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.replication = &#x27;sync&#x27;;
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
query.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doBulk;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,133 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/get_settings.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/get_settings.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [cluster.get_settings](http://elasticsearch.org/guide/reference/api/admin-cluster-update-settings/) request
*
* @for Client
* @method cluster.get_settings
* @param {Object} params - An object with parameters used to carry out this action
*/
function doClusterGetSettings(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
// build the url
request.url = &#x27;/_cluster/settings&#x27;;
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterGetSettings;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,233 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/health.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/health.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var levelOptions = [&#x27;cluster&#x27;, &#x27;indices&#x27;, &#x27;shards&#x27;];
var waitForStatusOptions = [&#x27;green&#x27;, &#x27;yellow&#x27;, &#x27;red&#x27;];
/**
* Perform an elasticsearch [cluster.health](http://elasticsearch.org/guide/reference/api/admin-cluster-health/) request
*
* @for Client
* @method cluster.health
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.level=cluster] - Specify the level of detail for returned information
* @param {boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date|Number} params.master_timeout - Explicit operation timeout for connection to master node
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {number} params.wait_for_active_shards - Wait until the specified number of shards is active
* @param {number} params.wait_for_nodes - Wait until the specified number of nodes is available
* @param {number} params.wait_for_relocating_shards - Wait until the specified number of relocating shards is finished
* @param {String} params.wait_for_status - Wait until cluster is in a specific state
*/
function doClusterHealth(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/_cluster/health/&#x27; + url.index + &#x27;&#x27;;
}
else {
request.url = &#x27;/_cluster/health&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;level&#x27;)) {
if (_.contains(levelOptions, params.level)) {
query.level = params.level;
} else {
throw new TypeError(
&#x27;Invalid level:&#x27; + params.level +
&#x27; should be one of &#x27; + levelOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.level = &#x27;cluster&#x27;;
}
if (params.hasOwnProperty(&#x27;local&#x27;)) {
if (params.local.toLowerCase &amp;&amp; (params.local = params.local.toLowerCase())
&amp;&amp; (params.local === &#x27;no&#x27; || params.local === &#x27;off&#x27;)
) {
query.local = false;
} else {
query.local = !!params.local;
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;wait_for_active_shards&#x27;)) {
if (_.isNumeric(params.wait_for_active_shards)) {
query.wait_for_active_shards = params.wait_for_active_shards * 1;
} else {
throw new TypeError(&#x27;Invalid wait_for_active_shards:&#x27; + params.wait_for_active_shards + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;wait_for_nodes&#x27;)) {
if (_.isNumeric(params.wait_for_nodes)) {
query.wait_for_nodes = params.wait_for_nodes * 1;
} else {
throw new TypeError(&#x27;Invalid wait_for_nodes:&#x27; + params.wait_for_nodes + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;wait_for_relocating_shards&#x27;)) {
if (_.isNumeric(params.wait_for_relocating_shards)) {
query.wait_for_relocating_shards = params.wait_for_relocating_shards * 1;
} else {
throw new TypeError(&#x27;Invalid wait_for_relocating_shards:&#x27; + params.wait_for_relocating_shards + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;wait_for_status&#x27;)) {
if (_.contains(waitForStatusOptions, params.wait_for_status)) {
query.wait_for_status = params.wait_for_status;
} else {
throw new TypeError(
&#x27;Invalid wait_for_status:&#x27; + params.wait_for_status +
&#x27; should be one of &#x27; + waitForStatusOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterHealth;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,189 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/node_hot_threads.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/node_hot_threads.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var typeOptions = [&#x27;cpu&#x27;, &#x27;wait&#x27;, &#x27;block&#x27;];
/**
* Perform an elasticsearch [cluster.node_hot_threads](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-hot-threads/) request
*
* @for Client
* @method cluster.node_hot_threads
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.interval - The interval for the second sampling of threads
* @param {number} params.snapshots - Number of samples of thread stacktrace (default: 10)
* @param {number} params.threads - Specify the number of threads to provide information for (default: 3)
* @param {String} params.type - The type to sample (default: cpu)
*/
function doClusterNodeHotThreads(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;node_id&#x27;)) {
if (typeof params.node_id === &#x27;string&#x27;) {
url.node_id = params.node_id;
} else if (_.isArray(params.node_id)) {
url.node_id = params.node_id.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid node_id:&#x27; + params.node_id + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;node_id&#x27;)) {
request.url = &#x27;/_nodes/&#x27; + url.node_id + &#x27;/hotthreads&#x27;;
}
else {
request.url = &#x27;/_nodes/hotthreads&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;interval&#x27;)) {
if (params.interval instanceof Date) {
query.interval = params.interval.getTime();
} else if (_.isNumeric(params.interval)) {
query.interval = params.interval;
} else {
throw new TypeError(&#x27;Invalid interval:&#x27; + params.interval + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;snapshots&#x27;)) {
if (_.isNumeric(params.snapshots)) {
query.snapshots = params.snapshots * 1;
} else {
throw new TypeError(&#x27;Invalid snapshots:&#x27; + params.snapshots + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;threads&#x27;)) {
if (_.isNumeric(params.threads)) {
query.threads = params.threads * 1;
} else {
throw new TypeError(&#x27;Invalid threads:&#x27; + params.threads + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (_.contains(typeOptions, params.type)) {
query.type = params.type;
} else {
throw new TypeError(
&#x27;Invalid type:&#x27; + params.type +
&#x27; should be one of &#x27; + typeOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterNodeHotThreads;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,279 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/node_info.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/node_info.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
//TODO: this enpoint ***needs*** work, many of the possible urls are not supported
/**
* Perform an elasticsearch [cluster.node_info](http://elasticsearch.org/guide/reference/api/admin-cluster-nodes-info/) request
*
* @for Client
* @method cluster.node_info
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.all - Return all available information
* @param {boolean} params.clear - Reset the default settings
* @param {boolean} params.http - Return information about HTTP
* @param {boolean} params.jvm - Return information about the JVM
* @param {boolean} params.network - Return information about network
* @param {boolean} params.os - Return information about the operating system
* @param {boolean} params.plugin - Return information about plugins
* @param {boolean} params.process - Return information about the Elasticsearch process
* @param {boolean} params.settings - Return information about node settings
* @param {boolean} params.thread_pool - Return information about the thread pool
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {boolean} params.transport - Return information about transport
*/
function doClusterNodeInfo(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;node_id&#x27;)) {
if (typeof params.node_id === &#x27;string&#x27;) {
url.node_id = params.node_id;
} else if (_.isArray(params.node_id)) {
url.node_id = params.node_id.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid node_id:&#x27; + params.node_id + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;node_id&#x27;)) {
request.url = &#x27;/_nodes/&#x27; + url.node_id + &#x27;&#x27;;
}
else {
request.url = &#x27;/_nodes&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;all&#x27;)) {
if (params.all.toLowerCase &amp;&amp; (params.all = params.all.toLowerCase())
&amp;&amp; (params.all === &#x27;no&#x27; || params.all === &#x27;off&#x27;)
) {
query.all = false;
} else {
query.all = !!params.all;
}
}
if (params.hasOwnProperty(&#x27;clear&#x27;)) {
if (params.clear.toLowerCase &amp;&amp; (params.clear = params.clear.toLowerCase())
&amp;&amp; (params.clear === &#x27;no&#x27; || params.clear === &#x27;off&#x27;)
) {
query.clear = false;
} else {
query.clear = !!params.clear;
}
}
if (params.hasOwnProperty(&#x27;http&#x27;)) {
if (params.http.toLowerCase &amp;&amp; (params.http = params.http.toLowerCase())
&amp;&amp; (params.http === &#x27;no&#x27; || params.http === &#x27;off&#x27;)
) {
query.http = false;
} else {
query.http = !!params.http;
}
}
if (params.hasOwnProperty(&#x27;jvm&#x27;)) {
if (params.jvm.toLowerCase &amp;&amp; (params.jvm = params.jvm.toLowerCase())
&amp;&amp; (params.jvm === &#x27;no&#x27; || params.jvm === &#x27;off&#x27;)
) {
query.jvm = false;
} else {
query.jvm = !!params.jvm;
}
}
if (params.hasOwnProperty(&#x27;network&#x27;)) {
if (params.network.toLowerCase &amp;&amp; (params.network = params.network.toLowerCase())
&amp;&amp; (params.network === &#x27;no&#x27; || params.network === &#x27;off&#x27;)
) {
query.network = false;
} else {
query.network = !!params.network;
}
}
if (params.hasOwnProperty(&#x27;os&#x27;)) {
if (params.os.toLowerCase &amp;&amp; (params.os = params.os.toLowerCase())
&amp;&amp; (params.os === &#x27;no&#x27; || params.os === &#x27;off&#x27;)
) {
query.os = false;
} else {
query.os = !!params.os;
}
}
if (params.hasOwnProperty(&#x27;plugin&#x27;)) {
if (params.plugin.toLowerCase &amp;&amp; (params.plugin = params.plugin.toLowerCase())
&amp;&amp; (params.plugin === &#x27;no&#x27; || params.plugin === &#x27;off&#x27;)
) {
query.plugin = false;
} else {
query.plugin = !!params.plugin;
}
}
if (params.hasOwnProperty(&#x27;process&#x27;)) {
if (params.process.toLowerCase &amp;&amp; (params.process = params.process.toLowerCase())
&amp;&amp; (params.process === &#x27;no&#x27; || params.process === &#x27;off&#x27;)
) {
query.process = false;
} else {
query.process = !!params.process;
}
}
if (params.hasOwnProperty(&#x27;settings&#x27;)) {
if (params.settings.toLowerCase &amp;&amp; (params.settings = params.settings.toLowerCase())
&amp;&amp; (params.settings === &#x27;no&#x27; || params.settings === &#x27;off&#x27;)
) {
query.settings = false;
} else {
query.settings = !!params.settings;
}
}
if (params.hasOwnProperty(&#x27;thread_pool&#x27;)) {
if (params.thread_pool.toLowerCase &amp;&amp; (params.thread_pool = params.thread_pool.toLowerCase())
&amp;&amp; (params.thread_pool === &#x27;no&#x27; || params.thread_pool === &#x27;off&#x27;)
) {
query.thread_pool = false;
} else {
query.thread_pool = !!params.thread_pool;
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;transport&#x27;)) {
if (params.transport.toLowerCase &amp;&amp; (params.transport = params.transport.toLowerCase())
&amp;&amp; (params.transport === &#x27;no&#x27; || params.transport === &#x27;off&#x27;)
) {
query.transport = false;
} else {
query.transport = !!params.transport;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterNodeInfo;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,168 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/node_shutdown.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/node_shutdown.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [cluster.node_shutdown](http://elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/) request
*
* @for Client
* @method cluster.node_shutdown
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.delay - Set the delay for the operation (default: 1s)
* @param {boolean} params.exit - Exit the JVM as well (default: true)
*/
function doClusterNodeShutdown(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;POST&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;node_id&#x27;)) {
if (typeof params.node_id === &#x27;string&#x27;) {
url.node_id = params.node_id;
} else if (_.isArray(params.node_id)) {
url.node_id = params.node_id.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid node_id:&#x27; + params.node_id + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;node_id&#x27;)) {
request.url = &#x27;/_cluster/nodes/&#x27; + url.node_id + &#x27;/_shutdown&#x27;;
}
else {
request.url = &#x27;/_shutdown&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;delay&#x27;)) {
if (params.delay instanceof Date) {
query.delay = params.delay.getTime();
} else if (_.isNumeric(params.delay)) {
query.delay = params.delay;
} else {
throw new TypeError(&#x27;Invalid delay:&#x27; + params.delay + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;exit&#x27;)) {
if (params.exit.toLowerCase &amp;&amp; (params.exit = params.exit.toLowerCase())
&amp;&amp; (params.exit === &#x27;no&#x27; || params.exit === &#x27;off&#x27;)
) {
query.exit = false;
} else {
query.exit = !!params.exit;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterNodeShutdown;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,313 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/node_stats.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/node_stats.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var metricFamilyOptions = [&#x27;all&#x27;, &#x27;fs&#x27;, &#x27;http&#x27;, &#x27;indices&#x27;, &#x27;jvm&#x27;, &#x27;network&#x27;, &#x27;os&#x27;, &#x27;process&#x27;, &#x27;thread_pool&#x27;, &#x27;transport&#x27;];
var metricOptions = [&#x27;docs&#x27;, &#x27;fielddata&#x27;, &#x27;filter_cache&#x27;, &#x27;flush&#x27;, &#x27;get&#x27;, &#x27;id_cache&#x27;, &#x27;indexing&#x27;, &#x27;merges&#x27;, &#x27;refresh&#x27;, &#x27;search&#x27;, &#x27;store&#x27;, &#x27;warmer&#x27;];
/**
* Perform an elasticsearch [cluster.node_stats](http://elasticsearch.org/guide/reference/api/admin-cluster-nodes-stats/) request
*
* @for Client
* @method cluster.node_stats
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.all - Return all available information
* @param {boolean} params.clear - Reset the default level of detail
* @param {list} params.fields - A comma-separated list of fields for &#x60;fielddata&#x60; metric (supports wildcards)
* @param {boolean} params.fs - Return information about the filesystem
* @param {boolean} params.http - Return information about HTTP
* @param {boolean} params.indices - Return information about indices
* @param {boolean} params.jvm - Return information about the JVM
* @param {boolean} params.network - Return information about network
* @param {boolean} params.os - Return information about the operating system
* @param {boolean} params.process - Return information about the Elasticsearch process
* @param {boolean} params.thread_pool - Return information about the thread pool
* @param {boolean} params.transport - Return information about transport
*/
function doClusterNodeStats(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;fields&#x27;)) {
if (typeof params.fields === &#x27;string&#x27;) {
url.fields = params.fields;
} else if (_.isArray(params.fields)) {
url.fields = params.fields.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid fields:&#x27; + params.fields + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;metric_family&#x27;)) {
if (_.contains(metricFamilyOptions, params.metric_family)) {
url.metric_family = params.metric_family;
} else {
throw new TypeError(
&#x27;Invalid metric_family:&#x27; + params.metric_family +
&#x27; should be one of &#x27; + metricFamilyOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;metric&#x27;)) {
if (_.contains(metricOptions, params.metric)) {
url.metric = params.metric;
} else {
throw new TypeError(
&#x27;Invalid metric:&#x27; + params.metric +
&#x27; should be one of &#x27; + metricOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;node_id&#x27;)) {
if (typeof params.node_id === &#x27;string&#x27;) {
url.node_id = params.node_id;
} else if (_.isArray(params.node_id)) {
url.node_id = params.node_id.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid node_id:&#x27; + params.node_id + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;node_id&#x27;)) {
request.url = &#x27;/_nodes/&#x27; + url.node_id + &#x27;/stats&#x27;;
}
else {
request.url = &#x27;/_nodes/stats&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;all&#x27;)) {
if (params.all.toLowerCase &amp;&amp; (params.all = params.all.toLowerCase())
&amp;&amp; (params.all === &#x27;no&#x27; || params.all === &#x27;off&#x27;)
) {
query.all = false;
} else {
query.all = !!params.all;
}
}
if (params.hasOwnProperty(&#x27;clear&#x27;)) {
if (params.clear.toLowerCase &amp;&amp; (params.clear = params.clear.toLowerCase())
&amp;&amp; (params.clear === &#x27;no&#x27; || params.clear === &#x27;off&#x27;)
) {
query.clear = false;
} else {
query.clear = !!params.clear;
}
}
if (params.hasOwnProperty(&#x27;fields&#x27;)) {
if (typeof params.fields === &#x27;string&#x27;) {
query.fields = params.fields;
} else if (_.isArray(params.fields)) {
query.fields = params.fields.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid fields:&#x27; + params.fields + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;fs&#x27;)) {
if (params.fs.toLowerCase &amp;&amp; (params.fs = params.fs.toLowerCase())
&amp;&amp; (params.fs === &#x27;no&#x27; || params.fs === &#x27;off&#x27;)
) {
query.fs = false;
} else {
query.fs = !!params.fs;
}
}
if (params.hasOwnProperty(&#x27;http&#x27;)) {
if (params.http.toLowerCase &amp;&amp; (params.http = params.http.toLowerCase())
&amp;&amp; (params.http === &#x27;no&#x27; || params.http === &#x27;off&#x27;)
) {
query.http = false;
} else {
query.http = !!params.http;
}
}
if (params.hasOwnProperty(&#x27;indices&#x27;)) {
if (params.indices.toLowerCase &amp;&amp; (params.indices = params.indices.toLowerCase())
&amp;&amp; (params.indices === &#x27;no&#x27; || params.indices === &#x27;off&#x27;)
) {
query.indices = false;
} else {
query.indices = !!params.indices;
}
}
if (params.hasOwnProperty(&#x27;jvm&#x27;)) {
if (params.jvm.toLowerCase &amp;&amp; (params.jvm = params.jvm.toLowerCase())
&amp;&amp; (params.jvm === &#x27;no&#x27; || params.jvm === &#x27;off&#x27;)
) {
query.jvm = false;
} else {
query.jvm = !!params.jvm;
}
}
if (params.hasOwnProperty(&#x27;network&#x27;)) {
if (params.network.toLowerCase &amp;&amp; (params.network = params.network.toLowerCase())
&amp;&amp; (params.network === &#x27;no&#x27; || params.network === &#x27;off&#x27;)
) {
query.network = false;
} else {
query.network = !!params.network;
}
}
if (params.hasOwnProperty(&#x27;os&#x27;)) {
if (params.os.toLowerCase &amp;&amp; (params.os = params.os.toLowerCase())
&amp;&amp; (params.os === &#x27;no&#x27; || params.os === &#x27;off&#x27;)
) {
query.os = false;
} else {
query.os = !!params.os;
}
}
if (params.hasOwnProperty(&#x27;process&#x27;)) {
if (params.process.toLowerCase &amp;&amp; (params.process = params.process.toLowerCase())
&amp;&amp; (params.process === &#x27;no&#x27; || params.process === &#x27;off&#x27;)
) {
query.process = false;
} else {
query.process = !!params.process;
}
}
if (params.hasOwnProperty(&#x27;thread_pool&#x27;)) {
if (params.thread_pool.toLowerCase &amp;&amp; (params.thread_pool = params.thread_pool.toLowerCase())
&amp;&amp; (params.thread_pool === &#x27;no&#x27; || params.thread_pool === &#x27;off&#x27;)
) {
query.thread_pool = false;
} else {
query.thread_pool = !!params.thread_pool;
}
}
if (params.hasOwnProperty(&#x27;transport&#x27;)) {
if (params.transport.toLowerCase &amp;&amp; (params.transport = params.transport.toLowerCase())
&amp;&amp; (params.transport === &#x27;no&#x27; || params.transport === &#x27;off&#x27;)
) {
query.transport = false;
} else {
query.transport = !!params.transport;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterNodeStats;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,133 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/put_settings.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/put_settings.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [cluster.put_settings](http://elasticsearch.org/guide/reference/api/admin-cluster-update-settings/) request
*
* @for Client
* @method cluster.put_settings
* @param {Object} params - An object with parameters used to carry out this action
*/
function doClusterPutSettings(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;PUT&#x27;;
// find the url&#x27;s params
// build the url
request.url = &#x27;/_cluster/settings&#x27;;
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterPutSettings;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,154 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/reroute.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/reroute.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [cluster.reroute](http://elasticsearch.org/guide/reference/api/admin-cluster-reroute/) request
*
* @for Client
* @method cluster.reroute
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.dry_run - Simulate the operation only and return the resulting state
* @param {boolean} params.filter_metadata - Don&#x27;t return cluster state metadata (default: false)
*/
function doClusterReroute(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;POST&#x27;;
// find the url&#x27;s params
// build the url
request.url = &#x27;/_cluster/reroute&#x27;;
// build the query string
if (params.hasOwnProperty(&#x27;dry_run&#x27;)) {
if (params.dry_run.toLowerCase &amp;&amp; (params.dry_run = params.dry_run.toLowerCase())
&amp;&amp; (params.dry_run === &#x27;no&#x27; || params.dry_run === &#x27;off&#x27;)
) {
query.dry_run = false;
} else {
query.dry_run = !!params.dry_run;
}
}
if (params.hasOwnProperty(&#x27;filter_metadata&#x27;)) {
if (params.filter_metadata.toLowerCase &amp;&amp; (params.filter_metadata = params.filter_metadata.toLowerCase())
&amp;&amp; (params.filter_metadata === &#x27;no&#x27; || params.filter_metadata === &#x27;off&#x27;)
) {
query.filter_metadata = false;
} else {
query.filter_metadata = !!params.filter_metadata;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterReroute;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,220 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/cluster/state.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/cluster/state.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [cluster.state](http://elasticsearch.org/guide/reference/api/admin-cluster-state/) request
*
* @for Client
* @method cluster.state
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.filter_blocks - Do not return information about blocks
* @param {boolean} params.filter_index_templates - Do not return information about index templates
* @param {list} params.filter_indices - Limit returned metadata information to specific indices
* @param {boolean} params.filter_metadata - Do not return information about indices metadata
* @param {boolean} params.filter_nodes - Do not return information about nodes
* @param {boolean} params.filter_routing_table - Do not return information about shard allocation (&#x60;routing_table&#x60; and &#x60;routing_nodes&#x60;)
* @param {boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doClusterState(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
// build the url
request.url = &#x27;/_cluster/state&#x27;;
// build the query string
if (params.hasOwnProperty(&#x27;filter_blocks&#x27;)) {
if (params.filter_blocks.toLowerCase &amp;&amp; (params.filter_blocks = params.filter_blocks.toLowerCase())
&amp;&amp; (params.filter_blocks === &#x27;no&#x27; || params.filter_blocks === &#x27;off&#x27;)
) {
query.filter_blocks = false;
} else {
query.filter_blocks = !!params.filter_blocks;
}
}
if (params.hasOwnProperty(&#x27;filter_index_templates&#x27;)) {
if (params.filter_index_templates.toLowerCase &amp;&amp; (params.filter_index_templates = params.filter_index_templates.toLowerCase())
&amp;&amp; (params.filter_index_templates === &#x27;no&#x27; || params.filter_index_templates === &#x27;off&#x27;)
) {
query.filter_index_templates = false;
} else {
query.filter_index_templates = !!params.filter_index_templates;
}
}
if (params.hasOwnProperty(&#x27;filter_indices&#x27;)) {
if (typeof params.filter_indices === &#x27;string&#x27;) {
query.filter_indices = params.filter_indices;
} else if (_.isArray(params.filter_indices)) {
query.filter_indices = params.filter_indices.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid filter_indices:&#x27; + params.filter_indices + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;filter_metadata&#x27;)) {
if (params.filter_metadata.toLowerCase &amp;&amp; (params.filter_metadata = params.filter_metadata.toLowerCase())
&amp;&amp; (params.filter_metadata === &#x27;no&#x27; || params.filter_metadata === &#x27;off&#x27;)
) {
query.filter_metadata = false;
} else {
query.filter_metadata = !!params.filter_metadata;
}
}
if (params.hasOwnProperty(&#x27;filter_nodes&#x27;)) {
if (params.filter_nodes.toLowerCase &amp;&amp; (params.filter_nodes = params.filter_nodes.toLowerCase())
&amp;&amp; (params.filter_nodes === &#x27;no&#x27; || params.filter_nodes === &#x27;off&#x27;)
) {
query.filter_nodes = false;
} else {
query.filter_nodes = !!params.filter_nodes;
}
}
if (params.hasOwnProperty(&#x27;filter_routing_table&#x27;)) {
if (params.filter_routing_table.toLowerCase &amp;&amp; (params.filter_routing_table = params.filter_routing_table.toLowerCase())
&amp;&amp; (params.filter_routing_table === &#x27;no&#x27; || params.filter_routing_table === &#x27;off&#x27;)
) {
query.filter_routing_table = false;
} else {
query.filter_routing_table = !!params.filter_routing_table;
}
}
if (params.hasOwnProperty(&#x27;local&#x27;)) {
if (params.local.toLowerCase &amp;&amp; (params.local = params.local.toLowerCase())
&amp;&amp; (params.local === &#x27;no&#x27; || params.local === &#x27;off&#x27;)
) {
query.local = false;
} else {
query.local = !!params.local;
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doClusterState;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,219 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/count.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/count.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [count](http://elasticsearch.org/guide/reference/api/count/) request
*
* @for Client
* @method count
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {number} params.min_score - Include only documents with a specific &#x60;_score&#x60; value in the result
* @param {string} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {string} params.routing - Specific routing value
* @param {string} params.source - The URL-encoded query definition (instead of using the request body)
*/
function doCount(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;GET&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, GET&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_count&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_count&#x27;;
}
else {
request.url = &#x27;/_count&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;min_score&#x27;)) {
if (_.isNumeric(params.min_score)) {
query.min_score = params.min_score * 1;
} else {
throw new TypeError(&#x27;Invalid min_score:&#x27; + params.min_score + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;preference&#x27;)) {
if (typeof params.preference !== &#x27;object&#x27; &amp;&amp; typeof params.preference !== &#x27;undefined&#x27;) {
query.preference = &#x27;&#x27; + params.preference;
} else {
throw new TypeError(&#x27;Invalid preference:&#x27; + params.preference + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;source&#x27;)) {
if (typeof params.source !== &#x27;object&#x27; &amp;&amp; typeof params.source !== &#x27;undefined&#x27;) {
query.source = &#x27;&#x27; + params.source;
} else {
throw new TypeError(&#x27;Invalid source:&#x27; + params.source + &#x27; should be a string.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doCount;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,296 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/create.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/create.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
var consistencyOptions = [&#x27;one&#x27;, &#x27;quorum&#x27;, &#x27;all&#x27;];
var replicationOptions = [&#x27;sync&#x27;, &#x27;async&#x27;];
var versionTypeOptions = [&#x27;internal&#x27;, &#x27;external&#x27;];
/**
* Perform an elasticsearch [create](http://elasticsearch.org/guide/reference/api/index_/) request
*
* @for Client
* @method create
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {string} params.id - Specific document ID (when the POST method is used)
* @param {string} params.parent - ID of the parent document
* @param {string} params.percolate - Percolator queries to execute while indexing the document
* @param {boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Specific replication type
* @param {string} params.routing - Specific routing value
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.timestamp - Explicit timestamp for the document
* @param {duration} params.ttl - Expiration time for the document
* @param {number} params.version - Explicit version number for concurrency control
* @param {String} params.version_type - Specific version type
*/
function doCreate(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;PUT&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, PUT&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;id&#x27;)) {
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
url.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
}
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;id&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/&#x27; + url.id + &#x27;/_create&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;consistency&#x27;)) {
if (_.contains(consistencyOptions, params.consistency)) {
query.consistency = params.consistency;
} else {
throw new TypeError(
&#x27;Invalid consistency:&#x27; + params.consistency +
&#x27; should be one of &#x27; + consistencyOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;id&#x27;)) {
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
query.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;parent&#x27;)) {
if (typeof params.parent !== &#x27;object&#x27; &amp;&amp; typeof params.parent !== &#x27;undefined&#x27;) {
query.parent = &#x27;&#x27; + params.parent;
} else {
throw new TypeError(&#x27;Invalid parent:&#x27; + params.parent + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;percolate&#x27;)) {
if (typeof params.percolate !== &#x27;object&#x27; &amp;&amp; typeof params.percolate !== &#x27;undefined&#x27;) {
query.percolate = &#x27;&#x27; + params.percolate;
} else {
throw new TypeError(&#x27;Invalid percolate:&#x27; + params.percolate + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;replication&#x27;)) {
if (_.contains(replicationOptions, params.replication)) {
query.replication = params.replication;
} else {
throw new TypeError(
&#x27;Invalid replication:&#x27; + params.replication +
&#x27; should be one of &#x27; + replicationOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.replication = &#x27;sync&#x27;;
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timestamp&#x27;)) {
if (params.timestamp instanceof Date) {
query.timestamp = params.timestamp.getTime();
} else if (_.isNumeric(params.timestamp)) {
query.timestamp = params.timestamp;
} else {
throw new TypeError(&#x27;Invalid timestamp:&#x27; + params.timestamp + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;ttl&#x27;)) {
if (_.isInterval(params.ttl)) {
query.ttl = params.ttl;
} else {
throw new TypeError(&#x27;Invalid ttl:&#x27; + params.ttl + &#x27; should be in interval notation (an integer followed by one of Mwdhmsy).&#x27;);
}
}
if (params.hasOwnProperty(&#x27;version&#x27;)) {
if (_.isNumeric(params.version)) {
query.version = params.version * 1;
} else {
throw new TypeError(&#x27;Invalid version:&#x27; + params.version + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;version_type&#x27;)) {
if (_.contains(versionTypeOptions, params.version_type)) {
query.version_type = params.version_type;
} else {
throw new TypeError(
&#x27;Invalid version_type:&#x27; + params.version_type +
&#x27; should be one of &#x27; + versionTypeOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doCreate;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,245 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/delete.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/delete.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
var consistencyOptions = [&#x27;one&#x27;, &#x27;quorum&#x27;, &#x27;all&#x27;];
var replicationOptions = [&#x27;sync&#x27;, &#x27;async&#x27;];
var versionTypeOptions = [&#x27;internal&#x27;, &#x27;external&#x27;];
/**
* Perform an elasticsearch [delete](http://elasticsearch.org/guide/reference/api/delete/) request
*
* @for Client
* @method delete
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Specific write consistency setting for the operation
* @param {string} params.parent - ID of parent document
* @param {boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Specific replication type
* @param {string} params.routing - Specific routing value
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {number} params.version - Explicit version number for concurrency control
* @param {String} params.version_type - Specific version type
*/
function doDelete(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;DELETE&#x27;;
// find the url&#x27;s params
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
url.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;id&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/&#x27; + url.id + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type, id&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;consistency&#x27;)) {
if (_.contains(consistencyOptions, params.consistency)) {
query.consistency = params.consistency;
} else {
throw new TypeError(
&#x27;Invalid consistency:&#x27; + params.consistency +
&#x27; should be one of &#x27; + consistencyOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;parent&#x27;)) {
if (typeof params.parent !== &#x27;object&#x27; &amp;&amp; typeof params.parent !== &#x27;undefined&#x27;) {
query.parent = &#x27;&#x27; + params.parent;
} else {
throw new TypeError(&#x27;Invalid parent:&#x27; + params.parent + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;replication&#x27;)) {
if (_.contains(replicationOptions, params.replication)) {
query.replication = params.replication;
} else {
throw new TypeError(
&#x27;Invalid replication:&#x27; + params.replication +
&#x27; should be one of &#x27; + replicationOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.replication = &#x27;sync&#x27;;
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;version&#x27;)) {
if (_.isNumeric(params.version)) {
query.version = params.version * 1;
} else {
throw new TypeError(&#x27;Invalid version:&#x27; + params.version + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;version_type&#x27;)) {
if (_.contains(versionTypeOptions, params.version_type)) {
query.version_type = params.version_type;
} else {
throw new TypeError(
&#x27;Invalid version_type:&#x27; + params.version_type +
&#x27; should be one of &#x27; + versionTypeOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doDelete;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,272 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/delete_by_query.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/delete_by_query.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
var consistencyOptions = [&#x27;one&#x27;, &#x27;quorum&#x27;, &#x27;all&#x27;];
var defaultOperatorOptions = [&#x27;AND&#x27;, &#x27;OR&#x27;];
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
var replicationOptions = [&#x27;sync&#x27;, &#x27;async&#x27;];
/**
* Perform an elasticsearch [delete_by_query](http://www.elasticsearch.org/guide/reference/api/delete-by-query/) request
*
* @for Client
* @method delete_by_query
* @param {Object} params - An object with parameters used to carry out this action
* @param {string} params.analyzer - The analyzer to use for the query string
* @param {String} params.consistency - Specific write consistency setting for the operation
* @param {String} [params.default_operator=OR] - The default operator for query string query (AND or OR)
* @param {string} params.df - The field to use as default where no field prefix is given in the query string
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {String} [params.replication=sync] - Specific replication type
* @param {string} params.q - Query in the Lucene query string syntax
* @param {string} params.routing - Specific routing value
* @param {string} params.source - The URL-encoded query definition (instead of using the request body)
* @param {Date|Number} params.timeout - Explicit operation timeout
*/
function doDeleteByQuery(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;DELETE&#x27;;
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_query&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_query&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;analyzer&#x27;)) {
if (typeof params.analyzer !== &#x27;object&#x27; &amp;&amp; typeof params.analyzer !== &#x27;undefined&#x27;) {
query.analyzer = &#x27;&#x27; + params.analyzer;
} else {
throw new TypeError(&#x27;Invalid analyzer:&#x27; + params.analyzer + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;consistency&#x27;)) {
if (_.contains(consistencyOptions, params.consistency)) {
query.consistency = params.consistency;
} else {
throw new TypeError(
&#x27;Invalid consistency:&#x27; + params.consistency +
&#x27; should be one of &#x27; + consistencyOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;default_operator&#x27;)) {
if (_.contains(defaultOperatorOptions, params.default_operator)) {
query.default_operator = params.default_operator;
} else {
throw new TypeError(
&#x27;Invalid default_operator:&#x27; + params.default_operator +
&#x27; should be one of &#x27; + defaultOperatorOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.default_operator = &#x27;OR&#x27;;
}
if (params.hasOwnProperty(&#x27;df&#x27;)) {
if (typeof params.df !== &#x27;object&#x27; &amp;&amp; typeof params.df !== &#x27;undefined&#x27;) {
query.df = &#x27;&#x27; + params.df;
} else {
throw new TypeError(&#x27;Invalid df:&#x27; + params.df + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;replication&#x27;)) {
if (_.contains(replicationOptions, params.replication)) {
query.replication = params.replication;
} else {
throw new TypeError(
&#x27;Invalid replication:&#x27; + params.replication +
&#x27; should be one of &#x27; + replicationOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.replication = &#x27;sync&#x27;;
}
if (params.hasOwnProperty(&#x27;q&#x27;)) {
if (typeof params.q !== &#x27;object&#x27; &amp;&amp; typeof params.q !== &#x27;undefined&#x27;) {
query.q = &#x27;&#x27; + params.q;
} else {
throw new TypeError(&#x27;Invalid q:&#x27; + params.q + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;source&#x27;)) {
if (typeof params.source !== &#x27;object&#x27; &amp;&amp; typeof params.source !== &#x27;undefined&#x27;) {
query.source = &#x27;&#x27; + params.source;
} else {
throw new TypeError(&#x27;Invalid source:&#x27; + params.source + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doDeleteByQuery;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,207 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/exists.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/exists.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
/**
* Perform an elasticsearch [exists](http://elasticsearch.org/guide/reference/api/get/) request
*
* @for Client
* @method exists
* @param {Object} params - An object with parameters used to carry out this action
* @param {string} params.parent - The ID of the parent document
* @param {string} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {boolean} params.realtime - Specify whether to perform the operation in realtime or search mode
* @param {boolean} params.refresh - Refresh the shard containing the document before performing the operation
* @param {string} params.routing - Specific routing value
*/
function doExists(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;HEAD&#x27;;
// find the url&#x27;s params
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
url.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
} else {
url.type = &#x27;_all&#x27;;
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;id&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/&#x27; + url.id + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type, id&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;parent&#x27;)) {
if (typeof params.parent !== &#x27;object&#x27; &amp;&amp; typeof params.parent !== &#x27;undefined&#x27;) {
query.parent = &#x27;&#x27; + params.parent;
} else {
throw new TypeError(&#x27;Invalid parent:&#x27; + params.parent + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;preference&#x27;)) {
if (typeof params.preference !== &#x27;object&#x27; &amp;&amp; typeof params.preference !== &#x27;undefined&#x27;) {
query.preference = &#x27;&#x27; + params.preference;
} else {
throw new TypeError(&#x27;Invalid preference:&#x27; + params.preference + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;realtime&#x27;)) {
if (params.realtime.toLowerCase &amp;&amp; (params.realtime = params.realtime.toLowerCase())
&amp;&amp; (params.realtime === &#x27;no&#x27; || params.realtime === &#x27;off&#x27;)
) {
query.realtime = false;
} else {
query.realtime = !!params.realtime;
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doExists;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,285 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/explain.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/explain.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
var defaultOperatorOptions = [&#x27;AND&#x27;, &#x27;OR&#x27;];
/**
* Perform an elasticsearch [explain](http://elasticsearch.org/guide/reference/api/explain/) request
*
* @for Client
* @method explain
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.analyze_wildcard - Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)
* @param {string} params.analyzer - The analyzer for the query string query
* @param {String} [params.default_operator=OR] - The default operator for query string query (AND or OR)
* @param {string} params.df - The default field for query string query (default: _all)
* @param {list} params.fields - A comma-separated list of fields to return in the response
* @param {boolean} params.lenient - Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
* @param {boolean} params.lowercase_expanded_terms - Specify whether query terms should be lowercased
* @param {string} params.parent - The ID of the parent document
* @param {string} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {string} params.q - Query in the Lucene query string syntax
* @param {string} params.routing - Specific routing value
* @param {string} params.source - The URL-encoded query definition (instead of using the request body)
*/
function doExplain(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;GET&#x27; || param.method === &#x27;POST&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of GET, POST&#x27;);
}
} else {
request.method = &#x27;GET&#x27;;
}
// find the url&#x27;s params
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
url.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;id&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/&#x27; + url.id + &#x27;/_explain&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type, id&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;analyze_wildcard&#x27;)) {
if (params.analyze_wildcard.toLowerCase &amp;&amp; (params.analyze_wildcard = params.analyze_wildcard.toLowerCase())
&amp;&amp; (params.analyze_wildcard === &#x27;no&#x27; || params.analyze_wildcard === &#x27;off&#x27;)
) {
query.analyze_wildcard = false;
} else {
query.analyze_wildcard = !!params.analyze_wildcard;
}
}
if (params.hasOwnProperty(&#x27;analyzer&#x27;)) {
if (typeof params.analyzer !== &#x27;object&#x27; &amp;&amp; typeof params.analyzer !== &#x27;undefined&#x27;) {
query.analyzer = &#x27;&#x27; + params.analyzer;
} else {
throw new TypeError(&#x27;Invalid analyzer:&#x27; + params.analyzer + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;default_operator&#x27;)) {
if (_.contains(defaultOperatorOptions, params.default_operator)) {
query.default_operator = params.default_operator;
} else {
throw new TypeError(
&#x27;Invalid default_operator:&#x27; + params.default_operator +
&#x27; should be one of &#x27; + defaultOperatorOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.default_operator = &#x27;OR&#x27;;
}
if (params.hasOwnProperty(&#x27;df&#x27;)) {
if (typeof params.df !== &#x27;object&#x27; &amp;&amp; typeof params.df !== &#x27;undefined&#x27;) {
query.df = &#x27;&#x27; + params.df;
} else {
throw new TypeError(&#x27;Invalid df:&#x27; + params.df + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;fields&#x27;)) {
if (typeof params.fields === &#x27;string&#x27;) {
query.fields = params.fields;
} else if (_.isArray(params.fields)) {
query.fields = params.fields.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid fields:&#x27; + params.fields + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;lenient&#x27;)) {
if (params.lenient.toLowerCase &amp;&amp; (params.lenient = params.lenient.toLowerCase())
&amp;&amp; (params.lenient === &#x27;no&#x27; || params.lenient === &#x27;off&#x27;)
) {
query.lenient = false;
} else {
query.lenient = !!params.lenient;
}
}
if (params.hasOwnProperty(&#x27;lowercase_expanded_terms&#x27;)) {
if (params.lowercase_expanded_terms.toLowerCase &amp;&amp; (params.lowercase_expanded_terms = params.lowercase_expanded_terms.toLowerCase())
&amp;&amp; (params.lowercase_expanded_terms === &#x27;no&#x27; || params.lowercase_expanded_terms === &#x27;off&#x27;)
) {
query.lowercase_expanded_terms = false;
} else {
query.lowercase_expanded_terms = !!params.lowercase_expanded_terms;
}
}
if (params.hasOwnProperty(&#x27;parent&#x27;)) {
if (typeof params.parent !== &#x27;object&#x27; &amp;&amp; typeof params.parent !== &#x27;undefined&#x27;) {
query.parent = &#x27;&#x27; + params.parent;
} else {
throw new TypeError(&#x27;Invalid parent:&#x27; + params.parent + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;preference&#x27;)) {
if (typeof params.preference !== &#x27;object&#x27; &amp;&amp; typeof params.preference !== &#x27;undefined&#x27;) {
query.preference = &#x27;&#x27; + params.preference;
} else {
throw new TypeError(&#x27;Invalid preference:&#x27; + params.preference + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;q&#x27;)) {
if (typeof params.q !== &#x27;object&#x27; &amp;&amp; typeof params.q !== &#x27;undefined&#x27;) {
query.q = &#x27;&#x27; + params.q;
} else {
throw new TypeError(&#x27;Invalid q:&#x27; + params.q + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;source&#x27;)) {
if (typeof params.source !== &#x27;object&#x27; &amp;&amp; typeof params.source !== &#x27;undefined&#x27;) {
query.source = &#x27;&#x27; + params.source;
} else {
throw new TypeError(&#x27;Invalid source:&#x27; + params.source + &#x27; should be a string.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doExplain;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,218 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/get.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/get.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
/**
* Perform an elasticsearch [get](http://elasticsearch.org/guide/reference/api/get/) request
*
* @for Client
* @method get
* @param {Object} params - An object with parameters used to carry out this action
* @param {list} params.fields - A comma-separated list of fields to return in the response
* @param {string} params.parent - The ID of the parent document
* @param {string} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {boolean} params.realtime - Specify whether to perform the operation in realtime or search mode
* @param {boolean} params.refresh - Refresh the shard containing the document before performing the operation
* @param {string} params.routing - Specific routing value
*/
function doGet(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
url.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
} else {
url.type = &#x27;_all&#x27;;
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;id&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/&#x27; + url.id + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type, id&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;fields&#x27;)) {
if (typeof params.fields === &#x27;string&#x27;) {
query.fields = params.fields;
} else if (_.isArray(params.fields)) {
query.fields = params.fields.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid fields:&#x27; + params.fields + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;parent&#x27;)) {
if (typeof params.parent !== &#x27;object&#x27; &amp;&amp; typeof params.parent !== &#x27;undefined&#x27;) {
query.parent = &#x27;&#x27; + params.parent;
} else {
throw new TypeError(&#x27;Invalid parent:&#x27; + params.parent + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;preference&#x27;)) {
if (typeof params.preference !== &#x27;object&#x27; &amp;&amp; typeof params.preference !== &#x27;undefined&#x27;) {
query.preference = &#x27;&#x27; + params.preference;
} else {
throw new TypeError(&#x27;Invalid preference:&#x27; + params.preference + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;realtime&#x27;)) {
if (params.realtime.toLowerCase &amp;&amp; (params.realtime = params.realtime.toLowerCase())
&amp;&amp; (params.realtime === &#x27;no&#x27; || params.realtime === &#x27;off&#x27;)
) {
query.realtime = false;
} else {
query.realtime = !!params.realtime;
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doGet;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,207 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/get_source.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/get_source.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
/**
* Perform an elasticsearch [get_source](http://elasticsearch.org/guide/reference/api/get/) request
*
* @for Client
* @method get_source
* @param {Object} params - An object with parameters used to carry out this action
* @param {string} params.parent - The ID of the parent document
* @param {string} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {boolean} params.realtime - Specify whether to perform the operation in realtime or search mode
* @param {boolean} params.refresh - Refresh the shard containing the document before performing the operation
* @param {string} params.routing - Specific routing value
*/
function doGetSource(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
url.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
} else {
url.type = &#x27;_all&#x27;;
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;id&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/&#x27; + url.id + &#x27;/_source&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type, id&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;parent&#x27;)) {
if (typeof params.parent !== &#x27;object&#x27; &amp;&amp; typeof params.parent !== &#x27;undefined&#x27;) {
query.parent = &#x27;&#x27; + params.parent;
} else {
throw new TypeError(&#x27;Invalid parent:&#x27; + params.parent + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;preference&#x27;)) {
if (typeof params.preference !== &#x27;object&#x27; &amp;&amp; typeof params.preference !== &#x27;undefined&#x27;) {
query.preference = &#x27;&#x27; + params.preference;
} else {
throw new TypeError(&#x27;Invalid preference:&#x27; + params.preference + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;realtime&#x27;)) {
if (params.realtime.toLowerCase &amp;&amp; (params.realtime = params.realtime.toLowerCase())
&amp;&amp; (params.realtime === &#x27;no&#x27; || params.realtime === &#x27;off&#x27;)
) {
query.realtime = false;
} else {
query.realtime = !!params.realtime;
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doGetSource;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,302 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/index.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/index.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
var consistencyOptions = [&#x27;one&#x27;, &#x27;quorum&#x27;, &#x27;all&#x27;];
var opTypeOptions = [&#x27;index&#x27;, &#x27;create&#x27;];
var replicationOptions = [&#x27;sync&#x27;, &#x27;async&#x27;];
var versionTypeOptions = [&#x27;internal&#x27;, &#x27;external&#x27;];
/**
* Perform an elasticsearch [index](http://elasticsearch.org/guide/reference/api/index_/) request
*
* @for Client
* @method index
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {String} [params.op_type=index] - Explicit operation type
* @param {string} params.parent - ID of the parent document
* @param {string} params.percolate - Percolator queries to execute while indexing the document
* @param {boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Specific replication type
* @param {string} params.routing - Specific routing value
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.timestamp - Explicit timestamp for the document
* @param {duration} params.ttl - Expiration time for the document
* @param {number} params.version - Explicit version number for concurrency control
* @param {String} params.version_type - Specific version type
*/
function doIndex(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;PUT&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, PUT&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;id&#x27;)) {
if (typeof params.id !== &#x27;object&#x27; &amp;&amp; typeof params.id !== &#x27;undefined&#x27;) {
url.id = &#x27;&#x27; + params.id;
} else {
throw new TypeError(&#x27;Invalid id:&#x27; + params.id + &#x27; should be a string.&#x27;);
}
}
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;id&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/&#x27; + url.id + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;consistency&#x27;)) {
if (_.contains(consistencyOptions, params.consistency)) {
query.consistency = params.consistency;
} else {
throw new TypeError(
&#x27;Invalid consistency:&#x27; + params.consistency +
&#x27; should be one of &#x27; + consistencyOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;op_type&#x27;)) {
if (_.contains(opTypeOptions, params.op_type)) {
query.op_type = params.op_type;
} else {
throw new TypeError(
&#x27;Invalid op_type:&#x27; + params.op_type +
&#x27; should be one of &#x27; + opTypeOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.op_type = &#x27;index&#x27;;
}
if (params.hasOwnProperty(&#x27;parent&#x27;)) {
if (typeof params.parent !== &#x27;object&#x27; &amp;&amp; typeof params.parent !== &#x27;undefined&#x27;) {
query.parent = &#x27;&#x27; + params.parent;
} else {
throw new TypeError(&#x27;Invalid parent:&#x27; + params.parent + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;percolate&#x27;)) {
if (typeof params.percolate !== &#x27;object&#x27; &amp;&amp; typeof params.percolate !== &#x27;undefined&#x27;) {
query.percolate = &#x27;&#x27; + params.percolate;
} else {
throw new TypeError(&#x27;Invalid percolate:&#x27; + params.percolate + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;replication&#x27;)) {
if (_.contains(replicationOptions, params.replication)) {
query.replication = params.replication;
} else {
throw new TypeError(
&#x27;Invalid replication:&#x27; + params.replication +
&#x27; should be one of &#x27; + replicationOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.replication = &#x27;sync&#x27;;
}
if (params.hasOwnProperty(&#x27;routing&#x27;)) {
if (typeof params.routing !== &#x27;object&#x27; &amp;&amp; typeof params.routing !== &#x27;undefined&#x27;) {
query.routing = &#x27;&#x27; + params.routing;
} else {
throw new TypeError(&#x27;Invalid routing:&#x27; + params.routing + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timestamp&#x27;)) {
if (params.timestamp instanceof Date) {
query.timestamp = params.timestamp.getTime();
} else if (_.isNumeric(params.timestamp)) {
query.timestamp = params.timestamp;
} else {
throw new TypeError(&#x27;Invalid timestamp:&#x27; + params.timestamp + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;ttl&#x27;)) {
if (_.isInterval(params.ttl)) {
query.ttl = params.ttl;
} else {
throw new TypeError(&#x27;Invalid ttl:&#x27; + params.ttl + &#x27; should be in interval notation (an integer followed by one of Mwdhmsy).&#x27;);
}
}
if (params.hasOwnProperty(&#x27;version&#x27;)) {
if (_.isNumeric(params.version)) {
query.version = params.version * 1;
} else {
throw new TypeError(&#x27;Invalid version:&#x27; + params.version + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;version_type&#x27;)) {
if (_.contains(versionTypeOptions, params.version_type)) {
query.version_type = params.version_type;
} else {
throw new TypeError(
&#x27;Invalid version_type:&#x27; + params.version_type +
&#x27; should be one of &#x27; + versionTypeOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndex;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,235 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/analyze.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/analyze.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var formatOptions = [&#x27;detailed&#x27;, &#x27;text&#x27;];
/**
* Perform an elasticsearch [indices.analyze](http://www.elasticsearch.org/guide/reference/api/admin-indices-analyze/) request
*
* @for Client
* @method indices.analyze
* @param {Object} params - An object with parameters used to carry out this action
* @param {string} params.analyzer - The name of the analyzer to use
* @param {string} params.field - Use the analyzer configured for this field (instead of passing the analyzer name)
* @param {list} params.filters - A comma-separated list of filters to use for the analysis
* @param {string} params.index - The name of the index to scope the operation
* @param {boolean} params.prefer_local - With &#x60;true&#x60;, specify that a local shard should be used if available, with &#x60;false&#x60;, use a random shard (default: true)
* @param {string} params.text - The text on which the analysis should be performed (when request body is not used)
* @param {string} params.tokenizer - The name of the tokenizer to use for the analysis
* @param {String} [params.format=detailed] - Format of the output
*/
function doIndicesAnalyze(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;GET&#x27; || param.method === &#x27;POST&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of GET, POST&#x27;);
}
} else {
request.method = &#x27;GET&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_analyze&#x27;;
}
else {
request.url = &#x27;/_analyze&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;analyzer&#x27;)) {
if (typeof params.analyzer !== &#x27;object&#x27; &amp;&amp; typeof params.analyzer !== &#x27;undefined&#x27;) {
query.analyzer = &#x27;&#x27; + params.analyzer;
} else {
throw new TypeError(&#x27;Invalid analyzer:&#x27; + params.analyzer + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;field&#x27;)) {
if (typeof params.field !== &#x27;object&#x27; &amp;&amp; typeof params.field !== &#x27;undefined&#x27;) {
query.field = &#x27;&#x27; + params.field;
} else {
throw new TypeError(&#x27;Invalid field:&#x27; + params.field + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;filters&#x27;)) {
if (typeof params.filters === &#x27;string&#x27;) {
query.filters = params.filters;
} else if (_.isArray(params.filters)) {
query.filters = params.filters.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid filters:&#x27; + params.filters + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
query.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;prefer_local&#x27;)) {
if (params.prefer_local.toLowerCase &amp;&amp; (params.prefer_local = params.prefer_local.toLowerCase())
&amp;&amp; (params.prefer_local === &#x27;no&#x27; || params.prefer_local === &#x27;off&#x27;)
) {
query.prefer_local = false;
} else {
query.prefer_local = !!params.prefer_local;
}
}
if (params.hasOwnProperty(&#x27;text&#x27;)) {
if (typeof params.text !== &#x27;object&#x27; &amp;&amp; typeof params.text !== &#x27;undefined&#x27;) {
query.text = &#x27;&#x27; + params.text;
} else {
throw new TypeError(&#x27;Invalid text:&#x27; + params.text + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;tokenizer&#x27;)) {
if (typeof params.tokenizer !== &#x27;object&#x27; &amp;&amp; typeof params.tokenizer !== &#x27;undefined&#x27;) {
query.tokenizer = &#x27;&#x27; + params.tokenizer;
} else {
throw new TypeError(&#x27;Invalid tokenizer:&#x27; + params.tokenizer + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;format&#x27;)) {
if (_.contains(formatOptions, params.format)) {
query.format = params.format;
} else {
throw new TypeError(
&#x27;Invalid format:&#x27; + params.format +
&#x27; should be one of &#x27; + formatOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.format = &#x27;detailed&#x27;;
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesAnalyze;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,280 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/clear_cache.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/clear_cache.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.clear_cache](http://www.elasticsearch.org/guide/reference/api/admin-indices-clearcache/) request
*
* @for Client
* @method indices.clear_cache
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.field_data - Clear field data
* @param {boolean} params.fielddata - Clear field data
* @param {list} params.fields - A comma-separated list of fields to clear when using the &#x60;field_data&#x60; parameter (default: all)
* @param {boolean} params.filter - Clear filter caches
* @param {boolean} params.filter_cache - Clear filter caches
* @param {boolean} params.filter_keys - A comma-separated list of keys to clear when using the &#x60;filter_cache&#x60; parameter (default: all)
* @param {boolean} params.id - Clear ID caches for parent/child
* @param {boolean} params.id_cache - Clear ID caches for parent/child
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {list} params.index - A comma-separated list of index name to limit the operation
* @param {boolean} params.recycler - Clear the recycler cache
*/
function doIndicesClearCache(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;GET&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, GET&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_cache/clear&#x27;;
}
else {
request.url = &#x27;/_cache/clear&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;field_data&#x27;)) {
if (params.field_data.toLowerCase &amp;&amp; (params.field_data = params.field_data.toLowerCase())
&amp;&amp; (params.field_data === &#x27;no&#x27; || params.field_data === &#x27;off&#x27;)
) {
query.field_data = false;
} else {
query.field_data = !!params.field_data;
}
}
if (params.hasOwnProperty(&#x27;fielddata&#x27;)) {
if (params.fielddata.toLowerCase &amp;&amp; (params.fielddata = params.fielddata.toLowerCase())
&amp;&amp; (params.fielddata === &#x27;no&#x27; || params.fielddata === &#x27;off&#x27;)
) {
query.fielddata = false;
} else {
query.fielddata = !!params.fielddata;
}
}
if (params.hasOwnProperty(&#x27;fields&#x27;)) {
if (typeof params.fields === &#x27;string&#x27;) {
query.fields = params.fields;
} else if (_.isArray(params.fields)) {
query.fields = params.fields.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid fields:&#x27; + params.fields + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;filter&#x27;)) {
if (params.filter.toLowerCase &amp;&amp; (params.filter = params.filter.toLowerCase())
&amp;&amp; (params.filter === &#x27;no&#x27; || params.filter === &#x27;off&#x27;)
) {
query.filter = false;
} else {
query.filter = !!params.filter;
}
}
if (params.hasOwnProperty(&#x27;filter_cache&#x27;)) {
if (params.filter_cache.toLowerCase &amp;&amp; (params.filter_cache = params.filter_cache.toLowerCase())
&amp;&amp; (params.filter_cache === &#x27;no&#x27; || params.filter_cache === &#x27;off&#x27;)
) {
query.filter_cache = false;
} else {
query.filter_cache = !!params.filter_cache;
}
}
if (params.hasOwnProperty(&#x27;filter_keys&#x27;)) {
if (params.filter_keys.toLowerCase &amp;&amp; (params.filter_keys = params.filter_keys.toLowerCase())
&amp;&amp; (params.filter_keys === &#x27;no&#x27; || params.filter_keys === &#x27;off&#x27;)
) {
query.filter_keys = false;
} else {
query.filter_keys = !!params.filter_keys;
}
}
if (params.hasOwnProperty(&#x27;id&#x27;)) {
if (params.id.toLowerCase &amp;&amp; (params.id = params.id.toLowerCase())
&amp;&amp; (params.id === &#x27;no&#x27; || params.id === &#x27;off&#x27;)
) {
query.id = false;
} else {
query.id = !!params.id;
}
}
if (params.hasOwnProperty(&#x27;id_cache&#x27;)) {
if (params.id_cache.toLowerCase &amp;&amp; (params.id_cache = params.id_cache.toLowerCase())
&amp;&amp; (params.id_cache === &#x27;no&#x27; || params.id_cache === &#x27;off&#x27;)
) {
query.id_cache = false;
} else {
query.id_cache = !!params.id_cache;
}
}
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
query.index = params.index;
} else if (_.isArray(params.index)) {
query.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;recycler&#x27;)) {
if (params.recycler.toLowerCase &amp;&amp; (params.recycler = params.recycler.toLowerCase())
&amp;&amp; (params.recycler === &#x27;no&#x27; || params.recycler === &#x27;off&#x27;)
) {
query.recycler = false;
} else {
query.recycler = !!params.recycler;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesClearCache;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,164 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/close.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/close.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.close](http://www.elasticsearch.org/guide/reference/api/admin-indices-open-close/) request
*
* @for Client
* @method indices.close
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesClose(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;POST&#x27;;
// find the url&#x27;s params
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_close&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesClose;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,172 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/create.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/create.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.create](http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/) request
*
* @for Client
* @method indices.create
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesCreate(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;PUT&#x27; || param.method === &#x27;POST&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of PUT, POST&#x27;);
}
} else {
request.method = &#x27;PUT&#x27;;
}
// find the url&#x27;s params
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesCreate;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,168 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/delete.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/delete.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.delete](http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-index/) request
*
* @for Client
* @method indices.delete
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesDelete(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;DELETE&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;&#x27;;
}
else {
request.url = &#x27;/&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesDelete;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,170 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/delete_alias.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/delete_alias.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.delete_alias](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/) request
*
* @for Client
* @method indices.delete_alias
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit timestamp for the document
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesDeleteAlias(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;DELETE&#x27;;
// find the url&#x27;s params
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_alias/&#x27; + url.name + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, name&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesDeleteAlias;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,161 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/delete_mapping.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/delete_mapping.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.delete_mapping](http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-mapping/) request
*
* @for Client
* @method indices.delete_mapping
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesDeleteMapping(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;DELETE&#x27;;
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesDeleteMapping;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,164 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/delete_template.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/delete_template.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.delete_template](http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/) request
*
* @for Client
* @method indices.delete_template
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesDeleteTemplate(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;DELETE&#x27;;
// find the url&#x27;s params
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/_template/&#x27; + url.name + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least name&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesDeleteTemplate;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,179 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/delete_warmer.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/delete_warmer.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.delete_warmer](http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/) request
*
* @for Client
* @method indices.delete_warmer
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesDeleteWarmer(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;DELETE&#x27;;
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
if (params.hasOwnProperty(&#x27;name&#x27;)) {
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_warmer/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_warmer/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_warmer&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesDeleteWarmer;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,145 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/exists.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/exists.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.exists](http://www.elasticsearch.org/guide/reference/api/admin-indices-indices-exists/) request
*
* @for Client
* @method indices.exists
* @param {Object} params - An object with parameters used to carry out this action
*/
function doIndicesExists(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;HEAD&#x27;;
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index&#x27;);
}
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesExists;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,173 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/exists_alias.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/exists_alias.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.exists_alias](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/) request
*
* @for Client
* @method indices.exists_alias
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
*/
function doIndicesExistsAlias(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;HEAD&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (typeof params.name === &#x27;string&#x27;) {
url.name = params.name;
} else if (_.isArray(params.name)) {
url.name = params.name.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a comma seperated list or array.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_alias/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/_alias/&#x27; + url.name + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least name&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesExistsAlias;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,168 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/exists_type.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/exists_type.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.exists_type](http://www.elasticsearch.org/guide/reference/api/admin-indices-types-exists/) request
*
* @for Client
* @method indices.exists_type
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
*/
function doIndicesExistsType(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;HEAD&#x27;;
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesExistsType;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,203 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/flush.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/flush.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.flush](http://www.elasticsearch.org/guide/reference/api/admin-indices-flush/) request
*
* @for Client
* @method indices.flush
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.force - TODO: ?
* @param {boolean} params.full - TODO: ?
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {boolean} params.refresh - Refresh the index after performing the operation
*/
function doIndicesFlush(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;GET&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, GET&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_flush&#x27;;
}
else {
request.url = &#x27;/_flush&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;force&#x27;)) {
if (params.force.toLowerCase &amp;&amp; (params.force = params.force.toLowerCase())
&amp;&amp; (params.force === &#x27;no&#x27; || params.force === &#x27;off&#x27;)
) {
query.force = false;
} else {
query.force = !!params.force;
}
}
if (params.hasOwnProperty(&#x27;full&#x27;)) {
if (params.full.toLowerCase &amp;&amp; (params.full = params.full.toLowerCase())
&amp;&amp; (params.full === &#x27;no&#x27; || params.full === &#x27;off&#x27;)
) {
query.full = false;
} else {
query.full = !!params.full;
}
}
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesFlush;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,173 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/get_alias.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/get_alias.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.get_alias](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/) request
*
* @for Client
* @method indices.get_alias
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
*/
function doIndicesGetAlias(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (typeof params.name === &#x27;string&#x27;) {
url.name = params.name;
} else if (_.isArray(params.name)) {
url.name = params.name.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a comma seperated list or array.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_alias/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/_alias/&#x27; + url.name + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least name&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesGetAlias;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,157 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/get_aliases.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/get_aliases.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.get_aliases](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/) request
*
* @for Client
* @method indices.get_aliases
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit operation timeout
*/
function doIndicesGetAliases(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_aliases&#x27;;
}
else {
request.url = &#x27;/_aliases&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesGetAliases;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,160 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/get_mapping.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/get_mapping.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.get_mapping](http://www.elasticsearch.org/guide/reference/api/admin-indices-get-mapping/) request
*
* @for Client
* @method indices.get_mapping
* @param {Object} params - An object with parameters used to carry out this action
*/
function doIndicesGetMapping(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_mapping&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_mapping&#x27;;
}
else {
request.url = &#x27;/_mapping&#x27;;
}
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesGetMapping;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,147 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/get_settings.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/get_settings.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.get_settings](http://www.elasticsearch.org/guide/reference/api/admin-indices-get-settings/) request
*
* @for Client
* @method indices.get_settings
* @param {Object} params - An object with parameters used to carry out this action
*/
function doIndicesGetSettings(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_settings&#x27;;
}
else {
request.url = &#x27;/_settings&#x27;;
}
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesGetSettings;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,143 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/get_template.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/get_template.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.get_template](http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/) request
*
* @for Client
* @method indices.get_template
* @param {Object} params - An object with parameters used to carry out this action
*/
function doIndicesGetTemplate(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/_template/&#x27; + url.name + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least name&#x27;);
}
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesGetTemplate;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,169 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/get_warmer.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/get_warmer.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.get_warmer](http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/) request
*
* @for Client
* @method indices.get_warmer
* @param {Object} params - An object with parameters used to carry out this action
*/
function doIndicesGetWarmer(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
if (params.hasOwnProperty(&#x27;name&#x27;)) {
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_warmer/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_warmer/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_warmer&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index&#x27;);
}
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesGetWarmer;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,164 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/open.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/open.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.open](http://www.elasticsearch.org/guide/reference/api/admin-indices-open-close/) request
*
* @for Client
* @method indices.open
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesOpen(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;POST&#x27;;
// find the url&#x27;s params
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_open&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesOpen;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,228 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/optimize.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/optimize.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.optimize](http://www.elasticsearch.org/guide/reference/api/admin-indices-optimize/) request
*
* @for Client
* @method indices.optimize
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.flush - Specify whether the index should be flushed after performing the operation (default: true)
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {number} params.max_num_segments - The number of segments the index should be merged into (default: dynamic)
* @param {boolean} params.only_expunge_deletes - Specify whether the operation should only expunge deleted documents
* @param {*} params.operation_threading - TODO: ?
* @param {boolean} params.refresh - Specify whether the index should be refreshed after performing the operation (default: true)
* @param {boolean} params.wait_for_merge - Specify whether the request should block until the merge process is finished (default: true)
*/
function doIndicesOptimize(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;GET&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, GET&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_optimize&#x27;;
}
else {
request.url = &#x27;/_optimize&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;flush&#x27;)) {
if (params.flush.toLowerCase &amp;&amp; (params.flush = params.flush.toLowerCase())
&amp;&amp; (params.flush === &#x27;no&#x27; || params.flush === &#x27;off&#x27;)
) {
query.flush = false;
} else {
query.flush = !!params.flush;
}
}
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;max_num_segments&#x27;)) {
if (_.isNumeric(params.max_num_segments)) {
query.max_num_segments = params.max_num_segments * 1;
} else {
throw new TypeError(&#x27;Invalid max_num_segments:&#x27; + params.max_num_segments + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;only_expunge_deletes&#x27;)) {
if (params.only_expunge_deletes.toLowerCase &amp;&amp; (params.only_expunge_deletes = params.only_expunge_deletes.toLowerCase())
&amp;&amp; (params.only_expunge_deletes === &#x27;no&#x27; || params.only_expunge_deletes === &#x27;off&#x27;)
) {
query.only_expunge_deletes = false;
} else {
query.only_expunge_deletes = !!params.only_expunge_deletes;
}
}
if (params.hasOwnProperty(&#x27;operation_threading&#x27;)) {
query.operation_threading = params.operation_threading;
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;wait_for_merge&#x27;)) {
if (params.wait_for_merge.toLowerCase &amp;&amp; (params.wait_for_merge = params.wait_for_merge.toLowerCase())
&amp;&amp; (params.wait_for_merge === &#x27;no&#x27; || params.wait_for_merge === &#x27;off&#x27;)
) {
query.wait_for_merge = false;
} else {
query.wait_for_merge = !!params.wait_for_merge;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesOptimize;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,176 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/put_alias.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/put_alias.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.put_alias](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/) request
*
* @for Client
* @method indices.put_alias
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Explicit timestamp for the document
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesPutAlias(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;PUT&#x27;;
// find the url&#x27;s params
if (typeof params.index !== &#x27;object&#x27; &amp;&amp; typeof params.index !== &#x27;undefined&#x27;) {
url.index = &#x27;&#x27; + params.index;
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a string.&#x27;);
}
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_alias/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/_alias/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_alias&#x27;;
}
else {
request.url = &#x27;/_alias&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesPutAlias;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,191 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/put_mapping.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/put_mapping.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.put_mapping](http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/) request
*
* @for Client
* @method indices.put_mapping
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.ignore_conflicts - Specify whether to ignore conflicts while updating the mapping (default: false)
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesPutMapping(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;PUT&#x27; || param.method === &#x27;POST&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of PUT, POST&#x27;);
}
} else {
request.method = &#x27;PUT&#x27;;
}
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
if (typeof params.type !== &#x27;object&#x27; &amp;&amp; typeof params.type !== &#x27;undefined&#x27;) {
url.type = &#x27;&#x27; + params.type;
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_mapping&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, type&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_conflicts&#x27;)) {
if (params.ignore_conflicts.toLowerCase &amp;&amp; (params.ignore_conflicts = params.ignore_conflicts.toLowerCase())
&amp;&amp; (params.ignore_conflicts === &#x27;no&#x27; || params.ignore_conflicts === &#x27;off&#x27;)
) {
query.ignore_conflicts = false;
} else {
query.ignore_conflicts = !!params.ignore_conflicts;
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesPutMapping;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,157 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/put_settings.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/put_settings.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.put_settings](http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings/) request
*
* @for Client
* @method indices.put_settings
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesPutSettings(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;PUT&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_settings&#x27;;
}
else {
request.url = &#x27;/_settings&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesPutSettings;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,181 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/put_template.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/put_template.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.put_template](http://www.elasticsearch.org/guide/reference/api/admin-indices-templates/) request
*
* @for Client
* @method indices.put_template
* @param {Object} params - An object with parameters used to carry out this action
* @param {number} params.order - The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)
* @param {Date|Number} params.timeout - Explicit operation timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesPutTemplate(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;PUT&#x27; || param.method === &#x27;POST&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of PUT, POST&#x27;);
}
} else {
request.method = &#x27;PUT&#x27;;
}
// find the url&#x27;s params
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
// build the url
if (url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/_template/&#x27; + url.name + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least name&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;order&#x27;)) {
if (_.isNumeric(params.order)) {
query.order = params.order * 1;
} else {
throw new TypeError(&#x27;Invalid order:&#x27; + params.order + &#x27; should be a number.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesPutTemplate;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,174 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/put_warmer.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/put_warmer.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.put_warmer](http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/) request
*
* @for Client
* @method indices.put_warmer
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesPutWarmer(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;PUT&#x27;;
// find the url&#x27;s params
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
if (typeof params.name !== &#x27;object&#x27; &amp;&amp; typeof params.name !== &#x27;undefined&#x27;) {
url.name = &#x27;&#x27; + params.name;
} else {
throw new TypeError(&#x27;Invalid name:&#x27; + params.name + &#x27; should be a string.&#x27;);
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_warmer/&#x27; + url.name + &#x27;&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;name&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_warmer/&#x27; + url.name + &#x27;&#x27;;
}
else {
throw new TypeError(&#x27;Unable to build a url with those params. Supply at least index, name&#x27;);
}
// build the query string
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesPutWarmer;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,175 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/refresh.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/refresh.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.refresh](http://www.elasticsearch.org/guide/reference/api/admin-indices-refresh/) request
*
* @for Client
* @method indices.refresh
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {*} params.operation_threading - TODO: ?
*/
function doIndicesRefresh(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;POST&#x27; || param.method === &#x27;GET&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of POST, GET&#x27;);
}
} else {
request.method = &#x27;POST&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_refresh&#x27;;
}
else {
request.url = &#x27;/_refresh&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;operation_threading&#x27;)) {
query.operation_threading = params.operation_threading;
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesRefresh;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,167 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/segments.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/segments.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.segments](http://elasticsearch.org/guide/reference/api/admin-indices-segments/) request
*
* @for Client
* @method indices.segments
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {*} params.operation_threading - TODO: ?
*/
function doIndicesSegments(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_segments&#x27;;
}
else {
request.url = &#x27;/_segments&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;operation_threading&#x27;)) {
query.operation_threading = params.operation_threading;
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesSegments;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,162 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/snapshot_index.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/snapshot_index.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.snapshot_index](http://www.elasticsearch.org/guide/reference/api/admin-indices-gateway-snapshot/) request
*
* @for Client
* @method indices.snapshot_index
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
*/
function doIndicesSnapshotIndex(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;POST&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_gateway/snapshot&#x27;;
}
else {
request.url = &#x27;/_gateway/snapshot&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesSnapshotIndex;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,380 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/stats.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/stats.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
var metricFamilyOptions = [&#x27;docs&#x27;, &#x27;fielddata&#x27;, &#x27;filter_cache&#x27;, &#x27;flush&#x27;, &#x27;get&#x27;, &#x27;groups&#x27;, &#x27;id_cache&#x27;, &#x27;ignore_indices&#x27;, &#x27;indexing&#x27;, &#x27;merge&#x27;, &#x27;refresh&#x27;, &#x27;search&#x27;, &#x27;store&#x27;, &#x27;warmer&#x27;];
/**
* Perform an elasticsearch [indices.stats](http://elasticsearch.org/guide/reference/api/admin-indices-stats/) request
*
* @for Client
* @method indices.stats
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.all - Return all available information
* @param {boolean} params.clear - Reset the default level of detail
* @param {boolean} params.docs - Return information about indexed and deleted documents
* @param {boolean} params.fielddata - Return information about field data
* @param {boolean} params.fields - A comma-separated list of fields for &#x60;fielddata&#x60; metric (supports wildcards)
* @param {boolean} params.filter_cache - Return information about filter cache
* @param {boolean} params.flush - Return information about flush operations
* @param {boolean} params.get - Return information about get operations
* @param {boolean} params.groups - A comma-separated list of search groups for &#x60;search&#x60; statistics
* @param {boolean} params.id_cache - Return information about ID cache
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {boolean} params.indexing - Return information about indexing operations
* @param {boolean} params.merge - Return information about merge operations
* @param {boolean} params.refresh - Return information about refresh operations
* @param {boolean} params.search - Return information about search operations; use the &#x60;groups&#x60; parameter to include information for specific search groups
* @param {boolean} params.store - Return information about the size of the index
* @param {boolean} params.warmer - Return information about warmers
*/
function doIndicesStats(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;fields&#x27;)) {
if (typeof params.fields === &#x27;string&#x27;) {
url.fields = params.fields;
} else if (_.isArray(params.fields)) {
url.fields = params.fields.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid fields:&#x27; + params.fields + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;indexing_types&#x27;)) {
if (typeof params.indexing_types === &#x27;string&#x27;) {
url.indexing_types = params.indexing_types;
} else if (_.isArray(params.indexing_types)) {
url.indexing_types = params.indexing_types.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid indexing_types:&#x27; + params.indexing_types + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;metric_family&#x27;)) {
if (_.contains(metricFamilyOptions, params.metric_family)) {
url.metric_family = params.metric_family;
} else {
throw new TypeError(
&#x27;Invalid metric_family:&#x27; + params.metric_family +
&#x27; should be one of &#x27; + metricFamilyOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
}
if (params.hasOwnProperty(&#x27;search_groups&#x27;)) {
if (typeof params.search_groups === &#x27;string&#x27;) {
url.search_groups = params.search_groups;
} else if (_.isArray(params.search_groups)) {
url.search_groups = params.search_groups.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid search_groups:&#x27; + params.search_groups + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_stats&#x27;;
}
else {
request.url = &#x27;/_stats&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;all&#x27;)) {
if (params.all.toLowerCase &amp;&amp; (params.all = params.all.toLowerCase())
&amp;&amp; (params.all === &#x27;no&#x27; || params.all === &#x27;off&#x27;)
) {
query.all = false;
} else {
query.all = !!params.all;
}
}
if (params.hasOwnProperty(&#x27;clear&#x27;)) {
if (params.clear.toLowerCase &amp;&amp; (params.clear = params.clear.toLowerCase())
&amp;&amp; (params.clear === &#x27;no&#x27; || params.clear === &#x27;off&#x27;)
) {
query.clear = false;
} else {
query.clear = !!params.clear;
}
}
if (params.hasOwnProperty(&#x27;docs&#x27;)) {
if (params.docs.toLowerCase &amp;&amp; (params.docs = params.docs.toLowerCase())
&amp;&amp; (params.docs === &#x27;no&#x27; || params.docs === &#x27;off&#x27;)
) {
query.docs = false;
} else {
query.docs = !!params.docs;
}
}
if (params.hasOwnProperty(&#x27;fielddata&#x27;)) {
if (params.fielddata.toLowerCase &amp;&amp; (params.fielddata = params.fielddata.toLowerCase())
&amp;&amp; (params.fielddata === &#x27;no&#x27; || params.fielddata === &#x27;off&#x27;)
) {
query.fielddata = false;
} else {
query.fielddata = !!params.fielddata;
}
}
if (params.hasOwnProperty(&#x27;fields&#x27;)) {
if (params.fields.toLowerCase &amp;&amp; (params.fields = params.fields.toLowerCase())
&amp;&amp; (params.fields === &#x27;no&#x27; || params.fields === &#x27;off&#x27;)
) {
query.fields = false;
} else {
query.fields = !!params.fields;
}
}
if (params.hasOwnProperty(&#x27;filter_cache&#x27;)) {
if (params.filter_cache.toLowerCase &amp;&amp; (params.filter_cache = params.filter_cache.toLowerCase())
&amp;&amp; (params.filter_cache === &#x27;no&#x27; || params.filter_cache === &#x27;off&#x27;)
) {
query.filter_cache = false;
} else {
query.filter_cache = !!params.filter_cache;
}
}
if (params.hasOwnProperty(&#x27;flush&#x27;)) {
if (params.flush.toLowerCase &amp;&amp; (params.flush = params.flush.toLowerCase())
&amp;&amp; (params.flush === &#x27;no&#x27; || params.flush === &#x27;off&#x27;)
) {
query.flush = false;
} else {
query.flush = !!params.flush;
}
}
if (params.hasOwnProperty(&#x27;get&#x27;)) {
if (params.get.toLowerCase &amp;&amp; (params.get = params.get.toLowerCase())
&amp;&amp; (params.get === &#x27;no&#x27; || params.get === &#x27;off&#x27;)
) {
query.get = false;
} else {
query.get = !!params.get;
}
}
if (params.hasOwnProperty(&#x27;groups&#x27;)) {
if (params.groups.toLowerCase &amp;&amp; (params.groups = params.groups.toLowerCase())
&amp;&amp; (params.groups === &#x27;no&#x27; || params.groups === &#x27;off&#x27;)
) {
query.groups = false;
} else {
query.groups = !!params.groups;
}
}
if (params.hasOwnProperty(&#x27;id_cache&#x27;)) {
if (params.id_cache.toLowerCase &amp;&amp; (params.id_cache = params.id_cache.toLowerCase())
&amp;&amp; (params.id_cache === &#x27;no&#x27; || params.id_cache === &#x27;off&#x27;)
) {
query.id_cache = false;
} else {
query.id_cache = !!params.id_cache;
}
}
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;indexing&#x27;)) {
if (params.indexing.toLowerCase &amp;&amp; (params.indexing = params.indexing.toLowerCase())
&amp;&amp; (params.indexing === &#x27;no&#x27; || params.indexing === &#x27;off&#x27;)
) {
query.indexing = false;
} else {
query.indexing = !!params.indexing;
}
}
if (params.hasOwnProperty(&#x27;merge&#x27;)) {
if (params.merge.toLowerCase &amp;&amp; (params.merge = params.merge.toLowerCase())
&amp;&amp; (params.merge === &#x27;no&#x27; || params.merge === &#x27;off&#x27;)
) {
query.merge = false;
} else {
query.merge = !!params.merge;
}
}
if (params.hasOwnProperty(&#x27;refresh&#x27;)) {
if (params.refresh.toLowerCase &amp;&amp; (params.refresh = params.refresh.toLowerCase())
&amp;&amp; (params.refresh === &#x27;no&#x27; || params.refresh === &#x27;off&#x27;)
) {
query.refresh = false;
} else {
query.refresh = !!params.refresh;
}
}
if (params.hasOwnProperty(&#x27;search&#x27;)) {
if (params.search.toLowerCase &amp;&amp; (params.search = params.search.toLowerCase())
&amp;&amp; (params.search === &#x27;no&#x27; || params.search === &#x27;off&#x27;)
) {
query.search = false;
} else {
query.search = !!params.search;
}
}
if (params.hasOwnProperty(&#x27;store&#x27;)) {
if (params.store.toLowerCase &amp;&amp; (params.store = params.store.toLowerCase())
&amp;&amp; (params.store === &#x27;no&#x27; || params.store === &#x27;off&#x27;)
) {
query.store = false;
} else {
query.store = !!params.store;
}
}
if (params.hasOwnProperty(&#x27;warmer&#x27;)) {
if (params.warmer.toLowerCase &amp;&amp; (params.warmer = params.warmer.toLowerCase())
&amp;&amp; (params.warmer === &#x27;no&#x27; || params.warmer === &#x27;off&#x27;)
) {
query.warmer = false;
} else {
query.warmer = !!params.warmer;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesStats;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,189 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/status.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/status.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.status](http://elasticsearch.org/guide/reference/api/admin-indices-status/) request
*
* @for Client
* @method indices.status
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {*} params.operation_threading - TODO: ?
* @param {boolean} params.recovery - Return information about shard recovery
* @param {boolean} params.snapshot - TODO: ?
*/
function doIndicesStatus(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;GET&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_status&#x27;;
}
else {
request.url = &#x27;/_status&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;operation_threading&#x27;)) {
query.operation_threading = params.operation_threading;
}
if (params.hasOwnProperty(&#x27;recovery&#x27;)) {
if (params.recovery.toLowerCase &amp;&amp; (params.recovery = params.recovery.toLowerCase())
&amp;&amp; (params.recovery === &#x27;no&#x27; || params.recovery === &#x27;off&#x27;)
) {
query.recovery = false;
} else {
query.recovery = !!params.recovery;
}
}
if (params.hasOwnProperty(&#x27;snapshot&#x27;)) {
if (params.snapshot.toLowerCase &amp;&amp; (params.snapshot = params.snapshot.toLowerCase())
&amp;&amp; (params.snapshot === &#x27;no&#x27; || params.snapshot === &#x27;off&#x27;)
) {
query.snapshot = false;
} else {
query.snapshot = !!params.snapshot;
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesStatus;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,163 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/update_aliases.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/update_aliases.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
/**
* Perform an elasticsearch [indices.update_aliases](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/) request
*
* @for Client
* @method indices.update_aliases
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date|Number} params.timeout - Request timeout
* @param {Date|Number} params.master_timeout - Specify timeout for connection to master
*/
function doIndicesUpdateAliases(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
request.method = &#x27;POST&#x27;;
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
request.url = &#x27;/_aliases&#x27;;
// build the query string
if (params.hasOwnProperty(&#x27;timeout&#x27;)) {
if (params.timeout instanceof Date) {
query.timeout = params.timeout.getTime();
} else if (_.isNumeric(params.timeout)) {
query.timeout = params.timeout;
} else {
throw new TypeError(&#x27;Invalid timeout:&#x27; + params.timeout + &#x27; should be be some sort of time.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;master_timeout&#x27;)) {
if (params.master_timeout instanceof Date) {
query.master_timeout = params.master_timeout.getTime();
} else if (_.isNumeric(params.master_timeout)) {
query.master_timeout = params.master_timeout;
} else {
throw new TypeError(&#x27;Invalid master_timeout:&#x27; + params.master_timeout + &#x27; should be be some sort of time.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesUpdateAliases;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,217 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/indices/validate_query.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/indices/validate_query.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../../lib/utils&#x27;);
var ignoreIndicesOptions = [&#x27;none&#x27;, &#x27;missing&#x27;];
/**
* Perform an elasticsearch [indices.validate_query](http://www.elasticsearch.org/guide/reference/api/validate/) request
*
* @for Client
* @method indices.validate_query
* @param {Object} params - An object with parameters used to carry out this action
* @param {boolean} params.explain - Return detailed information about the error
* @param {String} [params.ignore_indices=none] - When performed on multiple indices, allows to ignore &#x60;missing&#x60; ones
* @param {*} params.operation_threading - TODO: ?
* @param {string} params.source - The URL-encoded query definition (instead of using the request body)
* @param {string} params.q - Query in the Lucene query string syntax
*/
function doIndicesValidateQuery(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;GET&#x27; || param.method === &#x27;POST&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of GET, POST&#x27;);
}
} else {
request.method = &#x27;GET&#x27;;
}
// find the url&#x27;s params
if (params.hasOwnProperty(&#x27;index&#x27;)) {
if (typeof params.index === &#x27;string&#x27;) {
url.index = params.index;
} else if (_.isArray(params.index)) {
url.index = params.index.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid index:&#x27; + params.index + &#x27; should be a comma seperated list or array.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;type&#x27;)) {
if (typeof params.type === &#x27;string&#x27;) {
url.type = params.type;
} else if (_.isArray(params.type)) {
url.type = params.type.join(&#x27;,&#x27;);
} else {
throw new TypeError(&#x27;Invalid type:&#x27; + params.type + &#x27; should be a comma seperated list or array.&#x27;);
}
}
// build the url
if (url.hasOwnProperty(&#x27;index&#x27;) &amp;&amp; url.hasOwnProperty(&#x27;type&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/&#x27; + url.type + &#x27;/_validate/query&#x27;;
}
else if (url.hasOwnProperty(&#x27;index&#x27;)) {
request.url = &#x27;/&#x27; + url.index + &#x27;/_validate/query&#x27;;
}
else {
request.url = &#x27;/_validate/query&#x27;;
}
// build the query string
if (params.hasOwnProperty(&#x27;explain&#x27;)) {
if (params.explain.toLowerCase &amp;&amp; (params.explain = params.explain.toLowerCase())
&amp;&amp; (params.explain === &#x27;no&#x27; || params.explain === &#x27;off&#x27;)
) {
query.explain = false;
} else {
query.explain = !!params.explain;
}
}
if (params.hasOwnProperty(&#x27;ignore_indices&#x27;)) {
if (_.contains(ignoreIndicesOptions, params.ignore_indices)) {
query.ignore_indices = params.ignore_indices;
} else {
throw new TypeError(
&#x27;Invalid ignore_indices:&#x27; + params.ignore_indices +
&#x27; should be one of &#x27; + ignoreIndicesOptions.join(&#x27;, &#x27;) + &#x27;.&#x27;
);
}
} else {
query.ignore_indices = &#x27;none&#x27;;
}
if (params.hasOwnProperty(&#x27;operation_threading&#x27;)) {
query.operation_threading = params.operation_threading;
}
if (params.hasOwnProperty(&#x27;source&#x27;)) {
if (typeof params.source !== &#x27;object&#x27; &amp;&amp; typeof params.source !== &#x27;undefined&#x27;) {
query.source = &#x27;&#x27; + params.source;
} else {
throw new TypeError(&#x27;Invalid source:&#x27; + params.source + &#x27; should be a string.&#x27;);
}
}
if (params.hasOwnProperty(&#x27;q&#x27;)) {
if (typeof params.q !== &#x27;object&#x27; &amp;&amp; typeof params.q !== &#x27;undefined&#x27;) {
query.q = &#x27;&#x27; + params.q;
} else {
throw new TypeError(&#x27;Invalid q:&#x27; + params.q + &#x27; should be a string.&#x27;);
}
}
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doIndicesValidateQuery;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

View File

@ -1,141 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>src/api/info.js - elasticsearch-js</title>
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="shortcut icon" type="image/png" href="../assets/img/favicon.png">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<a class="navbar-brand" href="#">elasticsearch-js</a>
<p class="navbar-text">
API Docs for Version: <b>0.0.1</b>
</p>
<form class="navbar-form navbar-right visible-md visible-large" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
</form>
</nav>
<div class="container">
<div class="row">
<div class="col-md-3">
<div>
<h3>APIs</h3>
<div id="sidebar">
<ul id="main-nav" class="nav nav-tabs" style="margin-bottom:0;">
<li class="active" style="visibility:hidden;"><a>just classes</a></li>
</ul>
<div id="api-tabview-filter">
<input type="search" placeholder="Type to filter APIs">
</div>
<div class="tab-content" style="border: 1px solid #DDD; border-top:0;">
<div class="tab-pane active" id="classes">
<ul id="api-classes" class="nav nav-list">
<li><a href="../classes/Client.html">Client</a></li>
<li><a href="../classes/ConnectionPool.html">ConnectionPool</a></li>
<li><a href="../classes/jQueryXhr.html">jQueryXhr</a></li>
<li><a href="../classes/Log.html">Log</a></li>
<li><a href="../classes/Loggers.File.html">Loggers.File</a></li>
<li><a href="../classes/Loggers.Stdio.html">Loggers.Stdio</a></li>
<li><a href="../classes/Loggers.Stream.html">Loggers.Stream</a></li>
<li><a href="../classes/NodeHttp.html">NodeHttp</a></li>
<li><a href="../classes/Transport.html">Transport</a></li>
<li><a href="../classes/utils.html">utils</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-9">
<div id="docs-main">
<div class="content">
<div class="page-header">
<h1>src/api/info.js <small>File</small></h1>
</div>
<div class="file">
<pre class="prettyprint linenums">
var _ = require(&#x27;../lib/utils&#x27;);
/**
* Perform an elasticsearch [info](http://elasticsearch.org/guide/) request
*
* @for Client
* @method info
* @param {Object} params - An object with parameters used to carry out this action
*/
function doInfo(params) {
var request = {}
, url = {}
, query = {};
params = params || {};
if (param.method) {
if (param.method === &#x27;GET&#x27; || param.method === &#x27;HEAD&#x27;) {
request.method = param.method;
} else {
throw new TypeError(&#x27;Invalid method: should be one of GET, HEAD&#x27;);
}
} else {
request.method = &#x27;GET&#x27;;
}
// find the url&#x27;s params
// build the url
request.url = &#x27;/&#x27;;
// build the query string
request.url = request.url + _.makeQueryString(query);
return this.client.request(request);
}
module.exports = doInfo;
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../assets/vendor/jquery/jquery-1.10.2.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.js"></script>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script src="../assets/js/main.js"></script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More