3992 Commits

Author SHA1 Message Date
Martijn van Groningen
41b3a454cf Issue #2121 Added limit parameter for string type. 2012-07-31 13:00:03 +02:00
Shay Banon
4eb85bbbd6 Transport/Http: Remove explicit setting of send/receive buffer, and improve netty receive buffer predictor, closes #2124. 2012-07-30 21:37:38 +02:00
Shay Banon
7edafcf9a0 Node Stats: Add jvm buffer pools stats (when available, for java 7 and above), closes #2122. 2012-07-29 00:49:18 +02:00
Shay Banon
57e966e9d7 upgrade to jackson 2.0.4 2012-07-10 23:44:02 +02:00
Shay Banon
99d2f27c84 Introduce Text abstraction, allowing for improved representation of strings, apply to HighlightedField (breaks backward for Java API from String to Text), closes #2093.
By introducing the Text abstraction, we can keep (long) text fields in their UTF8 bytes format, and no need to convert them to a string when serializing it back to Json for example.

The first place we can apply this is to highlighted text, which can be long.. . This does breaks backward comp. for people using the Java API where the HighlightField now has a Text as its content, and not String.
2012-07-10 00:47:37 +02:00
Shay Banon
35233564fd buffer management refactoring
First phase at improving buffer management and reducing even further buffer copies. Introduce a BytesReference abstraction, allowing to more easily slice and "read/write references" from streams. This is the foundation for later using it to create smarter buffers on top of composite netty channels for example (which http now produces) as well as reducing buffer copies when sending transport/rest responses.
2012-07-07 01:26:41 +02:00
Shay Banon
8d1e04a973 have the quick rolling restart stress test also wait for 0 relocating shards 2012-07-06 01:01:18 +02:00
Shay Banon
57023c8ba9 Compression: Support snappy as a compression option, closes #2081. 2012-07-04 17:14:12 +02:00
Shay Banon
e5c89def42 Support wildcard and +/- notation for multi index APIs, closes #2074. 2012-07-01 18:16:04 +02:00
Shay Banon
565db26e13 Store Compression: integer overflow causes failed reads (index is safe), closes #2071. 2012-06-30 01:37:46 +02:00
Shay Banon
8bab859822 simplify tests, doc file length 2012-06-29 16:01:17 +02:00
Shay Banon
f2e39e4ee2 Auto import dangling indices, closes #2067. 2012-06-29 01:01:26 +02:00
Shay Banon
a872c88f03 dangling index handling might still remove the state files for the dangling index, closes #2065. 2012-06-28 13:32:44 +02:00
Matt Weber
d6bc17fee5 Partial update without script
Allow the use of "doc" as the update source when a script is not
specified.  New fields are added, existing fields are overwritten, and
maps are merged recursively.
2012-06-27 21:29:22 +02:00
Igor Motov
a4ad84b5e4 Enable validation of queries with has_child and script filters 2012-06-27 21:23:02 +02:00
Igor Motov
dbeda1ab2b Add missing serialization for error and explanation in validate query request 2012-06-27 21:23:01 +02:00
Shay Banon
2b893fe1e5 Use bloom filter when flushing (applying deletes), closes #2058. 2012-06-26 16:45:29 +02:00
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
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
6fb836c25e better thread naming 2012-06-23 18:35:42 +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
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
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
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
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
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
Martijn van Groningen
1319ed9322 Fixes highlight issue for multivalues fields described in issue #1994 2012-06-11 23:44:45 +02:00
Shay Banon
9905eab73a Update API: Allow to upsert, provide a doc and index it if the doc does not exists, closes #2008. 2012-06-08 02:01:04 +02:00
Shay Banon
ccea825966 terms filter uses less memory when cached
move from a TreeSet to an array, sorting on creation
2012-06-07 23:34:21 +02:00
Shay Banon
f87632fabd Query DSL: term/terms filter performance improvement (bulk reading), closes #1972. 2012-05-23 21:54:31 +02:00
Shay Banon
2c274e59d5 Percolator: Registering (indexing) a new percolator query will still be stored in memory if actually indexing it fails, closes #1965. 2012-05-19 19:36:01 +02:00
Shay Banon
f0007fd4ae Create Index: Allow to provide index warmers when creating an index, closes #1917. 2012-05-07 14:27:30 +03:00
Shay Banon
ca2dc1801c Index Template: Allow to register index warmers in an index template, closes #1916. 2012-05-07 14:00:37 +03:00
Shay Banon
e0f3b7e885 Index Warmup API, closes #1913. 2012-05-06 18:50:35 +03:00
Shay Banon
aeae380258 ClassCastException during percolation query, closes #1905. 2012-05-03 17:57:52 +03:00
Shay Banon
07f3ed05b0 Search Preference: Add _shards prefix to explicitly list shards, and add _prefer_node option, closes #1904 2012-05-03 01:12:22 +03:00
Shay Banon
8ca36c8dd5 allow internally to register index warmup actions, as well as expose stats on it 2012-04-29 00:37:20 +03:00
Shay Banon
a4fb33dbc3 Date Histogram Facet: Add quarter as an interval, closes #1884. 2012-04-24 19:04:09 +03:00
Shay Banon
98b1f368f5 Better handling of fields that have . in their name when doing property based navigation, closes #1875. 2012-04-19 17:28:14 +03:00
Shay Banon
03c9eaf812 NullPointerException in geo_distance_range without to, closes #1865. 2012-04-17 15:51:45 +03:00