Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed field in structured query for ES2 #234

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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@
Expand All @@ -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@
Expand All @@ -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

Expand All @@ -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 @<script src="_site/i18n.js" data-baseDir="_site/lang" data-langs="en,fr,your_lang_here"></script>@
# 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

Expand Down
3 changes: 2 additions & 1 deletion _site/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/app/ui/filterBrowser/filterBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down