Commit Graph

1525 Commits

Author SHA1 Message Date
kimchy f8b1a8e38b add internal event when an index shard is started 2011-01-12 20:47:35 +02:00
kimchy 5e27e3fca4 support reader as well 2011-01-12 17:11:23 +02:00
kimchy 85b6a982d4 A setting to auto expand the number of replicas of an index (based on data nodes), closes #623. 2011-01-12 16:27:36 +02:00
kimchy f5a9f2d948 If the cluster does not contain any indices then index templates do not survive cluster restart, closes #617. 2011-01-11 23:38:46 +02:00
kimchy a0a714e6a5 Shared Gateway: Allow to set the number of concurrent streams doing snapshot operations, closes #621. 2011-01-11 22:03:44 +02:00
kimchy 93dec72e43 optimize a filtered query with match_all query into a constant score that just wraps the filter 2011-01-11 19:17:17 +02:00
kimchy 6130ac2ee7 optimize query facet in case the query is a filtered query with match_all query to use just the filter 2011-01-11 18:49:05 +02:00
kimchy ba9a12e201 Mapper: Add `byte` type (8bit signed), closes #620. 2011-01-11 16:01:10 +02:00
kimchy 38ea07cfbe fix field data cache setting: used under index.cache.field.type, available values: resident, soft, weak 2011-01-11 06:33:24 +02:00
kimchy a5432ba7ce limit the number of addresses to try and connect to when doing unicast discovery with just the host and not the port to 5 2011-01-11 00:53:53 +02:00
kimchy 90d005a330 add trace logging to unicast discovery 2011-01-10 23:30:46 +02:00
kimchy 50cdf2920f Make ToXContent return a builder 2011-01-10 22:11:12 +02:00
kimchy 89314f29a7 improve multi value field cache handling both in terms of memory usage and GC behavior 2011-01-10 20:58:31 +02:00
kimchy 233ed1f8c6 improve multi value field cache handling both in terms of memory usage and GC behavior 2011-01-10 20:18:12 +02:00
kimchy d4246da7b3 /_open is not recovering indices correctly, closes #615. 2011-01-09 23:31:10 +02:00
kimchy d650705a03 refresh param to bulk not working, closes #614. 2011-01-09 22:06:51 +02:00
kimchy 373af6b1e0 use fs channel to write to file to improve speed of adding to translog 2011-01-09 20:53:40 +02:00
kimchy 5c08271e74 improve numeric stream analysis performance 2011-01-09 19:35:24 +02:00
kimchy 3c3d01347e improve all stream analysis performance 2011-01-09 02:51:41 +02:00
kimchy 8de7beadc8 Highlighting: Sometimes highlighting returns empty fragments even thought there should be, closes #613. 2011-01-08 03:19:49 +02:00
kimchy 7364159d69 NPE for when passing null date to content builder, closes #610. 2011-01-07 23:28:57 +02:00
kimchy 286a6fac76 upgrade to jackson 1.7, also fix (really unused case) of getting compressed smile stored through REST with smile context type 2011-01-07 16:35:52 +02:00
kimchy b9be6d9ea7 Geo-distance in scripts (like custom_score), closes #607. 2011-01-07 15:22:11 +02:00
kimchy 8b8bad7572 build on aferreira improvements to handle empty parameters with no =, and improve component decoding logic 2011-01-07 14:34:34 +02:00
Adriano Ferreira 2d81acbbf2 Adding test for edge cases of RestUtils.decodeQueryString()
When writing tests for the fix of decodeQueryString() to
handle gracefully edge cases like:

    &a
    &a&b

it arises the question of what behavior is desirable
for these pathological cases (vs the regular p=v pairs).
This change just skips them which is consonant
to the preexisting code.

To be thorough, we add tests for a bunch of edge cases, like:

    QUERY           PARSED PARAMS

    ?               {}
    ?&              {}
    ?=              { "": "" }
    ?a              {}
    ?p=v&a          { "p": "v" }
    ?p=v&a&p1=v1    { "p": "v", "p1": "v1" }
    ?a&b            {}
2011-01-07 14:13:26 +02:00
Adriano Ferreira 154dcf007e Make RestUtils.decodeQueryString() more robust in edge cases
The code of decodeQueryString() had some trouble with weird URLs:

(1) an input like "uri?param&p=v" causes an exception to be thrown
(2) an input like "uri?param1&param2" causes an infinite loop

This could be verified against an ES server with requests like

    curl -XGET localhost:9200/test/_analyze?t&text=this+is+a+test
    # the exception stack trace shows up in logs

    curl -XGET localhost:9200/test/_analyze?t1&t2&text=this+is+a+test
    # never returns, never ends

This change fixes these issues.
2011-01-07 14:13:25 +02:00
Adriano Ferreira edb075b611 Minor changes to RestUtils.decodeQueryString() tests
Testing

    RestUtils.decodeQueryString("something", "something".indexOf('?') + 1, params);

