diff --git a/README.textile b/README.textile index 71f96f1c..f34a512b 100644 --- a/README.textile +++ b/README.textile @@ -10,16 +10,23 @@ There are two main ways of running and installing elasticsearch-head h4. Running as a plugin of Elasticsearch -* @sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head@ +* Install elasticsearch-head: + - for Elasticsearch 2.x: + @sudo elasticsearch/bin/plugin install mobz/elasticsearch-head@ + - for Elasticsearch 1.x: + @sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/1.x@ + - for Elasticsearch 0.9: + @sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/0.9@ + * @open http://localhost:9200/_plugin/head/@ This will automatically download the latest version of elasticsearch-head from github and run it as a plugin within the elasticsearch cluster. In this mode; * elasticsearch-head automatically connects to the node that is running it -* If you've installed the .deb package, then the plugin exectuable will be available at /usr/share/elasticsearch/bin/plugin. +* If you've installed the .deb package, then the plugin executable will be available at /usr/share/elasticsearch/bin/plugin. h4. Running with built in server -* enable "cors":http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-http.html by add @http.cors.enabled: true@ in elasticsearch configuration +* enable "cors":http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-http.html by adding @http.cors.enabled: true@ in elasticsearch configuration * @git clone git://github.com/mobz/elasticsearch-head.git@ * @cd elasticsearch-head@ * @npm install@ @@ -33,11 +40,11 @@ h4. Alternatives h5. Running from the filesystem -elastisearch-head is a standalone webapp written in good-ol' html5. This means, you can put it up on any webserver, run it directly from the filesystem, use it on an ipad, or put it on a floppy disk and carry it with you. +elastisearch-head is a standalone webapp written in good-ol' html5. This means, you can put it up on any webserver, run it directly from the filesystem, use it on an iPad, or put it on a floppy disk and carry it with you. h4. URL Parameters -Parameters may be appended to the url set some initial state eg. @head/index.html?base_uri=http://node-01.example.com:9200@ +Parameters may be appended to the url to set an initial state eg. @head/index.html?base_uri=http://node-01.example.com:9200@ * @base_uri@ force elasticsearch-head to connect to a particular node. * @dashboard@ experimental feature to open elasticsearch-head in a mode suitable for dashboard / radiator. Accepts one parameter @dashboard=cluster@ @@ -61,8 +68,9 @@ Then # @npm install@ # downloads node dev dependencies # @grunt dev@ # builds the distribution files, then watches the src directory for changes -Changes to both _site and src directories *must* be committed, to allow people to run head without running dev tools -and folllow existing dev patterns, such as indenting with tabs +Changes to both _site and src directories *must* be committed, to allow people to +run elasticsearch-head without running dev tools and follow existing dev patterns, +such as indenting with tabs. h5. Contributing an Internationalisation @@ -77,7 +85,7 @@ To contribute an internationalisation # Follow "Contributing" instructions above # Find your 2-character "ISO 639-1 language code":http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes # edit _site/index.html to add your 2 letter language code to the data-langs attribute of this line @@ -# make a copy of @src/app/langs/en_strings.js@ prefixed with your langugae code +# make a copy of @src/app/langs/en_strings.js@ prefixed with your language code # convert english strings and fragments to your language. "Formatting Rules":http://docs.oracle.com/javase/tutorial/i18n/format/messageintro.html # Submit a pull request diff --git a/_site/app.js b/_site/app.js index 4a93fe99..1cd743fb 100644 --- a/_site/app.js +++ b/_site/app.js @@ -3897,7 +3897,8 @@ } else { value = row.find(".qual").val(); } - search.addClause(value, field, op, bool); + var use_field = field.slice(field.indexOf(".")+1); + search.addClause(value, use_field, op, bool); }); if(this.el.find(".uiFilterBrowser-showSrc").attr("checked")) { this.fire("searchSource", search.search); diff --git a/src/app/ui/filterBrowser/filterBrowser.js b/src/app/ui/filterBrowser/filterBrowser.js index 7b58d7e4..9d9465eb 100644 --- a/src/app/ui/filterBrowser/filterBrowser.js +++ b/src/app/ui/filterBrowser/filterBrowser.js @@ -102,7 +102,8 @@ } else { value = row.find(".qual").val(); } - search.addClause(value, field, op, bool); + var use_field = field.slice(field.indexOf(".")+1); + search.addClause(value, use_field, op, bool); }); if(this.el.find(".uiFilterBrowser-showSrc").attr("checked")) { this.fire("searchSource", search.search);