Commit Graph

7266 Commits

Author SHA1 Message Date
Shay Banon e9f5e5a8b3 when specifying size 0, just use the total hits collector in query phase
no need the (old) hack of setting the size to 1 anymore really...
2014-01-08 18:28:58 +01:00
Costin Leau 7ae4d101ab add support for tera and peta units 2014-01-08 18:13:49 +02:00
Igor Motov bec6527312 Add support for flat_settings flag to all REST APIs that output settings
Closes #4140
2014-01-08 10:36:36 -05:00
Luca Cavanna 6c23ace68f Fixed open/close index api when using wildcard only
Named wildcards were not always properly replaced with proper values by PathTrie.
Delete index (curl -XDELETE localhost:9200/*) worked anyway as the named wildcard is the last path element (and even if {index} didn't get replaced with '*', the empty string would have mapped to all indices anyway). When the named wildcard wasn't the last path element (e.g. curl -XPOST localhost:29200/*/_close), the variable didn't get replaced with the current '*' value, but with the empty string, which leads to an error as empty index is not allowed by open/close index.

Closes #4564
2014-01-08 15:01:49 +01:00
Shay Banon c6fefacb2f move ack tests for cluster update settings to its own test with scope test, and all other ack tests to scope suite for faster execution 2014-01-08 14:39:43 +01:00
Martijn van Groningen 6dc434822c Changed get index settings api to use new internal get index settings api instead of relying on the cluster state api.
The new internal get index settings api is more efficient when it comes to sending the index settings from the master to the client via the
Also the get index settings support now all the indices options.

Closes #4620
2014-01-08 13:18:57 +01:00
Adrien Grand 0a36d6da26 Fix compilation under javac 1.6. 2014-01-08 12:17:55 +01:00
Nik Everett 8bd9e34e39 Stop FVH from throwing away some query boosts
The FVH was throwing away some boosts on queries stopping a number of
ways to boost phrase matches to the top of the list of fragments from
working.

The plain highlighter also doesn't work for this but that is because it
doesn't support the concept of the same term having a different score at
different positions.

Also update documentation claiming that FHV is nicer for weighing terms
found by query combinations.

Closes #4351
2014-01-08 11:51:48 +01:00
Nik Everett 522d620eb6 Use FHV's phraseLimit
This prevents poisoning the FVH with documents that contain TONS of matches
which take tons of memory and time to highlight.

Closes #4645
2014-01-08 11:27:58 +01:00
Martijn van Groningen 2a0842f1b2 Multi-percolate respects the `rest.action.multi.allow_explicit_index` setting
Closes #4284
2014-01-08 11:18:50 +01:00
Alexander Reelsen ad50afbec8 Simplify usage of nodes info API
Important: This breaks backwards compatibility with 0.90

* Removed endpoints: /_cluster/nodes, /_cluster/nodes/nodeId1,nodeId2
* Disallow usage of parameters, but make required metrics part of URI
* Changed NodesInfoRequest to return everything by default
* Fixed NPE in NodesInfoResponse

Closes #4055
2014-01-08 09:46:04 +01:00
Alexander Reelsen 6ef6bb993c Cluster state API: Improved consistency
Instead of specifying what kind of data should be filtered, this commit
streamlines the API to actually specify, what kind of data should be displayed.
This makes its behaviour similar to the other requests, like NodeIndicesStats.

A small feature has been added as well: If you specify an index to select on, not
only the metadata, but also the routing tables are filtered by index in order
to prevent too big cluster states to be returned.

Also the CAT apis have been changed to only return the wanted data in order to keep
network traffic as small as needed.

Tests for the cluster state API filtering have been added as well.

Note: This change breaks backwards compatibility with 0.90!

Closes #4065
2014-01-08 09:25:20 +01:00
mrsolo 3cffe334ba change url to latest snapshops 2014-01-07 12:18:19 -08:00
Igor Motov b9aaa79afd Add missing license headers, move package names after license headers 2014-01-07 14:28:09 -05:00
Igor Motov 2b49ec138c Fix mixed up duration and duration_in_millis fields in snapshot information output 2014-01-07 14:24:02 -05:00
Igor Motov 5d98341d11 Fix typo in snapshot/restore documentation 2014-01-07 14:03:12 -05:00
Shay Banon 4aa5ef139e randomize flush interval so multiple shards won't flush at the sam time
- also, allow to update interval using update settings on an index
2014-01-07 19:58:28 +01:00
markharwood 602de04692 A GeoHashGrid aggregation that buckets GeoPoints into cells whose dimensions are determined by a choice of GeoHash resolution.
Added a long-based representation of GeoHashes to GeoHashUtils for fast evaluation in aggregations.
The new BucketUtils provides a common heuristic for determining the number of results to obtain from each shard in "top N" type requests.
2014-01-07 18:03:33 +00:00
Shay Banon abf68c472e don't schedule a flush if there are no operations in the translog
this can happen with the 30m time base setting expires
2014-01-07 18:53:58 +01:00
Lee Hinman 2cb40fcb17 Rename "exists" to "found" in TermVector and Get responses
- Adds the "created" field to the index action response
- Reverses Delete class' notFound to Found to avoid double negative
2014-01-07 09:47:07 -07:00
Lee Hinman d23f640cd1 Remove hard-coded "ok": true from REST responses 2014-01-07 09:27:07 -07:00
Luca Cavanna 7166ab6b6f Fixed match assertion that didn't run any assert with object of different types that don't extend Number 2014-01-07 16:21:33 +01:00
Honza Král 623e4a0fc8 [TEST] remove old tests from yaml test suite 2014-01-07 16:19:06 +01:00
Honza Král 4aeaa3bac4 [TEST] Fix yaml tests after #4542 2014-01-07 16:06:25 +01:00
Adrien Grand 107ae66a60 Replace RecyclerUtils with Releasables. 2014-01-07 14:44:24 +01:00
Adrien Grand b9714eae60 Update Eclipse template to use the new license header. 2014-01-07 12:15:19 +01:00
Adrien Grand 3413eedd8d Fix license header og BytesRefComparisonsBenchmark. 2014-01-07 12:09:40 +01:00
Adrien Grand 1ddc0493df Add a benchmark for BytesRef comparisons. 2014-01-07 12:03:24 +01:00
Simon Willnauer a4b2366e1e Add missing license headers 2014-01-07 11:41:01 +01:00
Simon Willnauer 10ec2e948a Fix ASL Header in source files to reflect s/ElasticSearch/Elasticsearch
This commit also removes the license to Shay Banon in favor of soley
Elasticsearch. Thanks Shay for this awesome product you took it far!

