Update databases/elasticsearch to 6.0.0. === Breaking changes Aggregations:: - Change parsing of numeric `to` and `from` parameters in `date_range` aggregation Aliases:: - Wrong behavior deleting alias Allocation:: - Remove `cluster.routing.allocation.snapshot.relocation_enabled` setting Analysis:: - Do not allow custom analyzers to have the same names as built-in analyzers - Removing query-string parameters in `_analyze` API CAT API:: - Write -1 on unbounded queue in cat thread pool CRUD:: - Disallow `VersionType.FORCE` for GetRequest - Disallow `VersionType.FORCE` versioning for 6.x indices - If the index does not exist, delete document will not auto create it Cluster:: - Disallow : in cluster and index/alias names - No longer allow cluster name in data path Core:: - Simplify file store - Make boolean conversion strict - Remove the `default` store type. - Remove store throttling. Geo:: - Remove deprecated geo search features - Reduce GeoDistance Insanity Highlighting:: - Remove the postings highlighter and make unified the default highlighter choice Index APIs:: - Remove (deprecated) support for '+' in index expressions - Delete index API to work only against concrete indices - Open/Close index api to allow_no_indices by default - Remove support for controversial `ignore_unavailable` and `allow_no_indices` from indices exists api Index Templates:: - Allows multiple patterns to be specified for index templates Indexed Scripts/Templates:: - Scripting: Remove search template actions Ingest:: - update ingest-user-agent regexes.yml - remove ingest.new_date_format Inner Hits:: - Return the _source of inner hit nested as is without wrapping it into its full path context Java API:: - Enforce Content-Type requirement on the rest layer and remove deprecated methods Java REST Client:: - Remove deprecated created and found from index, delete and bulk Mapping:: - Reject out of range numbers for float, double and half_float - Enforce at most one type. - Disallow `include_in_all` for 6.0+ indices - Disable _all by default, disallow configuring _all on 6.0+ indices - Throw an exception on unrecognized "match_mapping_type" Network:: - Remove unused Netty-related settings - Remove blocking TCP clients and servers - Remove `modules/transport_netty_3` in favor of `netty_4` - Remove LocalTransport in favor of MockTcpTransport Packaging:: - Configure heap dump path out of the box - Remove support for ES_INCLUDE - Setup: Change default heap to 1G - Use config directory to find jvm.options - Remove implicit 32-bit support - Remove default path settings - Remove path.conf setting - Honor masking of systemd-sysctl.service - Rename CONF_DIR to ES_PATH_CONF - Remove customization of ES_USER and ES_GROUP Percolator:: - Remove deprecated percolate and mpercolate apis Plugin Analysis ICU:: - Upgrade icu4j for the ICU analysis plugin to 59.1 - Upgrade icu4j to latest version Plugin Delete By Query:: - Require explicit query in _delete_by_query API Plugin Discovery Azure Classic:: - Remove `discovery.type` BWC layer from the EC2/Azure/GCE plugins Plugin Discovery EC2:: - Ec2 Discovery: Cleanup deprecated settings - Discovery EC2: Remove region setting - AWS Plugins: Remove signer type setting Plugin Lang JS:: - Remove lang-python and lang-javascript Plugin Mapper Attachment:: - Remove mapper attachments plugin Plugin Repository Azure:: - Remove global `repositories.azure` settings - Remove auto creation of container for azure repository Plugin Repository GCS:: - GCS Repository: Remove specifying credential file on disk Plugin Repository S3:: - S3 Repository: Cleanup deprecated settings - S3 Repository: Remove region setting - S3 Repository: Remove bucket auto create - S3 Repository: Remove env var and sysprop credentials support - Remove deprecated S3 settings Plugins:: - Make plugin loading stricter Query DSL:: - Remove deprecated `type` and `slop` field in `match` query - Remove several parse field deprecations in query builders - Remove deprecated parameters from `ids_query` - Refactor QueryStringQuery for 6.0 - Change `split_on_whitespace` default to false - Remove deprecated template query - Throw exception in scroll requests using `from` - Remove deprecated `minimum_number_should_match` in BoolQueryBuilder - Remove support for empty queries - Remove deprecated query names: in, geo_bbox, mlt, fuzzy_match and match_fuzzy - The `terms` query should always map to a Lucene `TermsQuery`. - Be strict when parsing values searching for booleans - Remove collect payloads parameter REST:: - IndexClosedException to return 400 rather than 403 - Remove comma-separated feature parsing for GetIndicesAction - Improve REST error handling when endpoint does not support HTTP verb, add OPTIONS support - Remove ldjson support and document ndjson for bulk/msearch - Enable strict duplicate checks for all XContent types - Enable strict duplicate checks for JSON content - Remove lenient stats parsing - Remove allow unquoted JSON - Remove FORCE version_type Scripting:: - remove lang url parameter from stored script requests - Disallow lang to be used with Stored Scripts - Remove Deprecated Script Settings - Scripting: Remove native scripts - Scripting: Remove file scripts - Make dates be ReadableDateTimes in scripts - Remove groovy scripting language - Remove script access to term statistics Search:: - Make `index` in TermsLookup mandatory - Removes FieldStats API - Remove deprecated fielddata_fields from search request - Removes deprecated fielddata_fields - ProfileResult and CollectorResult should print machine readable timing information - Remove indices query - Remove ignored type parameter in search_shards api Sequence IDs:: - Change certain replica failures not to fail the replica shard Settings:: - Settings: Remove shared setting property - Settings: Remove support for yaml and json config files Shadow Replicas:: - Remove shadow replicas Similarities:: - Similarity should accept dynamic settings when possible === Breaking Java changes Aggregations:: - Remove the unused SignificantTerms.compareTerm() method - Make SignificantTerms.Bucket an interface rather than an abstract class - Fix NPE when `values` is omitted on percentile_ranks agg - Make Terms.Bucket an interface rather than an abstract class - Compound order for histogram aggregations Internal:: - Collapses package structure for some bucket aggs Java API:: - Remove deprecated IdsQueryBuilder ctor - Removing unneeded getTookInMillis method - Java api: ActionRequestBuilder#execute to return a PlainActionFuture Java High Level REST Client:: - Unify the result interfaces from get and search in Java client - Allow RestHighLevelClient to use plugins Java REST Client:: - Rename client artifacts Network:: - Simplify TransportAddress Plugin Delete By Query:: - Move DeleteByQuery and Reindex requests into core Plugins:: - Drop name from TokenizerFactory Query DSL:: - Remove QueryParseContext - Remove QueryParseContext from parsing QueryBuilders REST:: - Return index name and empty map for `/{index}/_alias` with no aliases === Deprecations Index APIs:: - Deprecated use of + in index expressions Index Templates:: - Restore deprecation warning for invalid match_mapping_type values Indexed Scripts/Templates:: - Scripting: Deprecate stored search template apis Internal:: - Deprecate XContentType auto detection methods in XContentFactory Percolator:: - Deprecate percolate query's document_type parameter. Plugins:: - Plugins: Add backcompat for sha1 checksums Scripting:: - Scripting: Change keys for inline/stored scripts to source/id - Scripting: Deprecate native scripts - Scripting: Deprecate index lookup - Deprecate Fine Grain Settings for Scripts - Scripting: Deprecate file script settings - Scripting: Deprecate file scripts Settings:: - Settings: Update settings deprecation from yml to yaml - Deprecate settings in .yml and .json Tribe Node:: - Deprecate tribe service === New features Aggregations:: - SignificantText aggregation - like significant_terms, but for text Analysis:: - Expose simplepattern and simplepatternsplit tokenizers - Parse synonyms with the same analysis chain Core:: - Enable index-time sorting Internal:: - Automatically adjust search threadpool queue_size Mapping:: - Add new ip_range field type Parent/Child:: - Move parent_id query to the parent-join module - Introduce ParentJoinFieldMapper, a field mapper that creates parent/child relation within documents of the same index Plugin Analysis ICU:: - Add ICUCollationFieldMapper Search:: - Automatically early terminate search query based on index sorting Sequence IDs:: - Add a scheduled translog retention check - Initialize sequence numbers on a shrunken index - Initialize primary term for shrunk indices - Introduce translog size and age based retention policies Stats:: - Adds nodes usage API to monitor usages of actions Task Manager:: - Task Management Upgrade API:: - TemplateUpgraders should be called during rolling restart === Enhancements Aggregations:: - Add strict parsing of aggregation ranges - Adds rewrite phase to aggregations - Tweak AggregatorBase.addRequestCircuitBreakerBytes - Add superset size to Significant Term REST response - Add document count to Matrix Stats aggregation response - Adds an implementation of LogLogBeta for the cardinality aggregation - Support distance units in GeoHashGrid aggregation precision - Reject multiple methods in `percentiles` aggregation - Use `global_ordinals_hash` execution mode when sorting by sub aggregations. - Add a specialized deferring collector for terms aggregator - Agg builder accessibility fixes - Remove support for the include/pattern syntax. - Promote longs to doubles when a terms agg mixes decimal and non-decimal numbers Allocation:: - Adjust status on bad allocation explain requests - Promote replica on the highest version node Analysis:: - [Analysis] Support normalizer in request param - Enforce validation for PathHierarchy tokenizer - [analysis-icu] Allow setting unicodeSetFilter - Match- and MultiMatchQueryBuilder should only allow setting analyzer on string values Bulk:: - Simplify bulk request execution CAT API:: - expand `/_cat/nodes` to return information about hard drive CRUD:: - Added validation for upsert request Circuit Breakers:: - ScriptService: Replace max compilation per minute setting with max compilation rate Cluster:: - Validate a joining node's version with version of existing cluster nodes - Switch indices read-only if a node runs out of disk space - Add a cluster block that allows to delete indices that are read-only - Separate publishing from applying cluster states - Adds cluster state size to /_cluster/state response Core:: - Allow `InputStreamStreamInput` array size validation where applicable - Refactor bootstrap check results and error messages - Add BootstrapContext to expose settings and recovered state to bootstrap checks - Unit testable index creation task on MetaDataCreateIndexService - Ignore .DS_Store files on macOS - Add max file size bootstrap check - Add compatibility versions to main action response - Index ids in binary form. - Explicitly reject duplicate data paths - Use SPI in High Level Rest Client to load XContent parsers - Upgrade to lucene-7.0.0-snapshot-a0aef2f - Speed up PK lookups at index time. - Use Java 9 FilePermission model - Add friendlier message on bad keystore permissions - Epoch millis and second formats accept float implicitly - Remove connect SocketPermissions from core - Add repository-url module and move URLRepository - Remove accept SocketPermissions from core - Move IfConfig.logIfNecessary call into bootstrap - Remove artificial default processors limit - Simplify write failure handling - Improve bootstrap checks error messages Discovery:: - Allow plugins to validate cluster-state on join Engine:: - Add refresh stats tracking for realtime get - Introducing a translog deletion policy - Fill missing sequence IDs up to max sequence ID when recovering from store - Use sequence numbers to identify out of order delivery in replicas & recovery - Add replica ops with version conflict to translog - Clarify global checkpoint recovery - Move the IndexDeletionPolicy to be engine internal Exceptions:: - IllegalStateException: Only duplicated jar instead of classpath Highlighting:: - Picks offset source for the unified highlighter directly from the es mapping Index APIs:: - Let primary own its replication group - Create index request should return the index name Index Templates:: - Fix error message for a put index template request without index_patterns Ingest:: - Add Ingest-Processor specific Rest Endpoints & Add Grok endpoint - Port support for commercial GeoIP2 databases from Logstash. - add `exclude_keys` option to KeyValueProcessor - Allow removing multiple fields in ingest processor - Add target_field parameter to ingest processors Inner Hits:: - Reuse inner hit query weight Internal:: - TemplateUpgradeService should only run on the master - Cleanup IndexFieldData visibility - Bump the min compat version to 5.6.0 - "shard started" should show index and shard ID - Break out clear scroll logic from TransportClearScrollAction - Add helper methods to TransportActionProxy to identify proxy actions and requests - Add remote cluster infrastructure to fetch discovery nodes. - Add the ability to set eager_global_ordinals in the new parent-join field - Disallow multiple parent-join fields per mapping - Remove the need for _UNRELEASED suffix in versions - Optimize the order of bytes in uuids for better compression. - Prevent cluster internal `ClusterState.Custom` impls to leak to a client - Use holder pattern for lazy deprecation loggers - Allow `ClusterState.Custom` to be created on initial cluster states - Try to convince the JVM not to lose stacktraces - Make document write requests immutable - Add assertions enabled helper Java API:: - Always Accumulate Transport Exceptions Java High Level REST Client:: - [DOCS] restructure java clients docs pages - Use SPI in High Level Rest Client to load XContent parsers - Add support for clear scroll to high level REST client - Add search scroll method to high level REST client - Add search method to high level REST client - Make RestHighLevelClient Closeable and simplify its creation - Add info method to High Level Rest client - Add support for named xcontent parsers to high level REST client - Add BulkRequest support to High Level Rest client - Add UpdateRequest support to High Level Rest client - Add delete API to the High Level Rest Client - Add Index API to High Level Rest Client - Add get/exists method to RestHighLevelClient - Add fromxcontent methods to delete response - Add REST high level client gradle submodule and first simple method - Add doc_count to ParsedMatrixStats - Add fromXContent method to ClearScrollResponse - ClearScrollRequest to implement ToXContentObject - SearchScrollRequest to implement ToXContentObject - Add aggs parsers for high level REST Client Java REST Client:: - Shade external dependencies in the rest client jar - RestClient uses system properties and system default SSLContext - Wrap rest httpclient with doPrivileged blocks Logging:: - Prevent excessive disk consumption by log files - Use LRU set to reduce repeat deprecation messages Mapping:: - More efficient encoding of range fields. - Don't detect source's XContentType in DocumentParser.parseDocument() - Better validation of `copy_to`. - Optimize `terms` queries on `ip` addresses to use a `PointInSetQuery` whenever possible. - Loosen the restrictions on disabling _all in 6.x - Date detection should not rely on a hardcoded set of characters. - Identify documents by their `_id`. Network:: - Add additional low-level logging handler - Unwrap causes when maybe dying - Move TransportStats accounting into TcpTransport - Simplify connection closing and cleanups in TcpTransport - Disable the Netty recycler in the client - Remove Netty logging hack - Isolate SocketPermissions to Netty - Wrap netty accept/connect ops with doPrivileged - Replace Socket, ServerSocket, and HttpServer usages in tests with mocksocket versions Packaging:: - Remove memlock suggestion from systemd service - Set address space limit in systemd service file - Version option should display if snapshot - Ignore JVM options before checking Java version - Also skip JAVA_TOOL_OPTIONS on Windows - Introduce elasticsearch-env for Windows - Introduce elasticsearch-env - Stop exporting HOSTNAME from scripts - Set number of processes in systemd unit file Parent/Child:: - Remove ParentJoinFieldSubFetchPhase - Support parent id being specified as number in the _source Percolator:: - Store the QueryBuilder's Writable representation instead of its XContent representation - Add support for selecting percolator query candidate matches containing wildcard / prefix queries Plugin Discovery EC2:: - Read ec2 discovery address from aws instance tags Plugin Lang Painless:: - Allow Custom Whitelists in Painless - Update Painless to Allow Augmentation from Any Class - Add Needs Methods to Painless Script Context Factories - Support Script Context Stateful Factory in Painless - Generate Painless Factory for Creating Script Instances - Update Painless to Use New Script Contexts - Optimize instance creation in LambdaBootstrap - Make Painless Compiler Use an Instance Per Context - Make PainlessScript An Interface Plugin Repository GCS:: - GCS Repository: Add secure storage of credentials Plugin Repository HDFS:: - Add permission checks before reading from HDFS stream - Add doPrivilege blocks for socket connect ops in repository-hdfs - Add Kerberos support for Repo HDFS plugin Plugin Repository S3:: - S3 Repository: Add back repository level credentials Plugins:: - Adjust SHA-512 supported format on plugin install - Move tribe to a module - Plugins can register pre-configured char filters - Add purge option to remove plugin CLI - Allow plugins to register pre-configured tokenizers - Move ReindexAction class to core - Make PreConfiguredTokenFilter harder to misuse - Plugins: Remove leniency for missing plugins dir - Add doPrivilege blocks for socket connect operations in plugins Query DSL:: - Make slop optional when parsing `span_near` query - Require a field when a `seed` is provided to the `random_score` function. - Add support for auto_generate_synonyms_phrase_query in match_query, multi_match_query, query_string and simple_query_string REST:: - Cat shards bytes - Refactor PathTrie and RestController to use a single trie for all methods - Make ObjectParser support string to boolean conversion Recovery:: - Introduce a History UUID as a requirement for ops based recovery - Goodbye, Translog Views - Disallow multiple concurrent recovery attempts for same target shard - Live primary-replica resync (no rollback) - Peer Recovery: remove maxUnsafeAutoIdTimestamp hand off - Introduce sequence-number-based recovery Scripting:: - Scripting: Rename SearchScript.needsScores to needs_score - Scripting: Add optional context parameter to put stored script requests - Add New Security Script Settings - Add StatefulFactoryType as optional intermediate factory in script contexts - Make contexts available to ScriptEngine construction - Make ScriptEngine.compile generic on the script context - Add instance and compiled classes to script contexts Search:: - Add soft limit on allowed number of script fields in request - Add a soft limit for the number of requested doc-value fields - Rewrite search requests on the coordinating nodes - Ensure query resources are fetched asynchronously during rewrite - Introduce a new Rewriteable interface to streamline rewriting - Reduce the scope of `QueryRewriteContext` - Reduce the overhead of timeouts and low-level search cancellation. - Reduce profiling overhead. - Prevent `can_match` requests from sending to incompatible nodes - Add a shard filter search phase to pre-filter shards based on query rewriting - Ensure we rewrite common queries to `match_none` if possible - Limit the number of concurrent shard requests per search request - Add cluster name validation to RemoteClusterConnection - Speed up sorted scroll when the index sort matches the search sort - Leverage scorerSupplier when applicable. - Add Cross Cluster Search support for scroll searches - Track EWMA[1] of task execution time in search threadpool executor - Query range fields by doc values when they are expected to be more efficient than points - Search: Fairer balancing when routing searches by session ID - Add parsing from xContent to Suggest - Add parsing from xContent to ShardSearchFailure - Eliminate array access in tight loops when profiling is enabled. - Support Multiple Inner Hits on a Field Collapse Request - Expand cross cluster search indices for search requests to the concrete index or to it's aliases Search Templates:: - Add max concurrent searches to multi template search Sequence IDs:: - Roll translog generation on primary promotion - Restoring from snapshot should force generation of a new history uuid - Add global checkpoint tracking on the primary - Introduce global checkpoint background sync - Move `UNASSIGNED_SEQ_NO` and `NO_OPS_PERFORMED` to SequenceNumbers` - Move primary term from ReplicationRequest to ConcreteShardRequest - Add reason to global checkpoint updates on replica - Introduce primary/replica mode for GlobalCheckPointTracker - Throw back replica local checkpoint on new primary - Update global checkpoint when increasing primary term on replica - Enable a long translog retention policy by default - Introduce primary context - Block older operations on primary term transition - Block global checkpoint advances when recovering - Add primary term to doc write response - Preserve multiple translog generations - Introduce translog generation rolling - Replicate write failures - Introduce sequence-number-aware translog - Introduce translog no-op - Tighten sequence numbers recovery - Add BWC layer to seq no infra and enable BWC tests - Add internal _primary_term doc values field, fix _seq_no indexing - Add global checkpoint to translog checkpoints - Sequence numbers commit data for Lucene uses Iterable interface - Simplify GlobalCheckpointService and properly hook it for cluster state updates - Fill gaps on primary promotion - Introduce clean transition on primary promotion - Guarantee that translog generations are seqNo conflict free - Inline global checkpoints Settings:: - Add disk threshold settings validation - Enable cross-setting validation - Validate `transport.profiles.*` settings - Cleanup network / transport related settings - Emit settings deprecation logging at most once - IndexMetaData: Introduce internal format index setting - Persist created keystore on startup unless keystore is present - Settings: Add keystore.seed auto generated secure setting - Settings: Add keystore creation to add commands Snapshot/Restore:: - Fixed references to Multi Index Syntax - Improves snapshot logging and snapshot deletion error handling - Enhances get snapshots API to allow retrieving repository index only Stats:: - Update `IndexShard#refreshMetric` via a `ReferenceManager.RefreshListener` - Expose disk usage estimates in nodes stats Store:: - Remote support for lucene versions without checksums Suggesters:: - Remove deprecated _suggest endpoint Task Manager:: - Add descriptions to bulk tasks Translog:: - Translog file recovery should not rely on lucene commits === Bug fixes Aggregations:: - Do not delegate a null scorer to LeafBucketCollectors - Create weights lazily in filter and filters aggregation - Fix IndexOutOfBoundsException in histograms for NaN doubles (#26787) - Scripted_metric _agg parameter disappears if params are provided - Fixes array out of bounds for value count agg - Aggregations bug: Significant_text fails on arrays of text. - Check bucket metric ages point to a multi bucket agg - Terms aggregation should remap global ordinal buckets when a sub-aggregator is used to sort the terms - Correctly set doc_count when MovAvg "predicts" values on existing buckets - DateHistogram: Fix `extended_bounds` with `offset` - Fix ArrayIndexOutOfBoundsException when no ranges are specified in the query Aliases:: - mget with an alias shouldn't ignore alias routing - GET aliases should 404 if aliases are missing Allocation:: - Fix DiskThresholdMonitor flood warning - Allow wildcards for shard IP filtering Analysis:: - Pre-configured shingle filter should disable graph analysis - PatternAnalyzer should lowercase wildcard queries when `lowercase` is true. CAT API:: - Fix NPE for /_cat/indices when no primary shard CRUD:: - Serialize and expose timeout of acknowledged requests in REST layer - Fix silent loss of last command to _bulk and _msearch due to missing newline Cache:: - Reduce the default number of cached queries. - fix bug of weight computation Circuit Breakers:: - Checks the circuit breaker before allocating bytes for a new big array Cluster:: - Register setting `cluster.indices.tombstones.size` Core:: - Correctly encode warning headers - Fix cache compute if absent for expired entries - Timed runnable should delegate to abstract runnable - Stop invoking non-existent syscall - MetaData Builder doesn't properly prevent an alias with the same name as an index - Release operation permit on thread-pool rejection - Node should start up despite of a lingering `.es_temp_file` - Fix cache expire after access Dates:: - Fix typo in date format Discovery:: - MasterNodeChangePredicate should use the node instance to detect master change Engine:: - Die with dignity while merging - Engine - do not index operations with seq# lower than the local checkpoint into lucene Geo:: - Fix typo in GeoUtils#isValidLongitude Highlighting:: - Fix percolator highlight sub fetch phase to not highlight query twice - FastVectorHighlighter should not cache the field query globally - Higlighters: Fix MultiPhrasePrefixQuery rewriting - Fix nested query highlighting Index APIs:: - Shrink API should ignore templates - Rollover max docs should only count primaries - Validates updated settings on closed indices Ingest:: - date processor should not fail if timestamp is specified as json number - date_index_name processor should not fail if timestamp is specified as json number - Sort Processor does not have proper behavior with targetField - fix grok's pattern parsing to validate pattern names in expression - Remove support for Visio and potm files - Fix floating-point error when DateProcessor parses UNIX - add option for _ingest.timestamp to use new ZonedDateTime (5.x backport) Inner Hits:: - Do not allow inner hits that fetch _source and have a non nested object field as parent - When fetching nested inner hits only access stored fields when needed - If size / offset are out of bounds just do a plain count - Fix Source filtering in new field collapsing feature Internal:: - Bump version to 6.0.1 - `IndexShard.routingEntry` should only be updated once all internal state is ready - Catch exceptions and inform handler in RemoteClusterConnection#collectNodes - Internal: Add versionless alias for rest client codebase in policy files - Upgrade Lucene to version 7.0.1 - Fix BytesReferenceStreamInput#skip with offset - Fix race condition in RemoteClusterConnection node supplier - Initialise empty lists in BaseTaskResponse constructor - Extract a common base class for scroll executions - Obey lock order if working with store to get metadata snapshots - Fix Version based BWC and set correct minCompatVersion - Fix `_field_caps` serialization in order to support cross cluster search - Avoid race when shutting down controller processes - Fix handling of document failure exception in InternalEngine - Ensure remote cluster is connected before fetching `_field_caps` Java API:: - BulkProcessor flush runnable preserves the thread context from creation time Java High Level REST Client:: - Make RestHighLevelClient's Request class public - Forbid direct usage of ContentType.create() methods - Make ShardSearchTarget optional when parsing ShardSearchFailure Java REST Client:: - Better message text for ResponseException - rest-client-sniffer: configurable threadfactory Logging:: - Allow not configure logging without config Mapping:: - Allow copying from a field to another field that belongs to the same nested object. - Fixed bug that mapper_parsing_exception is thrown for numeric field with ignore_malformed=true when inserting "NaN" - Coerce decimal strings for whole number types by truncating the decimal part - Fix parsing of ip range queries. - Disable date field mapping changing - Correctly enable _all for older 5.x indices - token_count datatype should handle null value - keep _parent field while updating child type mapping - ICUCollationKeywordFieldMapper use SortedSetDocValuesField - Fix serialization of the `_all` field. More Like This:: - Pass over _routing value with more_like_this items to be retrieved NOT CLASSIFIED:: - DocumentMissingException during Logstash scripted upsert - An assertion trips when master opens an index from before 5.x Nested Docs:: - In case of a single type the _id field should be added to the nested document instead of _uid field - Inner hits source filtering not working Network:: - Fixed ByteBuf leaking in org.elasticsearch.http.netty4.Netty4HttpRequestHandler - Check for closed connection while opening - Ensure pending transport handlers are invoked for all channel failures - Notify onConnectionClosed rather than onNodeDisconnect to prune transport handlers - Release pipelined http responses on close - Fix error message if an incompatible node connects Packaging:: - Fix handling of Windows paths containing parentheses - Exit Windows scripts promptly on failure - Pass config path as a system property - ES_HOME needs to be made absolute before attempt at traversal - Fix elasticsearch-keystore handling of path.conf - Stop disabling explicit GC - Avoid failing install if system-sysctl is masked - Get short path name for native controllers - When stopping via systemd only kill the JVM, not its control group - remove remaining references to scripts directory - Handle parentheses in batch file path - Detect modified keystore on package removal - Create keystore on RPM and Debian package install - Add safer empty variable checking for Windows - Export HOSTNAME environment variable - Fix daemonization command status test - Set RuntimeDirectory in systemd service Parent/Child:: - The default _parent field should not try to load global ordinals Percolator:: - Also support query extraction for queries wrapped inside a ESToParentBlockJoinQuery - Fix range queries with date range based on current time in percolator queries. Plugin Analysis Kuromoji:: - Fix kuromoji default stoptags Plugin Analysis Phonetic:: - Fix beidermorse phonetic token filter for unspecified `languageset` Plugin Discovery File:: - Fix discovery-file plugin to use custom config path Plugin Ingest Attachment:: - Add missing mime4j library Plugin Lang Painless:: - Painless: allow doubles to be casted to longs. Plugin Repository Azure:: - Azure snapshots can not be restored anymore - Snapshot : azure module - accelerate the listing of files (used in delete snapshot) - Use Azure upload method instead of our own implementation - Make calls to CloudBlobContainer#exists privileged Plugin Repository GCS:: - Ensure that gcs client creation is privileged Plugin Repository HDFS:: - Add Log4j to SLF4J binding for repository-hdfs - Upgrading HDFS Repository Plugin to use HDFS 2.8.1 Client Plugin Repository S3:: - Avoid SecurityException in repository-S3 on DefaultS3OutputStream.flush() - Wrap getCredentials() in a doPrivileged() block Plugins:: - X-Pack plugin download fails on Windows desktop - Fix plugin installation permissions Query DSL:: - Fixed incomplete JSON body on count request making org.elasticsearch.rest.action.RestActions#parseTopLevelQueryBuilder go into endless loop - SpanNearQueryBuilder should return the inner clause when a single clause is provided - Refactor field expansion for match, multi_match and query_string query - WrapperQueryBuilder should also rewrite the parsed query REST:: - Rest test fixes - Fix inconsistencies in the rest api specs for cat.snapshots - Fix inconsistencies in the rest api specs for *_script - exists template needs a template name - Fix handling of invalid error trace parameter - Fix handling of exceptions thrown on HEAD requests - Fixed NPEs caused by requests without content. - Fix get mappings HEAD requests Recovery:: - Close translog view after primary-replica resync Reindex API:: - Fix update_by_query's default size parameter - Reindex: don't duplicate _source parameter - Add qa module that tests reindex-from-remote against pre-5.0 versions of Elasticsearch Scroll:: - Fix single shard scroll within a cluster with nodes in version `>= 5.3` and `<= 5.3` Search:: - Fail query when a sort is provided in conjunction with rescorers - Let search phases override max concurrent requests - Avoid stack overflow on search phases - Fix search_after with geo distance sorting - Fix serialization errors when cross cluster search goes to a single shard - Early termination with index sorting should not set terminated_early in the response - Format doc values fields. - Fix term(s) query for range field - Caching a MinDocQuery can lead to wrong results. - Fix random score generation when no seed is provided. - Merge FunctionScoreQuery and FiltersFunctionScoreQuery - Respect cluster alias in `_index` aggs and queries - First increment shard stats before notifying and potentially sending response - Remove assertion about deviation when casting to a float. - Prevent skipping shards if a suggest builder is present - Ensure remote cluster alias is preserved in inner hits aggs - Do not search locally if remote index pattern resolves to no indices - Adds check for negative search request size - Make sure range queries are correctly profiled. - Fix RangeFieldMapper rangeQuery to properly handle relations - Fix ExpandSearchPhase when response contains no hits - Refactor simple_query_string to handle text part like multi_match and query_string - Fix `_exists_` in query_string on empty indices. - Fix script field sort returning Double.MAX_VALUE for all documents - Compute the took time of the query after the expand phase of field collapsing Sequence IDs:: - Fire global checkpoint sync under system context - Fix pre-6.0 response to unknown replication actions - Track local checkpoint on primary immediately - Initialize max unsafe auto ID timestamp on shrink - Use correct primary term for replicating NOOPs - Handle already closed while filling gaps - TranslogWriter.assertNoSeqNumberConflict failure - Avoid losing ops in file-based recovery - Handle primary failure handling replica response Settings:: - Emit settings deprecation logging on empty update - Fix filtering for ListSetting - Fix settings serialization to not serialize secure settings or not take the total size into account - Keystore CLI should use the AddFileKeyStoreCommand for files - Allow resetting settings that use an IP validator - Updating an unrecognized setting should error out with that reason - Settings: Fix setting groups to include secure settings Similarities:: - Add boolean similarity to built in similarity types Snapshot/Restore:: - Snapshot/Restore: better handle incorrect chunk_size settings in FS repo - Snapshot/Restore: Ensure that shard failure reasons are correctly stored in CS - Output all empty snapshot info fields if in verbose mode - Remove redundant and broken MD5 checksum from repository-s3 - Consolidates the logic for cleaning up snapshots on master election - Removes completed snapshot from cluster state on master change - Keep snapshot restore state and routing table in sync - Master failover during snapshotting could leave the snapshot incomplete - Fix inefficient (worst case exponential) loading of snapshot repository Stats:: - Fix RestGetAction name typo - Keep cumulative elapsed scroll time in microseconds - _nodes/stats should not fail due to concurrent AlreadyClosedException - Avoid double decrement on current query counter - Adjust available and free bytes to be non-negative on huge FSes Suggesters:: - Fix division by zero in phrase suggester that causes assertion to fail - Context suggester should filter doc values field - Fix context suggester to read values from keyword type field Templates:: - Tests: Fix FullClusterRestartIT.testSnapshotRestore test failing in 6.x Translog:: - Fix Translog.Delete serialization for sequence numbers Upgrade API:: - Upgrade API: fix excessive logging and unnecessary template updates === Regressions Bulk:: - Only re-parse operation if a mapping update was needed Highlighting:: - Fix Fast Vector Highlighter NPE on match phrase prefix Search:: - Always use DisjunctionMaxQuery to build cross fields disjunction Sequence IDs:: - Indexing performance degradation in 6.0.0-beta1 === Upgrades Core:: - Upgrade to Lucene 7.0.0 Logging:: - Upgrade to Log4j 2.9.1 Network:: - Upgrade to Netty 4.1.13.Final Plugin Ingest Attachment:: - Update to Tika 1.14 Upgrade API:: - Improve stability and logging of TemplateUpgradeServiceIT testsdiff -r1.35 -r1.36 pkgsrc/databases/elasticsearch/Makefile
(fhajny)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.35 2017/10/30 11:27:32 fhajny Exp $ | 1 | # $NetBSD: Makefile,v 1.36 2017/11/20 15:36:47 fhajny Exp $ | |
2 | 2 | |||
3 | DISTNAME= elasticsearch-5.6.3 | 3 | DISTNAME= elasticsearch-6.0.0 | |
4 | CATEGORIES= textproc | 4 | CATEGORIES= textproc | |
5 | MASTER_SITES= https://artifacts.elastic.co/downloads/elasticsearch/ | 5 | MASTER_SITES= https://artifacts.elastic.co/downloads/elasticsearch/ | |
6 | 6 | |||
7 | MAINTAINER= imil@NetBSD.org | 7 | MAINTAINER= imil@NetBSD.org | |
8 | HOMEPAGE= http://www.elasticsearch.org/ | 8 | HOMEPAGE= http://www.elasticsearch.org/ | |
9 | COMMENT= Distributed RESTful Search Engine | 9 | COMMENT= Distributed RESTful Search Engine | |
10 | LICENSE= apache-2.0 | 10 | LICENSE= apache-2.0 | |
11 | 11 | |||
12 | USE_LANGUAGES= # none | 12 | USE_LANGUAGES= # none | |
13 | USE_JAVA= run | 13 | USE_JAVA= run | |
14 | USE_JAVA2= 8 | 14 | USE_JAVA2= 8 | |
15 | USE_TOOLS+= bash:run pax | 15 | USE_TOOLS+= bash:run pax | |
16 | NO_BUILD= yes | 16 | NO_BUILD= yes | |
@@ -43,37 +43,39 @@ PKG_USERS= ${ES_USER}:${ES_GROUP} | @@ -43,37 +43,39 @@ PKG_USERS= ${ES_USER}:${ES_GROUP} | |||
43 | FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME:Q} ES_USER=${ES_USER} \ | 43 | FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME:Q} ES_USER=${ES_USER} \ | |
44 | ES_GROUP=${ES_GROUP} ES_BASEDIR=${ES_BASEDIR} \ | 44 | ES_GROUP=${ES_GROUP} ES_BASEDIR=${ES_BASEDIR} \ | |
45 | ES_LOGDIR=${ES_LOGDIR} ES_PIDDIR=${ES_PIDDIR} \ | 45 | ES_LOGDIR=${ES_LOGDIR} ES_PIDDIR=${ES_PIDDIR} \ | |
46 | ES_DBDIR=${ES_DBDIR} \ | 46 | ES_DBDIR=${ES_DBDIR} \ | |
47 | DISTNAME=${DISTNAME} | 47 | DISTNAME=${DISTNAME} | |
48 | 48 | |||
49 | RCD_SCRIPTS= elasticsearch | 49 | RCD_SCRIPTS= elasticsearch | |
50 | 50 | |||
51 | OWN_DIRS+= ${ES_BASEDIR}/plugins | 51 | OWN_DIRS+= ${ES_BASEDIR}/plugins | |
52 | OWN_DIRS_PERMS+= ${ES_LOGDIR} ${ES_USER} ${ES_GROUP} 0700 | 52 | OWN_DIRS_PERMS+= ${ES_LOGDIR} ${ES_USER} ${ES_GROUP} 0700 | |
53 | OWN_DIRS_PERMS+= ${ES_DBDIR} ${ES_USER} ${ES_GROUP} 0700 | 53 | OWN_DIRS_PERMS+= ${ES_DBDIR} ${ES_USER} ${ES_GROUP} 0700 | |
54 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/scripts | 54 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/scripts | |
55 | 55 | |||
56 | REPLACE_BASH+= bin/elasticsearch bin/elasticsearch.in.sh bin/elasticsearch-plugin | 56 | REPLACE_BASH+= bin/elasticsearch* | |
57 | INSTALLATION_DIRS+= bin ${ES_BASEDIR}/bin | 57 | INSTALLATION_DIRS+= bin ${ES_BASEDIR}/bin | |
58 | INSTALLATION_DIRS+= ${EGDIR} ${PREFIX}/share/doc/elasticsearch | 58 | INSTALLATION_DIRS+= ${EGDIR} ${PREFIX}/share/doc/elasticsearch | |
59 | 59 | |||
60 | SUBST_CLASSES+= paths | 60 | SUBST_CLASSES+= paths | |
61 | SUBST_STAGE.paths= pre-configure | 61 | SUBST_STAGE.paths= pre-configure | |
62 | SUBST_FILES.paths= bin/elasticsearch bin/elasticsearch-plugin config/elasticsearch.yml | 62 | SUBST_FILES.paths= bin/elasticsearch-env config/elasticsearch.yml | |
63 | SUBST_VARS.paths= PKG_JAVA_HOME PKG_SYSCONFDIR ES_DBDIR ES_BASEDIR ES_LOGDIR | 63 | SUBST_VARS.paths= PKG_JAVA_HOME PKG_SYSCONFDIR ES_DBDIR ES_BASEDIR ES_LOGDIR | |
64 | 64 | |||
65 | do-install: | 65 | do-install: | |
66 | .for f in ${CONFS} | 66 | .for f in ${CONFS} | |
67 | ${INSTALL_DATA} ${WRKSRC}/config/${f} ${DESTDIR}${EGDIR} | 67 | ${INSTALL_DATA} ${WRKSRC}/config/${f} ${DESTDIR}${EGDIR} | |
68 | .endfor | 68 | .endfor | |
69 | .for f in ${DOCS} | 69 | .for f in ${DOCS} | |
70 | ${INSTALL_DATA} ${WRKSRC}/${f} \ | 70 | ${INSTALL_DATA} ${WRKSRC}/${f} \ | |
71 | ${DESTDIR}${PREFIX}/share/doc/elasticsearch | 71 | ${DESTDIR}${PREFIX}/share/doc/elasticsearch | |
72 | .endfor | 72 | .endfor | |
73 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch ${DESTDIR}${PREFIX}/bin | 73 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch ${DESTDIR}${PREFIX}/bin | |
74 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch-env ${DESTDIR}${ES_BASEDIR}/bin | |||
75 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch-keystore ${DESTDIR}${ES_BASEDIR}/bin | |||
74 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch-plugin ${DESTDIR}${PREFIX}/bin | 76 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch-plugin ${DESTDIR}${PREFIX}/bin | |
75 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch.in.sh ${DESTDIR}${ES_BASEDIR}/bin | 77 | ${INSTALL_SCRIPT} ${WRKSRC}/bin/elasticsearch-translog ${DESTDIR}${ES_BASEDIR}/bin | |
76 | cd ${WRKSRC} && ${PAX} -rw -pp lib modules ${DESTDIR}${ES_BASEDIR} | 78 | cd ${WRKSRC} && ${PAX} -rw -pp lib modules ${DESTDIR}${ES_BASEDIR} | |
77 | 79 | |||
78 | .include "../../mk/java-vm.mk" | 80 | .include "../../mk/java-vm.mk" | |
79 | .include "../../mk/bsd.pkg.mk" | 81 | .include "../../mk/bsd.pkg.mk" |
@@ -1,9 +1,8 @@ | @@ -1,9 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.35 2017/10/17 11:27:04 fhajny Exp $ | 1 | $NetBSD: distinfo,v 1.36 2017/11/20 15:36:47 fhajny Exp $ | |
2 | 2 | |||
3 | SHA1 (elasticsearch-5.6.3.tar.gz) = d5e4b61038f2cc3ec7ae5cbecf3406c7ecc7a1c4 | 3 | SHA1 (elasticsearch-6.0.0.tar.gz) = 8aa6c56edf30cebae13846ce5d774bfec06fed81 | |
4 | RMD160 (elasticsearch-5.6.3.tar.gz) = 7aa1ea3643ba036f216d9e2e2ade85ed7f9cf15a | 4 | RMD160 (elasticsearch-6.0.0.tar.gz) = 961ee8740e40601d56b01133f8e1c995b64fee32 | |
5 | SHA512 (elasticsearch-5.6.3.tar.gz) = ee57d010e196eb25e5296fe95ab2de5e503d4d66f7eec8c8f6ac2ff9ddbc1a8dc1514202d705e291ee49d3e04650b597a9afc5f92f179b8faa5e2fe3c662f33e | 5 | SHA512 (elasticsearch-6.0.0.tar.gz) = 25bb622d2fc557d8b8eded634a9b333766f7b58e701359e1bcfafee390776eb323cb7ea7a5e02e8803e25d8b1d3aabec0ec1b0cf492d0bab5689686fe440181c | |
6 | Size (elasticsearch-5.6.3.tar.gz) = 33774486 bytes | 6 | Size (elasticsearch-6.0.0.tar.gz) = 28017602 bytes | |
7 | SHA1 (patch-bin_elasticsearch) = 5360818fb870c0005e23f0fb247efa247a909f47 | 7 | SHA1 (patch-bin_elasticsearch-env) = 1389988ca16bd11a7975d9d4c65408b54c657598 | |
8 | SHA1 (patch-bin_elasticsearch-plugin) = 56db071765b91a4846e1529b5fe8be2c549b449d | 8 | SHA1 (patch-config_elasticsearch.yml) = f66dad65dec48a45a4d52b685d6e3ab29de62cf2 | |
9 | SHA1 (patch-config_elasticsearch.yml) = 8a59f9123b8bc1c40d17131dc51c361fa210c17c |
@@ -1,100 +1,101 @@ | @@ -1,100 +1,101 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.22 2017/09/27 12:33:36 fhajny Exp $ | 1 | @comment $NetBSD: PLIST,v 1.23 2017/11/20 15:36:47 fhajny Exp $ | |
2 | bin/elasticsearch | 2 | bin/elasticsearch | |
3 | bin/elasticsearch-plugin | 3 | bin/elasticsearch-plugin | |
4 | lib/elasticsearch/bin/elasticsearch.in.sh | 4 | lib/elasticsearch/bin/elasticsearch-env | |
5 | lib/elasticsearch/bin/elasticsearch-keystore | |||
6 | lib/elasticsearch/bin/elasticsearch-translog | |||
5 | lib/elasticsearch/lib/HdrHistogram-2.1.9.jar | 7 | lib/elasticsearch/lib/HdrHistogram-2.1.9.jar | |
6 | lib/elasticsearch/lib/${PKGNAME}.jar | 8 | lib/elasticsearch/lib/${PKGNAME}.jar | |
7 | lib/elasticsearch/lib/hppc-0.7.1.jar | 9 | lib/elasticsearch/lib/hppc-0.7.1.jar | |
8 | lib/elasticsearch/lib/jackson-core-2.8.6.jar | 10 | lib/elasticsearch/lib/jackson-core-2.8.6.jar | |
9 | lib/elasticsearch/lib/jackson-dataformat-cbor-2.8.6.jar | 11 | lib/elasticsearch/lib/jackson-dataformat-cbor-2.8.6.jar | |
10 | lib/elasticsearch/lib/jackson-dataformat-smile-2.8.6.jar | 12 | lib/elasticsearch/lib/jackson-dataformat-smile-2.8.6.jar | |
11 | lib/elasticsearch/lib/jackson-dataformat-yaml-2.8.6.jar | 13 | lib/elasticsearch/lib/jackson-dataformat-yaml-2.8.6.jar | |
12 | lib/elasticsearch/lib/java-version-checker-${PKGVERSION}.jar | 14 | lib/elasticsearch/lib/java-version-checker-${PKGVERSION}.jar | |
13 | lib/elasticsearch/lib/jna-4.4.0-1.jar | 15 | lib/elasticsearch/lib/jna-4.4.0-1.jar | |
14 | lib/elasticsearch/lib/joda-time-2.9.5.jar | 16 | lib/elasticsearch/lib/joda-time-2.9.5.jar | |
15 | lib/elasticsearch/lib/jopt-simple-5.0.2.jar | 17 | lib/elasticsearch/lib/jopt-simple-5.0.2.jar | |
16 | lib/elasticsearch/lib/jts-1.13.jar | 18 | lib/elasticsearch/lib/jts-1.13.jar | |
17 | lib/elasticsearch/lib/log4j-1.2-api-2.9.1.jar | 19 | lib/elasticsearch/lib/log4j-1.2-api-2.9.1.jar | |
18 | lib/elasticsearch/lib/log4j-api-2.9.1.jar | 20 | lib/elasticsearch/lib/log4j-api-2.9.1.jar | |
19 | lib/elasticsearch/lib/log4j-core-2.9.1.jar | 21 | lib/elasticsearch/lib/log4j-core-2.9.1.jar | |
20 | lib/elasticsearch/lib/lucene-analyzers-common-6.6.1.jar | 22 | lib/elasticsearch/lib/lucene-analyzers-common-7.0.1.jar | |
21 | lib/elasticsearch/lib/lucene-backward-codecs-6.6.1.jar | 23 | lib/elasticsearch/lib/lucene-backward-codecs-7.0.1.jar | |
22 | lib/elasticsearch/lib/lucene-core-6.6.1.jar | 24 | lib/elasticsearch/lib/lucene-core-7.0.1.jar | |
23 | lib/elasticsearch/lib/lucene-grouping-6.6.1.jar | 25 | lib/elasticsearch/lib/lucene-grouping-7.0.1.jar | |
24 | lib/elasticsearch/lib/lucene-highlighter-6.6.1.jar | 26 | lib/elasticsearch/lib/lucene-highlighter-7.0.1.jar | |
25 | lib/elasticsearch/lib/lucene-join-6.6.1.jar | 27 | lib/elasticsearch/lib/lucene-join-7.0.1.jar | |
26 | lib/elasticsearch/lib/lucene-memory-6.6.1.jar | 28 | lib/elasticsearch/lib/lucene-memory-7.0.1.jar | |
27 | lib/elasticsearch/lib/lucene-misc-6.6.1.jar | 29 | lib/elasticsearch/lib/lucene-misc-7.0.1.jar | |
28 | lib/elasticsearch/lib/lucene-queries-6.6.1.jar | 30 | lib/elasticsearch/lib/lucene-queries-7.0.1.jar | |
29 | lib/elasticsearch/lib/lucene-queryparser-6.6.1.jar | 31 | lib/elasticsearch/lib/lucene-queryparser-7.0.1.jar | |
30 | lib/elasticsearch/lib/lucene-sandbox-6.6.1.jar | 32 | lib/elasticsearch/lib/lucene-sandbox-7.0.1.jar | |
31 | lib/elasticsearch/lib/lucene-spatial-6.6.1.jar | 33 | lib/elasticsearch/lib/lucene-spatial-7.0.1.jar | |
32 | lib/elasticsearch/lib/lucene-spatial-extras-6.6.1.jar | 34 | lib/elasticsearch/lib/lucene-spatial-extras-7.0.1.jar | |
33 | lib/elasticsearch/lib/lucene-spatial3d-6.6.1.jar | 35 | lib/elasticsearch/lib/lucene-spatial3d-7.0.1.jar | |
34 | lib/elasticsearch/lib/lucene-suggest-6.6.1.jar | 36 | lib/elasticsearch/lib/lucene-suggest-7.0.1.jar | |
35 | lib/elasticsearch/lib/plugin-cli-${PKGVERSION}.jar | 37 | lib/elasticsearch/lib/plugin-cli-${PKGVERSION}.jar | |
36 | lib/elasticsearch/lib/securesm-1.1.jar | 38 | lib/elasticsearch/lib/securesm-1.1.jar | |
37 | lib/elasticsearch/lib/snakeyaml-1.15.jar | 39 | lib/elasticsearch/lib/snakeyaml-1.15.jar | |
38 | lib/elasticsearch/lib/spatial4j-0.6.jar | 40 | lib/elasticsearch/lib/spatial4j-0.6.jar | |
39 | lib/elasticsearch/lib/t-digest-3.0.jar | 41 | lib/elasticsearch/lib/t-digest-3.0.jar | |
40 | lib/elasticsearch/modules/aggs-matrix-stats/aggs-matrix-stats-${PKGVERSION}.jar | 42 | lib/elasticsearch/modules/aggs-matrix-stats/aggs-matrix-stats-${PKGVERSION}.jar | |
41 | lib/elasticsearch/modules/aggs-matrix-stats/plugin-descriptor.properties | 43 | lib/elasticsearch/modules/aggs-matrix-stats/plugin-descriptor.properties | |
44 | lib/elasticsearch/modules/analysis-common/analysis-common-${PKGVERSION}.jar | |||
45 | lib/elasticsearch/modules/analysis-common/plugin-descriptor.properties | |||
42 | lib/elasticsearch/modules/ingest-common/ingest-common-${PKGVERSION}.jar | 46 | lib/elasticsearch/modules/ingest-common/ingest-common-${PKGVERSION}.jar | |
43 | lib/elasticsearch/modules/ingest-common/jcodings-1.0.12.jar | 47 | lib/elasticsearch/modules/ingest-common/jcodings-1.0.12.jar | |
44 | lib/elasticsearch/modules/ingest-common/joni-2.1.6.jar | 48 | lib/elasticsearch/modules/ingest-common/joni-2.1.6.jar | |
45 | lib/elasticsearch/modules/ingest-common/plugin-descriptor.properties | 49 | lib/elasticsearch/modules/ingest-common/plugin-descriptor.properties | |
46 | lib/elasticsearch/modules/lang-expression/antlr4-runtime-4.5.1-1.jar | 50 | lib/elasticsearch/modules/lang-expression/antlr4-runtime-4.5.1-1.jar | |
47 | lib/elasticsearch/modules/lang-expression/asm-5.0.4.jar | 51 | lib/elasticsearch/modules/lang-expression/asm-5.0.4.jar | |
48 | lib/elasticsearch/modules/lang-expression/asm-commons-5.0.4.jar | 52 | lib/elasticsearch/modules/lang-expression/asm-commons-5.0.4.jar | |
49 | lib/elasticsearch/modules/lang-expression/asm-tree-5.0.4.jar | 53 | lib/elasticsearch/modules/lang-expression/asm-tree-5.0.4.jar | |
50 | lib/elasticsearch/modules/lang-expression/lang-expression-${PKGVERSION}.jar | 54 | lib/elasticsearch/modules/lang-expression/lang-expression-${PKGVERSION}.jar | |
51 | lib/elasticsearch/modules/lang-expression/lucene-expressions-6.6.1.jar | 55 | lib/elasticsearch/modules/lang-expression/lucene-expressions-7.0.1.jar | |
52 | lib/elasticsearch/modules/lang-expression/plugin-descriptor.properties | 56 | lib/elasticsearch/modules/lang-expression/plugin-descriptor.properties | |
53 | lib/elasticsearch/modules/lang-expression/plugin-security.policy | 57 | lib/elasticsearch/modules/lang-expression/plugin-security.policy | |
54 | lib/elasticsearch/modules/lang-groovy/groovy-2.4.6-indy.jar | |||
55 | lib/elasticsearch/modules/lang-groovy/lang-groovy-${PKGVERSION}.jar | |||
56 | lib/elasticsearch/modules/lang-groovy/plugin-descriptor.properties | |||
57 | lib/elasticsearch/modules/lang-groovy/plugin-security.policy | |||
58 | lib/elasticsearch/modules/lang-mustache/compiler-0.9.3.jar | 58 | lib/elasticsearch/modules/lang-mustache/compiler-0.9.3.jar | |
59 | lib/elasticsearch/modules/lang-mustache/lang-mustache-${PKGVERSION}.jar | 59 | lib/elasticsearch/modules/lang-mustache/lang-mustache-${PKGVERSION}.jar | |
60 | lib/elasticsearch/modules/lang-mustache/plugin-descriptor.properties | 60 | lib/elasticsearch/modules/lang-mustache/plugin-descriptor.properties | |
61 | lib/elasticsearch/modules/lang-mustache/plugin-security.policy | 61 | lib/elasticsearch/modules/lang-mustache/plugin-security.policy | |
62 | lib/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.1-1.jar | 62 | lib/elasticsearch/modules/lang-painless/antlr4-runtime-4.5.1-1.jar | |
63 | lib/elasticsearch/modules/lang-painless/asm-debug-all-5.1.jar | 63 | lib/elasticsearch/modules/lang-painless/asm-debug-all-5.1.jar | |
64 | lib/elasticsearch/modules/lang-painless/lang-painless-${PKGVERSION}.jar | 64 | lib/elasticsearch/modules/lang-painless/lang-painless-${PKGVERSION}.jar | |
65 | lib/elasticsearch/modules/lang-painless/plugin-descriptor.properties | 65 | lib/elasticsearch/modules/lang-painless/plugin-descriptor.properties | |
66 | lib/elasticsearch/modules/lang-painless/plugin-security.policy | 66 | lib/elasticsearch/modules/lang-painless/plugin-security.policy | |
67 | lib/elasticsearch/modules/parent-join/parent-join-${PKGVERSION}.jar | 67 | lib/elasticsearch/modules/parent-join/parent-join-${PKGVERSION}.jar | |
68 | lib/elasticsearch/modules/parent-join/plugin-descriptor.properties | 68 | lib/elasticsearch/modules/parent-join/plugin-descriptor.properties | |
69 | lib/elasticsearch/modules/percolator/percolator-${PKGVERSION}.jar | 69 | lib/elasticsearch/modules/percolator/percolator-${PKGVERSION}.jar | |
70 | lib/elasticsearch/modules/percolator/plugin-descriptor.properties | 70 | lib/elasticsearch/modules/percolator/plugin-descriptor.properties | |
71 | lib/elasticsearch/modules/reindex/commons-codec-1.10.jar | 71 | lib/elasticsearch/modules/reindex/commons-codec-1.10.jar | |
72 | lib/elasticsearch/modules/reindex/commons-logging-1.1.3.jar | 72 | lib/elasticsearch/modules/reindex/commons-logging-1.1.3.jar | |
73 | lib/elasticsearch/modules/reindex/elasticsearch-rest-client-${PKGVERSION}.jar | 73 | lib/elasticsearch/modules/reindex/elasticsearch-rest-client-${PKGVERSION}.jar | |
74 | lib/elasticsearch/modules/reindex/httpasyncclient-4.1.2.jar | 74 | lib/elasticsearch/modules/reindex/httpasyncclient-4.1.2.jar | |
75 | lib/elasticsearch/modules/reindex/httpclient-4.5.2.jar | 75 | lib/elasticsearch/modules/reindex/httpclient-4.5.2.jar | |
76 | lib/elasticsearch/modules/reindex/httpcore-4.4.5.jar | 76 | lib/elasticsearch/modules/reindex/httpcore-4.4.5.jar | |
77 | lib/elasticsearch/modules/reindex/httpcore-nio-4.4.5.jar | 77 | lib/elasticsearch/modules/reindex/httpcore-nio-4.4.5.jar | |
78 | lib/elasticsearch/modules/reindex/plugin-descriptor.properties | 78 | lib/elasticsearch/modules/reindex/plugin-descriptor.properties | |
79 | lib/elasticsearch/modules/reindex/plugin-security.policy | 79 | lib/elasticsearch/modules/reindex/plugin-security.policy | |
80 | lib/elasticsearch/modules/reindex/reindex-${PKGVERSION}.jar | 80 | lib/elasticsearch/modules/reindex/reindex-${PKGVERSION}.jar | |
81 | lib/elasticsearch/modules/transport-netty3/netty-3.10.6.Final.jar | 81 | lib/elasticsearch/modules/repository-url/plugin-descriptor.properties | |
82 | lib/elasticsearch/modules/transport-netty3/plugin-descriptor.properties | 82 | lib/elasticsearch/modules/repository-url/plugin-security.policy | |
83 | lib/elasticsearch/modules/transport-netty3/plugin-security.policy | 83 | lib/elasticsearch/modules/repository-url/repository-url-${PKGVERSION}.jar | |
84 | lib/elasticsearch/modules/transport-netty3/transport-netty3-${PKGVERSION}.jar | |||
85 | lib/elasticsearch/modules/transport-netty4/netty-buffer-4.1.13.Final.jar | 84 | lib/elasticsearch/modules/transport-netty4/netty-buffer-4.1.13.Final.jar | |
86 | lib/elasticsearch/modules/transport-netty4/netty-codec-4.1.13.Final.jar | 85 | lib/elasticsearch/modules/transport-netty4/netty-codec-4.1.13.Final.jar | |
87 | lib/elasticsearch/modules/transport-netty4/netty-codec-http-4.1.13.Final.jar | 86 | lib/elasticsearch/modules/transport-netty4/netty-codec-http-4.1.13.Final.jar | |
88 | lib/elasticsearch/modules/transport-netty4/netty-common-4.1.13.Final.jar | 87 | lib/elasticsearch/modules/transport-netty4/netty-common-4.1.13.Final.jar | |
89 | lib/elasticsearch/modules/transport-netty4/netty-handler-4.1.13.Final.jar | 88 | lib/elasticsearch/modules/transport-netty4/netty-handler-4.1.13.Final.jar | |
90 | lib/elasticsearch/modules/transport-netty4/netty-resolver-4.1.13.Final.jar | 89 | lib/elasticsearch/modules/transport-netty4/netty-resolver-4.1.13.Final.jar | |
91 | lib/elasticsearch/modules/transport-netty4/netty-transport-4.1.13.Final.jar | 90 | lib/elasticsearch/modules/transport-netty4/netty-transport-4.1.13.Final.jar | |
92 | lib/elasticsearch/modules/transport-netty4/plugin-descriptor.properties | 91 | lib/elasticsearch/modules/transport-netty4/plugin-descriptor.properties | |
93 | lib/elasticsearch/modules/transport-netty4/plugin-security.policy | 92 | lib/elasticsearch/modules/transport-netty4/plugin-security.policy | |
94 | lib/elasticsearch/modules/transport-netty4/transport-netty4-${PKGVERSION}.jar | 93 | lib/elasticsearch/modules/transport-netty4/transport-netty4-${PKGVERSION}.jar | |
94 | lib/elasticsearch/modules/tribe/plugin-descriptor.properties | |||
95 | lib/elasticsearch/modules/tribe/tribe-${PKGVERSION}.jar | |||
95 | share/doc/elasticsearch/LICENSE.txt | 96 | share/doc/elasticsearch/LICENSE.txt | |
96 | share/doc/elasticsearch/NOTICE.txt | 97 | share/doc/elasticsearch/NOTICE.txt | |
97 | share/doc/elasticsearch/README.textile | 98 | share/doc/elasticsearch/README.textile | |
98 | share/examples/elasticsearch/elasticsearch.yml | 99 | share/examples/elasticsearch/elasticsearch.yml | |
99 | share/examples/elasticsearch/jvm.options | 100 | share/examples/elasticsearch/jvm.options | |
100 | share/examples/elasticsearch/log4j2.properties | 101 | share/examples/elasticsearch/log4j2.properties |
@@ -10,34 +10,34 @@ | @@ -10,34 +10,34 @@ | |||
10 | <dependency name='net' grouping='require_all' restart_on='none' type='service'> | 10 | <dependency name='net' grouping='require_all' restart_on='none' type='service'> | |
11 | <service_fmri value='svc:/network/loopback' /> | 11 | <service_fmri value='svc:/network/loopback' /> | |
12 | </dependency> | 12 | </dependency> | |
13 | <dependent name='elasticsearch' restart_on='none' grouping='optional_all'> | 13 | <dependent name='elasticsearch' restart_on='none' grouping='optional_all'> | |
14 | <service_fmri value='svc:/milestone/multi-user' /> | 14 | <service_fmri value='svc:/milestone/multi-user' /> | |
15 | </dependent> | 15 | </dependent> | |
16 | <method_context working_directory='@ES_DBDIR@'> | 16 | <method_context working_directory='@ES_DBDIR@'> | |
17 | <method_credential user='@ES_USER@' group='@ES_GROUP@' /> | 17 | <method_credential user='@ES_USER@' group='@ES_GROUP@' /> | |
18 | <method_environment> | 18 | <method_environment> | |
19 | <envvar name='PATH' value='@PREFIX@/bin:@PREFIX@/sbin:/usr/bin:/usr/sbin' /> | 19 | <envvar name='PATH' value='@PREFIX@/bin:@PREFIX@/sbin:/usr/bin:/usr/sbin' /> | |
20 | <envvar name='JAVA_HOME' value='@PKG_JAVA_HOME@' /> | 20 | <envvar name='JAVA_HOME' value='@PKG_JAVA_HOME@' /> | |
21 | </method_environment> | 21 | </method_environment> | |
22 | </method_context> | 22 | </method_context> | |
23 | <exec_method name='start' type='method' exec='@PKG_JAVA_HOME@/bin/java -Delasticsearch -Des.path.home=@ES_BASEDIR@ -Des.path.conf=@PKG_SYSCONFDIR@ -Des.pidfile=@ES_PIDDIR@/elasticsearch.pid -Des.index.store.type=%{store_type} %{java_opts} -Xms%{min_heap} -Xmx%{max_heap} -cp %{class_path} org.elasticsearch.bootstrap.Elasticsearch' timeout_seconds='3600' /> | 23 | <exec_method name='start' type='method' exec='@PKG_JAVA_HOME@/bin/java -Delasticsearch -Des.path.home=@ES_BASEDIR@ -Des.path.conf=@PKG_SYSCONFDIR@ -Des.pidfile=@ES_PIDDIR@/elasticsearch.pid -Des.index.store.type=%{store_type} %{java_opts} -Xms%{min_heap} -Xmx%{max_heap} -cp "%{class_path}" org.elasticsearch.bootstrap.Elasticsearch' timeout_seconds='3600' /> | |
24 | <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' /> | 24 | <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' /> | |
25 | <exec_method type='method' name='refresh' exec=':kill -HUP' timeout_seconds='60' /> | 25 | <exec_method type='method' name='refresh' exec=':kill -HUP' timeout_seconds='60' /> | |
26 | <property_group name='application' type='application'> | 26 | <property_group name='application' type='application'> | |
27 | <propval name='min_heap' type='astring' value='256m' /> | 27 | <propval name='min_heap' type='astring' value='256m' /> | |
28 | <propval name='max_heap' type='astring' value='1g' /> | 28 | <propval name='max_heap' type='astring' value='1g' /> | |
29 | <propval name='store_type' type='astring' value='niofs' /> | 29 | <propval name='store_type' type='astring' value='niofs' /> | |
30 | <propval name='class_path' type='astring' value='@ES_BASEDIR@/lib/@DISTNAME@.jar:@ES_BASEDIR@/lib/*' /> | 30 | <propval name='class_path' type='astring' value='@ES_BASEDIR@/lib/*' /> | |
31 | <property name='java_opts' type='astring'> | 31 | <property name='java_opts' type='astring'> | |
32 | <astring_list> | 32 | <astring_list> | |
33 | <value_node value='-Dfile.encoding=UTF-8'/> | 33 | <value_node value='-Dfile.encoding=UTF-8'/> | |
34 | <value_node value='-Djava.awt.headless=true'/> | 34 | <value_node value='-Djava.awt.headless=true'/> | |
35 | <value_node value='-XX:+DisableExplicitGC'/> | 35 | <value_node value='-XX:+DisableExplicitGC'/> | |
36 | <value_node value='-XX:+HeapDumpOnOutOfMemoryError'/> | 36 | <value_node value='-XX:+HeapDumpOnOutOfMemoryError'/> | |
37 | <value_node value='-XX:+UseCMSInitiatingOccupancyOnly'/> | 37 | <value_node value='-XX:+UseCMSInitiatingOccupancyOnly'/> | |
38 | <value_node value='-XX:+UseConcMarkSweepGC'/> | 38 | <value_node value='-XX:+UseConcMarkSweepGC'/> | |
39 | <value_node value='-XX:+UseParNewGC'/> | 39 | <value_node value='-XX:+UseParNewGC'/> | |
40 | <value_node value='-XX:CMSInitiatingOccupancyFraction=75'/> | 40 | <value_node value='-XX:CMSInitiatingOccupancyFraction=75'/> | |
41 | <value_node value='-Xss256k'/> | 41 | <value_node value='-Xss256k'/> | |
42 | </astring_list> | 42 | </astring_list> | |
43 | </property> | 43 | </property> |
@@ -1,22 +1,19 @@ | @@ -1,22 +1,19 @@ | |||
1 | $NetBSD: patch-config_elasticsearch.yml,v 1.5 2016/11/08 09:18:01 fhajny Exp $ | 1 | $NetBSD: patch-config_elasticsearch.yml,v 1.6 2017/11/20 15:36:47 fhajny Exp $ | |
2 | 2 | |||
3 | Define various paths | 3 | Define various paths | |
4 | 4 | |||
5 | --- config/elasticsearch.yml.orig 2016-10-26 04:35:54.000000000 +0000 | 5 | --- config/elasticsearch.yml.orig 2017-11-10 18:40:01.000000000 +0000 | |
6 | +++ config/elasticsearch.yml | 6 | +++ config/elasticsearch.yml | |
7 | @@ -31,10 +31,15 @@ | 7 | @@ -31,10 +31,12 @@ | |
8 | # Path to directory where to store the data (separate multiple locations by comma): | 8 | # Path to directory where to store the data (separate multiple locations by comma): | |
9 | # | 9 | # | |
10 | #path.data: /path/to/data | 10 | #path.data: /path/to/data | |
11 | +path.data: @ES_DBDIR@ | 11 | +path.data: @ES_DBDIR@ | |
12 | # | 12 | # | |
13 | # Path to log files: | 13 | # Path to log files: | |
14 | # | 14 | # | |
15 | #path.logs: /path/to/logs | 15 | #path.logs: /path/to/logs | |
16 | +path.logs: @ES_LOGDIR@ | 16 | +path.logs: @ES_LOGDIR@ | |
17 | +# | |||
18 | +# Path to config files | |||
19 | +path.conf: @PKG_SYSCONFDIR@ | |||
20 | # | 17 | # | |
21 | # ----------------------------------- Memory ----------------------------------- | 18 | # ----------------------------------- Memory ----------------------------------- | |
22 | # | 19 | # |