3938 Commits

Author SHA1 Message Date
Shay Banon
12a644c89b Stored Compression: failure to fetch document in certain cases (read failure, index compression works), closes #2055. 2012-06-26 01:54:19 +02:00
Shay Banon
6c74f99ed3 better generics in plugin module instance providers 2012-06-25 22:50:15 +02:00
Shay Banon
c39a27a328 "index_analyzer" and "search_analyzer" should override "analyzer", closes #2052. 2012-06-25 22:05:34 +02:00
Shay Banon
11ca3ea0ec deb package fails to start elasticsearch
The ability to use es.default prefix broke the deb package that uses it now.
2012-06-25 21:59:12 +02:00
Shay Banon
5533fe2b88 don't double set settings with es.default. or elasticseearch.default.
though harmless, since we don't have any "default" component, and effectively has not effect on the settings used, it still puts settings that we don't really need
2012-06-25 21:31:18 +02:00
Shay Banon
2e610ea653 add 0.19.7 2012-06-25 17:34:31 +02:00
Shay Banon
d01048c93d return 404 when trying to delete a mapping that does not exists 2012-06-25 17:25:19 +02:00
Shay Banon
c0f9e337ce elasticsearch fails to start due to verification error, closes #2051. 2012-06-25 17:00:26 +02:00
Shay Banon
e523c71a88 add 0.19.6 2012-06-25 15:37:35 +02:00
Shay Banon
376779df18 wait for remove mapping to happen on the cluster before returning control back 2012-06-25 14:30:18 +02:00
Shay Banon
6e7764a083 reduce objects created with bloom filter operations 2012-06-24 20:58:44 +02:00
Shay Banon
2fb867b467 Store Compression: Term Vector Vector, closes #2049. 2012-06-23 23:11:00 +02:00
Shay Banon
ded5b773da River name re-use not possible between node shutdowns, closes #1921.
This effectively happens because we don't flush before deleting a mapping, which causes it to still reply the changes happening for it on the transaction log, meaning the mapping are still around on the index level.
2012-06-23 20:26:27 +02:00
Shay Banon
6fb836c25e better thread naming 2012-06-23 18:35:42 +02:00
Shay Banon
3163499aef Return 503 when threadpool limit is reached, closes #2048. 2012-06-23 17:26:50 +02:00
Shay Banon
efe85f322a better type based inference when using scripts 2012-06-23 17:25:02 +02:00
Shay Banon
df62e39d20 change index.store.compress.stored_fields setting to index.store.compress.stored 2012-06-22 20:08:23 +02:00
Shay Banon
ae77013004 Rest API: Add HEAD support for /{index}/{type}/{id} to quickly check if doc exists or not, closes #2047. 2012-06-22 19:32:38 +02:00
Shay Banon
ed71662275 add debug log if using compressed stored fields 2012-06-22 18:23:15 +02:00
Shay Banon
1780a2a067 Failure to recover properly on node(s) restart
When a node restarts, it might be canceling one recovery of a shard id only to get another one in the next cycle. We should detect this case and handle it properly.

This is a fix to the annoying message seen by users: suspect illegal state: trying to move shard from primary mode to replica mode.
2012-06-22 17:46:57 +02:00
Shay Banon
cc3fab45ff Improve cluster resiliency to disconnected sub clusters + fix a shard allocation bug with quick rolling restarts
Two main changes:

Improve cluster resiliency to disconnected sub clusters. If a node pings a master and that node is no longer registered with the master, improve the rejoin process of that node to the cluster. Also, if a master receives a message from another master, pick one to force to rejoin the cluster (based on cluster state versioning).
On quick rolling restart, without waiting for shard allocation, the shard allocation logic can mess up its counts, causing for strange logic in allocating shards, or validation failures on routing table allocation.
2012-06-22 03:36:54 +02:00
Shay Banon
90371beedc Store Throttling (node level and/or index level) with options on merge or all, closes #2041.
Allow to configure store throttling (only applied on file system based storage), which allows to control the maximum bytes per sec written to the file system. It can be configured to only apply while merging, or on all output operations. The setting can eb set on the node level (in which case the throttling is done across all shards allocated on the node), or index level, in which case it only applied to that index.

The node level settings are indices.store.throttle.type to set the type, with values of none, merge and all (defaults to none). And, also, indices.store.throttle.max_bytes_per_sec (defaults to 0), which can be set to something like 1mb.