is not really checking decoding of an empty query.
Instead, it is testing decoding of "something"
as a query (because "something.index('?')+1" evaluates to 0).
The parameter map is left empty because
"malformed" pairs like "something" are currently skipped.

Instead, this change modify this test to check the edge cases:

+ fromIndex >= queryString.length()
+ fromIndex < 0
2011-01-07 14:13:25 +02:00
kimchy fe0f9ebc9d make lucene document creation allowed to be indexed twice 2011-01-07 14:09:39 +02:00
kimchy c7cb353956 fix serialization of count request 2011-01-06 20:44:36 +02:00
kimchy 6a0a9ff374 parse query with offset 2011-01-06 16:13:15 +02:00
kimchy b9e808f755 improve version loading by going directly to the relevant reader 2011-01-06 11:50:16 +02:00
kimchy 26c5f6c482 Allow ./bin/plugin to install plugins from the local filesystem / custom url, closes #595. 2011-01-06 10:46:42 +02:00
kimchy cc5978393b with the new stemmer analyzer, don't break when there is no language stopwords, but just create it without stopwords 2011-01-06 09:53:56 +02:00
harryf 4a45df88c6 Add Snowball stemmer as analyzer and filter 2011-01-06 09:40:49 +02:00
kimchy 66d63055df Add to node stats the number of times field cache was evicted due to memory constraints, closes #603. 2011-01-05 22:37:15 +02:00
kimchy 754b0d7a0f Add `resident` field cache type, closes #602. 2011-01-05 21:23:47 +02:00
kimchy 0954df0623 change the default interval for gc checks to 1 second 2011-01-05 20:40:52 +02:00
kimchy 31231531e1 Highlighting: The result of highlighting for a hit can contain data from another document, closes #600. 2011-01-05 15:45:46 +02:00
kimchy 6258915205 Bulk API: Add how long the bulk API took (in milliseconds) to the response, closes #599. 2011-01-05 14:12:45 +02:00
kimchy 29b308005a try to be more predictable when doing pagination (still can return duplicates when going to different shards) by sorting on the shards results based on the shard id first 2011-01-04 23:42:44 +02:00
kimchy 0faa05b3f2 add more integration versioning tests 2011-01-04 18:09:46 +02:00
kimchy 9423378f27 add heavy concurrent updates to same doc, and make sure it has the same data on all replicas 2011-01-04 17:44:33 +02:00
kimchy 45c1ab06b3 Versioning, closes #594. 2011-01-04 04:04:30 +02:00
kimchy 9335b3a9e6 Search: Add a `timed_out` element indicating if the search request timed out, closes #592. 2011-01-03 15:25:24 +02:00
kimchy ff6d7254fe optimize query parsing to use single field parser when executing on single field 2011-01-03 15:14:28 +02:00
kimchy 5e029865a8 Des.config=/path/to/config/file doesn't replace $ES_HOME/elasticsearch.conf, just appends to it, closes #588. 2011-01-03 12:53:50 +02:00
kimchy ccdbbef276 don't send leave request when the master node is null 2011-01-03 12:01:33 +02:00
kimchy d2a70b21cd key (which is time) can be negative as well 2011-01-02 22:03:52 +02:00
kimchy 07d361816e Search: Date Histogram Facet, closes #591. 2011-01-02 15:07:45 +02:00
kimchy d523104b91 add some sanity tests with joda for date time manipulation 2011-01-01 23:48:25 +02:00
kimchy b7b775228e add some sanity tests with joda for date time manipulation 2011-01-01 23:40:46 +02:00
kimchy aec720218d Histogram Facet: Improve perf / memory by defaulting to just providing counts with no totals, closes #587. 2011-01-01 17:27:55 +02:00
kimchy e6b4834768 Highlighting: Allow to highlight on fields without term vectors, closes #585. 2010-12-31 18:57:26 +02:00
kimchy 7c959e7ec3 Master based operations (create index, delete index) to automatically retry on retryable cluster blocks (like recovery from gateway) 2010-12-31 14:09:45 +02:00
kimchy a92dbc537a those two should not be final... 2010-12-31 00:23:04 +02:00
Tim Dysinger fd593acafe make every static field final (immutable) 2010-12-31 00:22:31 +02:00
Tim Dysinger 6b672e29f5 Remove infinite loop typo 2010-12-31 00:01:45 +02:00
kimchy 82298d890c Terms Facet: Performance and memory improvements when faceting numeric fields, closes #583. 2010-12-30 19:45:36 +02:00
kimchy 019359a896 add more scanning options on the field data cache 2010-12-30 17:08:32 +02:00
kimchy 6c8b06c967 clean unused method 2010-12-30 16:45:12 +02:00
kimchy 8e8a3a894f upgrade testing framework jars, improve build scripts to share the testing jars 2010-12-30 16:08:38 +02:00
kimchy fea93b7fea Delete By Query: Types are not serialized over network, causing them to be ignored, closes #580. 2010-12-30 14:43:08 +02:00
kimchy 789e1a343f failing to load plugins, return an empty map 2010-12-30 13:16:09 +02:00
kimchy 2e46add991 remove debugging dead code 2010-12-30 13:14:49 +02:00
kimchy 51277a9486 no need to check for shard if tis null, we know its not 2010-12-30 13:12:08 +02:00
kimchy c4646a2b55 use close helper method to close streams 2010-12-30 13:11:20 +02:00
kimchy 76d042f3c5 explicitly pass null values to methods where applicable 2010-12-30 13:09:11 +02:00
kimchy 5a45e9c8bd close stream if file not found (though a stream is not really opened in this case...) 2010-12-30 12:30:50 +02:00
kimchy 20b6e0bdde close stream if file not found (though a stream is not really opened in this case...) 2010-12-30 12:30:33 +02:00
kimchy 4f8b4b405c though not really needed (working on in memory byte array), close the stream opened 2010-12-30 12:27:46 +02:00
kimchy ed996c3e85 Non-data master nodes and non-master data nodes fail to store data, closes #579. 2010-12-30 12:10:40 +02:00
kimchy e3322836b5 make settings prefix simpler and not bail when not prefixed with org.elasticsearch, allow to provide settings prefix for analyzer provider 2010-12-29 19:12:38 +02:00
kimchy f73a5e62d3 improve error message 2010-12-29 18:55:37 +02:00
kimchy c7fca8f0e0 refactor terms facet into string terms facets, paving the way for optimized ones for numeric values 2010-12-29 18:34:08 +02:00
kimchy e764f41341 await closing sockets on shutdown 2010-12-29 12:49:37 +02:00
kimchy f993c4b72b start refactoring of facets to make them more pluggable 2010-12-29 12:49:02 +02:00
kimchy c8bfa455ad REST Create Index: Not taking JSON index settings into account unless wrapped in settings. 2010-12-29 12:10:51 +02:00
kimchy d8aef57baa add filter_cache_size to node stats 2010-12-28 16:57:55 +02:00
kimchy f908a73ec6 allow to construct transport client with settings builder 2010-12-27 20:11:28 +02:00
kimchy a84e0a49b7 change scope to _score 2010-12-27 19:19:17 +02:00
kimchy d73a459f1e when parent mapping is set, fix setting routing to required 2010-12-27 18:41:28 +02:00
kimchy d560ceabe4 use high transport type when sending the cluster state 2010-12-27 16:50:55 +02:00
kimchy 4245eb7395 add node level field cache size to node stats api 2010-12-26 12:18:15 +02:00
kimchy 5dcba8a38c revert back a stupid bug in setting compress to true always introduced in the last commit 2010-12-26 12:05:22 +02:00
kimchy 49deb80d03 when compression is enabled, use the compressed byte buffer to write it to the translog (less data to write), and handle recovery by being able to parse also compressed source 2010-12-24 01:09:15 +02:00
kimchy f2eae5b605 Memory Index Store: Separate to two buffer size types, and fix bugs, closes #577. 2010-12-23 23:21:32 +02:00
kimchy 22fa91efa0 add reconnection code between nodes that are not masters 2010-12-23 17:26:55 +02:00
kimchy f6afc01fe5 add reconnection code between nodes that are not masters 2010-12-23 17:26:32 +02:00
kimchy ff5990daec listener should be threaded 2010-12-23 17:24:23 +02:00
kimchy de7dd3c070 default to try and connect after network disconnection with fault detection 2010-12-23 16:51:09 +02:00
kimchy e313379ed5 only force shutdown on cached threadpool if its not the same as the execture service 2010-12-23 16:13:05 +02:00
kimchy 42e8567477 interrupt joining the cluster thread if shutting down 2010-12-23 16:11:43 +02:00
kimchy 5f25ae4f2f check if the scheduled thread pool is not terminated when trying to terminate it 2010-12-23 15:18:22 +02:00
kimchy 9f72a8d68b use cached thread pool for notifying on disconnections 2010-12-23 14:22:40 +02:00
kimchy 6dcc04b59c Transport: Increase the default transport.tcp.connect_timeout from 1s to 30s, also add `network.tcp.connect_timeout` to conform with other common network settings, closes #576. 2010-12-23 14:20:11 +02:00
kimchy 5c338b7af2 add message to connect transport failure exception 2010-12-23 13:05:39 +02:00
kimchy 5a58ed4274 when replacing a mapping, clear the aggregated mapping information and then readd it 2010-12-23 11:32:16 +02:00
kimchy 473c2fa8f4 add reason for state change logging in index shard, add debug logging on ignore recovery in when handling cluster change in indices cluster 2010-12-23 10:56:37 +02:00
kimchy 5ac42f2a4f Excessive mapping parsing when cluster state changes, closes #575. 2010-12-23 09:53:05 +02:00
kimchy f869951364 rename type method on MapperService to the more descriptive documentMapperWithAutoCreate 2010-12-23 08:43:17 +02:00