Commit Graph

6057 Commits

Author SHA1 Message Date
Boaz Leskes 81928bd323 fixed a broken trace logging line. 2013-11-10 22:59:19 +01:00
Boaz Leskes 2c5d483be1 Added heap_max(_in_bytes) and heap_used_percent to JVM node stats.
Closes #4145
2013-11-10 21:11:07 +01:00
Luca Cavanna b7cc378aeb Schedule retry if the river type is available but the _meta document isn't
With #3782 we changed the execution order of dynamic mapping updates and index operations. We now first send the mapping update to the master node, and then we index the document. This makes sense but caused issues with rivers as they are started due to the cluster changed event that is triggered on the master node right after the mapping update has been applied, but in order for the river to be started its _meta document needs to be available, which is not the case anymore as the index operation most likely hasn't happened yet. As a result in most of the cases rivers don't get started.
What we want to do is retry a few times if the _meta document wasn't found, so that the river gets started anyway.

Closes #4089, #3840
2013-11-10 21:02:06 +01:00
Igor Motov d390f5250b Add river creation test 2013-11-10 21:02:06 +01:00
Luca Cavanna 60117d3acf Added docs for River start and close methods
Closes #3787
2013-11-10 21:01:01 +01:00
Simon Willnauer 77239a76f8 Lazily fill CharTermAttribute if needed in CompletionTokenStream
This adds a delegate to CharTermAttributeImpl to be compatible
with the Percolator that needs a CharTermAttribute. Yet compared
to CharTermAttributImpl we only fill the BytesRef with UTF-8 since
we already have it and only if we need to convert to UTF-16 we do it.

Closes #4028
2013-11-10 20:43:00 +01:00
Lee Hinman f7d5d1e5c9 [DOCS] Update store docs to indicate mmapfs is now the default on 64-bit Linux 2013-11-09 11:42:43 -07:00
Andrew Ochsner 914fd29e70 Change default store impl to mmapfs on 64bit Linux.
Fixes #4134
2013-11-09 11:37:17 -07:00
Shay Banon b17732ea56 upgrade to Netty 3.8.0 2013-11-09 15:41:24 +01:00
Shay Banon ffe5e1861f close transport client to wait for ongoing samples
the transport client should not be executing at the same time as sampling happens, so connection open/close logic will be properly maintained
2013-11-09 14:54:50 +01:00
Simon Willnauer fb7a234040 s/AbstractIntegrationTest/ElasticsearchIntegrationTest 2013-11-08 23:56:44 +01:00
Simon Willnauer 985916038e Just filter test jar and not the main jar file 2013-11-08 23:14:56 +01:00
Clinton Gormley 5af4e02d6c [DOCS] Fix link to statsd plugin
Fixes #4128
2013-11-08 20:29:51 +01:00
Simon Willnauer a824f69d21 Package test-framework as individual jar
This commit causes all classes under 'org.elasticsearch.test.*'
to be included in a 'elasticsearch-${version}-test.jar' that can be
inclued by 3rd party projects or plugins via:

```
 <dependency>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch</artifactId>
    <version>${elasticsearch.version}</version>
    <type>test-jar</type>
    <scope>test</scope>
 </dependency>
```
2013-11-08 15:08:31 +01:00
Costin Leau 97bdc8f9c2 fix issues with JAVA_OPTS/ES_JAVA_OPTS in service.bat
fix handling of non-empty JAVA_OPTS
remove usage of if/else that can be tripped by parenthesis in the variable
fixes #4127
closes #4086

(cherry picked from commit fb44e9aef76026f2269f1fdc8832a44f8c76ec8f)
2013-11-08 15:35:22 +02:00
Clinton Gormley 7189310764 In ctor of GeoPointFieldMapper, geohash_prefix now implicitly enables geohash option
Also improved docs for geopoint type and geohash_cell filte

Closes #3951
2013-11-08 13:52:17 +01:00
Luca Cavanna 4aa59aff00 Added support for external query in postings highlighter
It is now possible to highlight an external query using the postings highlighter, relates to #3630

Closes #4121
2013-11-08 11:31:42 +01:00
Shay Banon 6f286c3382 Unable to create a nested filtered alias on a dataless master
fixes #4112
2013-11-08 11:22:43 +01:00
Shay Banon 7fc4947271 _default_ mapping not applied when using separate master/data nodes
fixes #4124
2013-11-08 10:55:05 +01:00
Cory G Watson 6bbcc34061 Add wabisabi to Scala clients. 2013-11-08 10:34:14 +01:00
Simon Willnauer 76622f1a9b Reduce number of docs in test for #4093 - 30 docs are enough to trigger the bug 2013-11-08 09:59:30 +01:00
Luca Cavanna cdbd7918ee Used the actual index_name when making highlighting using the postings highlighter
Previously the field name specified in the search request was used, which isn't correct in case a custom index_name has been used for a field or the "path":"just_name" has been used in the mapping.

 Closes #4116