The index level settings is index.store.throttle.type for the type, with values of node, none, merge, and all. Defaults to node which will use the "shared" throttling on the node level. And, index.store.throttle.max_bytes_per_sec (defaults to 0).
2012-06-21 21:21:49 +02:00
Shay Banon
9e6cfa77a5 better compressed input offset data structure 2012-06-20 16:01:09 +02:00
Shay Banon
b009c9c652 Stored Fields Compression, closes #2037.
Compressing the stored fields file (the .fdt file) directly allows to have better compression on the size of the index, specifically when indexing (and storing) small documents. The compression will be considerably more effective compared to compressing each doc on its own (when setting compress on the _source mapper). The downside is that more data needs to be uncompressed when loading documents.

The settings to control it is `index.store.compress.stored_fields` set to `true` (it defaults to `false`), and can be enabled dynamically using the update settings API. This allows to enabled compression at a later stage (i.e. old time based indices), and then optimize the index to make sure it gets compressed.
2012-06-20 05:31:34 +02:00
Shay Banon
fbf4c70af9 add simple compression bench 2012-06-19 13:15:44 +02:00
Martijn van Groningen
d66f401ce6 Better fix for mv field highlighting issue #1994 2012-06-19 04:13:47 +02:00
Shay Banon
aebd27afbd abstract compression
abstract the LZF compression into a compress package allowing for different implementation in the future
2012-06-19 04:07:11 +02:00
Shay Banon
1a98a9184e fix test to shutdown threadpool 2012-06-19 03:37:08 +02:00
Shay Banon
7b3b130a62 fix tests to shutdown threadpool 2012-06-19 03:33:44 +02:00
Shay Banon
0a459f7ceb using node settings to get the node name for thread names 2012-06-19 03:03:11 +02:00
Shay Banon
0f47518752 add getTerms for uid filter 2012-06-18 15:04:49 +02:00
Shay Banon
0c7690d105 disable lastGc
disable  using lastGc, it gives strange results...
2012-06-16 15:40:44 +02:00
Chris Male
040fa2581a Added GeoDistance test which verifies the difference in behaviour between ARC and PLANE, causing elliptical results 2012-06-15 22:55:45 +02:00
Shay Banon
14fc3910ff better log message 2012-06-14 22:41:11 +02:00
Shay Banon
2280915d3c upgrade to joda 2.1
with the hack of duplicating BaseDateTime to remove the volatile
2012-06-14 21:57:01 +02:00
Shay Banon
982c8b4664 fix test to work with new noramalization 2012-06-14 15:55:33 +02:00
Chris Male
2315e6d239 Incorporated changes to normalization of latitude and longitudes so latitude normalization is correct and longitude is normalized at the same time 2012-06-14 15:43:36 +02:00
Shay Banon
d5b84bb81b make sure we run in headless mode
applies mainly to the attachments (tika) plugin
2012-06-14 13:14:03 +02:00
Shay Banon
133bd72f8d Multi Search API: Allow to set search_type on REST endpoint URI to apply to all search requests, closes #2023. 2012-06-13 20:47:24 +02:00
Shay Banon
cf1fd26346 fix imports 2012-06-13 16:24:06 +02:00
Ozgur Orhan
b80eee305e Enum -> toString -> toLowerCase fails for TR locale (for opType especially) 2012-06-13 16:20:55 +02:00
Shay Banon
cecb762ede use an array to represent the keys in the uid filter
fix equals and hashcode as well
2012-06-13 16:08:03 +02:00
Shay Banon
dfe6e58e37 use an array to represent the keys in the uid filter 2012-06-13 16:03:45 +02:00
Shay Banon
6eb419649a better/faster parsing of update request (with upsert) 2012-06-13 13:12:37 +02:00
Shay Banon
0b4fe4add3 rename doc to upsert in update API
a better descriptive name for it, and won't clash with future features on the update api
2012-06-13 12:42:10 +02:00
Benjamin Devèze
e4b11e0b15 fix bug index.ttl.disable_purge should be in IndexMetaData 2012-06-12 23:51:32 +02:00
Shay Banon
feb81dd365 improve filter cache cached value to store docset only 2012-06-12 23:26:15 +02:00
Shay Banon
4f59e5d283 combine cacheable method of bit sets into one method 2012-06-12 19:49:59 +02:00
Shay Banon
83df0587ad move remaining CHM construction to the factory method 2012-06-12 17:26:54 +02:00
Shay Banon
ab35e7ce7a move remaining CHM construction to the factory method 2012-06-12 17:26:36 +02:00