Karel Minarik
f659cad8d6
Added proper headers for cross-origin resource sharing (CORS) with Ajax
...
Previously, when responding to Ajax requests, elasticsearch did not send proper headers for
cross-origin resource sharing (CORS) -- see issues #828 , #2186 .
With this commit, Ajax requests should be working. Example:
jQuery.ajax({
url: "http://localhost:9200/_search ",
type: "POST",
contentType: 'application/json; charset=UTF-8',
success: function(data) { console.log(data) }
});
See:
* http://www.nczonline.net/blog/2010/05/25/cross-domain-ajax-with-cross-origin-resource-sharing/
* http://www.w3.org/TR/cors/#access-control-allow-headers-response-header
Closes #2186 , fixes #828
2012-09-06 17:14:55 +02:00
Shay Banon
f2db8eaca2
IndexMetaData.Builder.Index(String name) isn't renaming this.index
...
fixed #2236 .
2012-09-06 16:30:05 +02:00
Shay Banon
162dfb7011
Upgrade to LZF 0.9.6
2012-09-06 14:55:01 +02:00
Martijn van Groningen
33e7d769ca
Fixed no valid missing index type error.
2012-09-05 19:20:53 +02:00
Shay Banon
24ce2ef537
handle EOF when handling arrays as well
2012-09-05 11:40:39 +02:00
Henrik Lindström
26feea8a58
Throw MapperParserException if trying to parse value as object.
2012-09-04 16:12:02 +02:00
Shay Banon
92dfb2b809
Nodes level API: Allow to specify `data:true` to only execute the APIs on data nodes, closes #2232
2012-09-04 00:03:06 +02:00
Shay Banon
0de8c06900
fix logging if millisecond value in load field data
2012-09-03 23:53:50 +02:00
Shay Banon
82b36e5bb8
upgrade to maven surefire 2.12.3
2012-09-03 20:48:44 +02:00
Shay Banon
a42159f8d5
Shard Allocation: `index.routing.allocation....` settings do not "remove" the setting on empty string, closes #2229 .
2012-09-03 16:44:23 +02:00
Shay Banon
b055b5a94c
Upgrade to mvel 2.1.1, closes #2228 .
2012-09-02 21:29:10 +02:00
Shay Banon
8b499dd4fd
upgrade to guava 13.0.1
2012-09-02 17:52:40 +02:00
Shay Banon
edfbfc1c87
Update Settings API: Allow body request to be wrapped with `settings` element to conform with other APIs, closes #2227 .
2012-09-02 17:40:08 +02:00
Shay Banon
c834bca43c
use java to when no JAVA_HOME defined
...
remove using "which java", which will give a better error message when java is not available
2012-09-01 11:54:25 +02:00
Shay Banon
6c3847b0a9
move spatial4j and jts to be optional dependencies
...
allowing data and client nodes to work without them, disabling shapes if needed
2012-09-01 00:05:49 +02:00
Kenn Knowles
e66bd4359a
Fix reversed ShingleFilter constructor arguments
2012-08-31 22:25:07 +02:00
Martijn van Groningen
9b29950997
Added fields option to explain api. #2203
2012-08-31 22:19:09 +02:00
Martijn van Groningen
cd0e1226e1
Added a global ignore_malformed index setting. #2220 Also extended the ignore_malformed support to TTL, Ip and timestamp field types.
2012-08-31 22:10:46 +02:00
Shay Banon
888b7cc48f
only print failure to reconnect to node from other nodes after several retries
2012-08-31 17:14:04 +02:00
Martijn van Groningen
dea2de3304
Add ignore_indices option for search, multisearch, count and other Broadcast request. #2209
2012-08-27 15:36:14 +03:00
Martijn van Groningen
1d4aee6086
- Explain api opens 2 engine searchers, but closes only 1 engine searcher. Closes #2206
2012-08-27 12:20:02 +03:00
Shay Banon
da61ddee3c
0.19.9 no longer supports /_all/_status, closes #2205 .
2012-08-25 14:18:48 +03:00
Shay Banon
dfa67bf071
allow to register custom state associated with cluster state
2012-08-25 00:40:44 +03:00
Martijn van Groningen
bbe735f2cc
Fixed issue #2197
2012-08-25 00:38:26 +03:00
uboness
b4b33bb205
Local node master listener
...
* Fixed an issue where dynamic update to minimum_master_nodes settings would not take immediate effect
* Added LocalNodeMasterListener support to the ClusterService. Enables listening to when the local node becomes/stopped being a master
2012-08-24 02:25:13 +02:00
Shay Banon
36ff6c9b8b
add a lock not allowing connecting to nodes while shutting down
2012-08-24 02:23:43 +02:00
Shay Banon
333293babd
ignore cancelled key exception as well
2012-08-23 23:35:48 +02:00
Shay Banon
072fcaa760
Bulk UDP, closes #2201
...
A Bulk UDP service is a service listening over UDP for bulk format requests. The idea is to provide a low latency UDP service that allows to easily index data that is not of critical nature.
The Bulk UDP service is disabled by default, but can be enabled by setting `bulk.udp.enabled` to `true`.
The bulk UDP service performs intenral bulk aggregation of the data and then flushes it based on several parametres:
* `bulk.udp.bulk_actions`: The number of actions to flush a bulk after, defaults to `1000`.
* `bulk.udp.bulk_size`: The size of the current bulk request to flush the request once exceeded, defaults to `5mb`.
* `bulk.udp.flush_interval`: An interval after which the current request is flushed, regarldess of the above limits. Defaults to `5s`.
* `bulk.udp.concurrent_requests`: The number on max in flight bulk requests allowed. Defaults to `4`.
The network settings allowed are:
* `bulk.udp.host`: The host to bind to, defualts to `network.host` which defaults to any.
* `bulk.udp.port`: The port to use, defaults to `9700-9800`.
Here is an example of how it can be used:
> cat bulk.txt
{ "index" : { "_index" : "test", "_type" : "type1" } }
{ "field1" : "value1" }
{ "index" : { "_index" : "test", "_type" : "type1" } }
{ "field1" : "value1" }
> cat bulk.txt | nc -w 0 -u localhost 9700
2012-08-23 22:17:37 +02:00
Shay Banon
ba98b04081
fix wrong check on close
2012-08-23 20:58:40 +02:00
Shay Banon
bb609f696f
add 0.19.10
2012-08-23 13:52:57 +02:00
Shay Banon
1f3b0d4144
Reduce index.shard.recovery.concurrent_streams from 5 to 3 to reduce the load when doing recovery, closes #2199 .
...
the index.shard.recovery.concurrent_streams controls how many streams are opened from a recovery source to a recovery target to transfer index files. Reduce it from 5 to 3 to reduce the load when doing recovery (for example, due to relocation).
Note, recent changes in network buffering will mean that recovery will progress considerably faster, so this change will not affect recovery times.
2012-08-23 13:20:54 +02:00
Shay Banon
37b33cf77d
protect a bit more from bogus (not relevant) exceptions when closing a node
2012-08-23 01:31:11 +02:00
Shay Banon
377914bd07
Upgrade to netty 3.5.5, closes #2196 .
2012-08-23 01:30:49 +02:00
Shay Banon
14c11a94fb
MinimumNumberShouldMatch inconcistency, closes #2194
...
Streamline the use of minimum should match to all relevant queries to accept `minimum_should_match`, and allow all relevant queries to accept the advanced "string" based config
2012-08-22 14:15:08 +02:00
Shay Banon
177568a61f
no need to optimize on the bool query parser, we already do that in the optimizeQuery method
2012-08-22 13:15:22 +02:00
uboness
3fdb9f0a27
Enabled the option of configuring plugin types in the settings. This will also help in tests when testing plugin related functionality
2012-08-21 23:00:24 +02:00
Shay Banon
2dd82675fb
when using wildcard notation delete all indices might kick in even though its disabled
2012-08-21 21:49:16 +02:00
Shay Banon
c33ca2921d
small optimization for global facet with facet filter, by removing the double check on the facet filter
2012-08-21 19:32:55 +02:00
Shay Banon
f03ff2976a
reformat
2012-08-21 14:22:12 +02:00
Jörg Prante
ef6ad6c966
mapping BigDecimal to double or string in XContentBuilder
2012-08-21 14:21:30 +02:00
Shay Banon
b5d9d3dbee
small renames here and there
2012-08-21 14:16:51 +02:00
Martijn van Groningen
8365e7ba0b
- Added explain api. #2184
2012-08-21 13:26:17 +02:00
Shay Banon
a8656c8a6f
Incorrect application of boost in SpanNotQueryBuilder, closes #2192 .
2012-08-21 13:08:23 +02:00
Shay Banon
a80639abf5
exclude xerces from the deps for jts, we don't need it
2012-08-20 17:48:18 +02:00
Shay Banon
dbe2f53a00
Support YAML as content type
2012-08-20 17:40:19 +02:00
Shay Banon
9aae62b4a6
All Field: Automatically detect when field level boosting is used, and optimize when its not, closes #2189 .
2012-08-20 15:07:32 +02:00
Shay Banon
e1fe89389c
change mappersAdded flag to mappingsModified to better reflect any possible change in mappings, not just additions
2012-08-20 13:36:28 +02:00
Shay Banon
79cb0eafc4
better close logic for concurrent recovery streams
2012-08-20 02:05:54 +02:00
Shay Banon
08ecd9d772
refactor all Queue and BlockingQueue creations into a single factory method
2012-08-19 18:15:48 +02:00
Shay Banon
e3a9271000
unify more count and search implementation
2012-08-19 16:54:53 +02:00