2013-11-07 17:19:52 +01:00
Clinton Gormley b27976fbed [DOCS] Fixed the fielddata regex example on core mapping 2013-11-07 17:09:18 +01:00
Clinton Gormley 3465e69e83 [DOCS] Changed all store:yes/no to store:true/false
which is how this setting is stored internally
2013-11-07 16:57:18 +01:00
Olivier Favre 566ca24247 Fix missing affectation in SimpleChildQuerySearchTests.testParentChildQueriesCanHandleNoRelevantTypesInIndex() 2013-11-07 15:58:41 +01:00
Luca Cavanna 2071fb26c2 Trimmed down HighlighterSearchTests
Used common assertHighlight and concise mapping whenever possible
More indexRandom too
2013-11-07 15:44:33 +01:00
Luca Cavanna 06938e6fb0 Fixed fetch subphase to not recreate the HitContext for each hit, so that the object cache stays the same
Fixed also bug in the fast vector highlighter which was raised by enabling the object cache, due to null FieldQuery (NPE) in case the objects are taken from the cache

Added tests to check if there are issues when highlighting multiple fields at the same time

Closes #4106
2013-11-07 15:44:33 +01:00
Simon Willnauer 91e31e530f Move stresstests out of o.e.test 2013-11-07 14:44:05 +01:00
Simon Willnauer 03c326dafa Move o.e.junit to o.e.test.junit 2013-11-07 14:41:17 +01:00
Simon Willnauer e8f4445cc3 Move MockDirectories into o.e.test.store 2013-11-07 14:39:33 +01:00
Simon Willnauer 8ecdb65d94 Move IndexFieldDataServiceTests into corresponding package 2013-11-07 14:37:01 +01:00
Simon Willnauer a9239f8147 Guarantee sorted order for [Double|Long|Bytes]Values
Values returned by [Double|Long|Bytes]Values are sorted today which
is guaranteed by the underlying Lucene index. Several implementations can
make use of this property but the interfaces don't guarantee this behavior.
This commit adds the guarantees and makes use of them in several places.

Note: This change might require sorting for 3rd party implemenations of these
interaces.
2013-11-07 10:29:23 +01:00
Simon Willnauer f5f6259d03 Reduce number of documents in RobinEngineIntegrationTest to prevent memory peaks triggering OOM 2013-11-07 09:44:53 +01:00
Simon Willnauer c946a69e28 Set MaxDirectMemorySize for tests to have consistent upper bounds 2013-11-07 09:44:19 +01:00
Shay Banon 021aa09614 External method to set rootTypeParsers in DocumentMapperParser incorrect
fixes #4113
2013-11-07 01:06:57 +01:00
Simon Willnauer f6c2ee0ab2 Improve stability of RobinEngineIntegrationTest by reducing direct memory usage of the test env 2013-11-06 22:09:00 +01:00
Shay Banon c95c7096e5 Index Stats: Add support for segments stats
closes #4101
2013-11-06 20:44:01 +01:00
Simon Willnauer e1b6988886 move to [1.0.0.Beta2] SNAP 2013-11-06 16:19:50 +01:00
Simon Willnauer 77bc5d5ecf release [1.0.0.Beta1] 2013-11-06 15:32:43 +01:00
Simon Willnauer bb777a2dfe Apply fix for LUCENE-5330 pruning the IndexWriter queue to get rid of pending event
Closes #4093
2013-11-06 14:00:28 +01:00
Simon Willnauer d4873bd6a5 Use same caching strategy for STANDARD and DEFAULT analyzer 2013-11-06 10:58:40 +01:00
Luca Cavanna 47aa01f5d1 Improved highlight *manyDocs tests (fvh and postings) to have random refreshes, flushes and optimizes using indexRandom 2013-11-06 10:30:32 +01:00
Luca Cavanna a3e355d40e Fixed doc_id used in combination with context.searcher(), needs to be topLevelId rather than just docId
Improved test to catch this problem calling refresh more frequently and having the word to highlight in different positions in the text

Closes #4103
2013-11-06 01:20:27 +01:00
Shay Banon ebc8975efd NPE when closing XContentBuilder and using 'pretty' query parameter
fixes #4100
2013-11-06 01:10:58 +01:00
Simon Willnauer 71f5b16137 Make RPM building mandatory
If RPM tools are not installed the release tool now fails with an
appropriate message. The tool now also fails if any of the required
artifacts is not present.
2013-11-05 23:55:13 +01:00
Igor Motov 03179497a3 Add /_cat endpoint 2013-11-05 15:40:48 -05:00
Simon Willnauer 9654631186 Change 'standart' analyzer to use emtpy stopword list by default.
The 'default' / 'standard' analyzer can be a trappy default sicne it filters
english stopwords by default. Yet a default should not be dedicated to a certain language
since elasticsearch is used in many different scenarios where a standard analysis chain
with specialization to english full-text might be rather counter productive.

This commit changes the 'standard' analyzer to use an empty stopword list for indices
that are created from 1.0.0.Beta1 version onwards but will maintain backwards compatibiliy
for older indices.

Closes #3775
2013-11-05 21:07:21 +01:00
Shay Banon 1586339ee0 better support for single value to settings builder where the type gets lost
relates to #4097
2013-11-05 21:04:27 +01:00
Shay Banon 7c32269f4f Dist. Percolation: Use .percolator instead of _percolator for type name
Use .percolator as the internal (hidden) type name for percolators within the index. Seems nicer name to represent "hidden" types within an index.
closes #4090
2013-11-05 20:02:59 +01:00
Lee Hinman af183a1619 Fix `indices.recovery.concurrent_small_file_streams` not being dynamically settable
Fixes #4094
2013-11-05 10:03:21 -07:00