Closes #4636
2014-01-07 11:22:01 +01:00
Simon Willnauer fa16969360 Cleanup comments and class names s/ElasticSearch/Elasticsearch
* Clean up s/ElasticSearch/Elasticsearch on docs/*
 * Clean up s/ElasticSearch/Elasticsearch on src/* bin/* & pom.xml
 * Clean up s/ElasticSearch/Elasticsearch on NOTICE.txt and README.textile

Closes #4634
2014-01-07 11:21:51 +01:00
Simon Willnauer 8d9af7e7a5 Start elasticsearch as deamon when running smoketests
In previous version daemonized was default now we need to set it explicitly.
2014-01-07 10:52:06 +01:00
Igor Motov 56b3941706 Make partial dates without year to be 1970 based instead of 2000
Fixes #4451

Date fields without date (HH:mm:ss, for example) are parsed as time on Jan 1, 1970 UTC. However, before this change partial dates without year (MMM dd HH:mm:ss, for example) were parsed as as days of they year 2000. This change makes all partial dates to be treated based on year 1970. This is breaking change - before this change "Dec 15, 10:00:00" in most cases was parsed (and indexed) as "2000-12-15T10:00:00Z". After this change, it will be consistently parsed and indexed as  "1970-12-15T10:00:00Z"
2014-01-06 19:51:08 -05:00
Andrew Raines 5a02ec86a8 cat stats: remove "total" prefix and shorten "primaries" to "pri"
total is the normal case and primaries just shows up in _cat/indices.
2014-01-06 18:50:03 -06:00
Andrew Raines 27a84afe24 Update primaryOrReplica column. 2014-01-06 17:24:33 -06:00
Andrew Raines 19e26122a4 Add rest of index stats to cat/nodes and cat/shards.
Closes #4607.
2014-01-06 17:24:31 -06:00
Andrew Raines 5ca0d47fa4 Add total stats to cat/indices. 2014-01-06 16:08:53 -06:00
Andrew Raines c46721a25f Document h/headers switcheroo. 2014-01-06 16:08:48 -06:00
Andrew Raines 97b51723f4 Add remaining aliases to cat/indices. 2014-01-06 16:08:08 -06:00
Andrew Raines 38894632c3 Swap help and headers params. 2014-01-06 16:08:08 -06:00
Andrew Raines cf81e19cce Add alias sample. 2014-01-06 16:08:08 -06:00
Andrew Raines 03c068fc8a Add rest of indices primaries stats. 2014-01-06 16:08:08 -06:00
Andrew Raines 125ac4f92f Add ByteSizeValue to SegmentStats. 2014-01-06 16:08:08 -06:00
Andrew Raines d657dc49b2 Add more info to table row size errors. 2014-01-06 16:08:08 -06:00
Shay Banon 106b747a08 *a*wait... 2014-01-06 21:45:35 +01:00
Shay Banon 6d1fe75799 simplify by directly getting the search TP info 2014-01-06 21:45:21 +01:00
Shay Banon 01c5be1da3 generic thread pool should always be cached
when using generic thread pool, some elements in the code base rely on the fact that it will always be able to fork it
2014-01-06 21:39:20 +01:00
Adrien Grand 4271d573d6 Page-based cache recycling.
Refactor cache recycling so that it only caches large arrays (pages) that can
later be used to build more complex data-structures such as hash tables.

 - QueueRecycler now takes a limit like other non-trivial recyclers.
 - New PageCacheRecycler (inspired of CacheRecycler) has the ability to cache
   byte[], int[], long[], double[] or Object[] arrays using a fixed amount of
   memory (either globally or per-thread depending on the Recycler impl, eg.
   queue is global while thread_local is per-thread).
 - Paged arrays in o.e.common.util can now optionally take a PageCacheRecycler
   to reuse existing pages.
 - All aggregators' data-structures now use PageCacheRecycler:
   - for all arrays (counts, mins, maxes, ...)
   - LongHash can now take a PageCacheRecycler
   - there is a new BytesRefHash (inspired from Lucene but quite different,
     still; for instance it cheats on BytesRef comparisons by using Unsafe)
     that also takes a PageCacheRecycler

Close #4557
2014-01-06 19:02:00 +01:00
Nik Everett 6481a2fde8 Add a message about import style
We don't have a consistent style and we don't want new contributors to
get hung up on trying to figure out the style.
2014-01-06 18:36:09 +01:00
Simon Willnauer 80de40f195 Use a tolerance to decide if a value is less than the threshold
Adding a small value to the threshold prevents weight deltas that are
very very close to the threshold to not trigger relocations. These
deltas can be rounding errors that lead to unnecessary relocations. In
practice this might only happen under very rare circumstances.
In general it's a good idea for the shard allocator to be a bit
more conversavtive in terms of rebalancing since in general relocation
costs are pretty high.

Closes #4630
2014-01-06 17:47:51 +01:00