Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for highlighting of phrase prefix queries #1065

Closed
wants to merge 490 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
490 commits
Select commit Hold shift + click to select a range
ae77013
Rest API: Add `HEAD` support for `/{index}/{type}/{id}` to quickly ch…
kimchy Jun 22, 2012
df62e39
change index.store.compress.stored_fields setting to index.store.comp…
kimchy Jun 22, 2012
efe85f3
better type based inference when using scripts
kimchy Jun 23, 2012
3163499
Return 503 when threadpool limit is reached, closes #2048.
kimchy Jun 23, 2012
6fb836c
better thread naming
kimchy Jun 23, 2012
ded5b77
River name re-use not possible between node shutdowns, closes #1921.
kimchy Jun 23, 2012
2fb867b
Store Compression: Term Vector Vector, closes #2049.
kimchy Jun 23, 2012
6e7764a
reduce objects created with bloom filter operations
kimchy Jun 24, 2012
376779d
wait for remove mapping to happen on the cluster before returning con…
kimchy Jun 25, 2012
e523c71
add 0.19.6
kimchy Jun 25, 2012
c0f9e33
elasticsearch fails to start due to verification error, closes #2051.
kimchy Jun 25, 2012
d01048c
return 404 when trying to delete a mapping that does not exists
kimchy Jun 25, 2012
2e610ea
add 0.19.7
kimchy Jun 25, 2012
5533fe2
don't double set settings with es.default. or elasticseearch.default.
kimchy Jun 25, 2012
11ca3ea
deb package fails to start elasticsearch
kimchy Jun 25, 2012
c39a27a
"index_analyzer" and "search_analyzer" should override "analyzer", cl…
kimchy Jun 25, 2012
6c74f99
better generics in plugin module instance providers
kimchy Jun 25, 2012
12a644c
Stored Compression: failure to fetch document in certain cases (read …
kimchy Jun 25, 2012
eb954a6
better failure message when failing to load _uid field
kimchy Jun 26, 2012
7f77cfa
Add support for zero queue size in the search thread pool
imotov Jun 26, 2012
2eee927
support also queue for setting queue size in fixed thread pool
kimchy Jun 26, 2012
2b893fe
Use bloom filter when flushing (applying deletes), closes #2058.
kimchy Jun 26, 2012
acc9783
add 0.19.8
kimchy Jun 26, 2012
d2bf87c
print the memory pools on GC logging
kimchy Jun 27, 2012
834c795
deb: Allow configuring max open files and max locked memory limits
akheron Jun 27, 2012
644dcb9
Setting index to no ends up using by default the "keyword" analyzer o…
kimchy Jun 27, 2012
dbeda1a
Add missing serialization for error and explanation in validate query…
imotov Jun 26, 2012
a4ad84b
Enable validation of queries with has_child and script filters
imotov Jun 27, 2012
d6bc17f
Partial update without script
mattweber Jun 17, 2012
0aa0b9e
cleanups
kimchy Jun 27, 2012
1ffd68f
Upgrade to netty 3.5.1
kimchy Jun 27, 2012
016e2e7
Have rest request also allow to get the content as a streamable
kimchy Jun 28, 2012
7454c7c
freeing the search context should execute on the same thread, its cheap
kimchy Jun 28, 2012
a872c88
dangling index handling might still remove the state files for the da…
kimchy Jun 28, 2012
0745424
getSourceAsString() for doc inserted as SMILE fails, auto convert to …
kimchy Jun 28, 2012
f2e39e4
Auto import dangling indices, closes #2067.
kimchy Jun 28, 2012
8bab859
simplify tests, doc file length
kimchy Jun 29, 2012
565db26
Store Compression: integer overflow causes failed reads (index is saf…
kimchy Jun 29, 2012
22bdd16
return proper content type for mp3
kimchy Jun 30, 2012
e5c89de
Support wildcard and +/- notation for multi index APIs, closes #2074.
kimchy Jul 1, 2012
743d3f7
better failure message when failing to detect compressor on compresse…
kimchy Jul 1, 2012
6cd9b92
ElasticSearchIllegalStateException: stream marked as compressed, but …
kimchy Jul 1, 2012
3ab85ba
don't delete shards state in the state handle, but let the indices st…
kimchy Jul 1, 2012
bdf146d
Exists API can send response body, closes #2072.
kimchy Jul 1, 2012
b2c4876
(full) recovery memory based indices with local gateway, don't fail t…
kimchy Jul 1, 2012
1668533
improve dangling index support to not detect explicit deleted index a…
kimchy Jul 2, 2012
1c3c737
don't double compress already compressed files when doing recovery
kimchy Jul 2, 2012
2436f64
add 0.19.9
kimchy Jul 2, 2012
57023c8
Compression: Support snappy as a compression option, closes #2081.
kimchy Jul 4, 2012
5f1b1c6
Upgrade to Netty 3.5.2, closes #2084.
kimchy Jul 5, 2012
0a615ca
when needing to copy over the bytes from the netty content channel, z…
kimchy Jul 5, 2012
2328776
allow to configure the decoder type for LZF, between optimal and safe
kimchy Jul 5, 2012
d844093
only set the decoder type if set in the settings
kimchy Jul 5, 2012
2982686
Local Gateway: old global state files are not properly deleted, close…
kimchy Jul 5, 2012
a77c824
Add an interface to be implemented by native scripts to be able to ex…
hibnico Jul 5, 2012
dcf9194
fix naming, also make explainable search script extend search script
kimchy Jul 5, 2012
8d1e04a
have the quick rolling restart stress test also wait for 0 relocating…
kimchy Jul 5, 2012
5d93b2b
Thread Pool: Allow to configure the query_type for fixed thread pool …
kimchy Jul 6, 2012
3523356
buffer management refactoring
kimchy Jul 6, 2012
5f5458f
add byte buffer backed bytes reference
kimchy Jul 7, 2012
f7b538e
move rest request to provide content as BytesReference
kimchy Jul 7, 2012
12beff9
use netty frame decoder again
kimchy Jul 7, 2012
b27cc13
streams to handle BytesReference as a generic type as well
kimchy Jul 7, 2012
d3e9506
ad more info when rejecting execution
kimchy Jul 8, 2012
1dd30bd
deprecate readUTF, use readString instead (better named)
kimchy Jul 8, 2012
e91a0d8
Better ExplainableSearchScript interface
hibnico Jul 6, 2012
1a085d9
Stored binary fields to change internal representation (break Java AP…
kimchy Jul 9, 2012
0bb7496
yuck!, hack around snappy printing to System.err the failure to load …
kimchy Jul 9, 2012
99d2f27
Introduce Text abstraction, allowing for improved representation of s…
kimchy Jul 9, 2012
57e966e
upgrade to jackson 2.0.4
kimchy Jul 10, 2012
877f2ff
propagate cluster event to shard and meta states in local gateway eve…
kimchy Jul 10, 2012
bfb4a29
fix new jackson version to be properly shaded
kimchy Jul 10, 2012
7ff4371
add more trace logging for recovery
kimchy Jul 10, 2012
83323f2
improve the logic of expanding byte arrays
kimchy Jul 11, 2012
de50683
add rejected metric to thread pool stats
kimchy Jul 11, 2012
ee3253d
OutOfMemory Error -> corrupted translog entry in shards, closes #2098.
kimchy Jul 11, 2012
29d6b0e
add debug logging when updating the shard indexing buffer
kimchy Jul 11, 2012
5517df6
don't (re) create a string from a numeric timestamp, just return the …
kimchy Jul 11, 2012
51ff839
Query Parser caching does not take types into account
imotov Jul 11, 2012
0cebcc5
move to use linked blocking queue
kimchy Jul 12, 2012
7a23b4f
add query types also to field query
kimchy Jul 12, 2012
73a34ee
upgrade to guava 12.0.1
kimchy Jul 14, 2012
83a61ca
Avoid NPE in case must, should or not filters are omitted.
andriusj Jul 10, 2012
c3ccfe0
If all filters are null OR is empty...
andriusj Jul 10, 2012
bd219f3
better failure when no filter is provided to bool filter
kimchy Jul 14, 2012
cc2a6ba
move to use murmur3 for bloom filter
kimchy Jul 19, 2012
153c0de
make sure we use utf8 charset
kimchy Jul 19, 2012
443f740
*:* query string query should resolve to match_all query, since the w…
kimchy Jul 21, 2012
2253d03
Fix NodeStats comment.
drewr Jul 16, 2012
90e94eb
Upgrade to Lucene 3.6.1, closes #2110.
kimchy Jul 22, 2012
6e20056
Upgrade to Netty 3.5.3, closes #2119.
kimchy Jul 27, 2012
a41477e
improve writing text as utf8 when having a string if we can write dir…
kimchy Jul 28, 2012
3338736
improve cached buffer allocation sizes based on jvm heap configured
kimchy Jul 28, 2012
7edafcf
Node Stats: Add jvm buffer pools stats (when available, for java 7 an…
kimchy Jul 28, 2012
408a742
bytes reference to know how to convert to channel buffer, so it can b…
kimchy Jul 29, 2012
4eb85bb
Transport/Http: Remove explicit setting of send/receive buffer, and i…
kimchy Jul 30, 2012
a63aa6c
Increase default recovery chunk size, closes #2125.
kimchy Jul 30, 2012
0a5a068
Support files with no extension in config mappings
imotov Jul 24, 2012
68c76e6
try harder to load the default mapping from the class load, and if we…
kimchy Jul 30, 2012
41b3a45
Issue #2121 Added limit parameter for string type.
martijnvg Jul 30, 2012
bbc45fe
rename limit to ignore_above, and create a dedicated test
kimchy Jul 31, 2012
8dcee09
expose the max direct memory allowed in jvm info, and guess better th…
kimchy Jul 31, 2012
82cfe0e
upgrade to latest testng, improve console output when running test, a…
kimchy Jul 31, 2012
ddf30ab
add travis ci config
kimchy Jul 31, 2012
c8e930d
update copyright
kimchy Jul 31, 2012
0492d9b
fix test failure message...
kimchy Jul 31, 2012
d13a780
#2116 Expose all ShingleFilter settings via ShingleTokenFilterFactory
s1monw Jul 31, 2012
e88dbaf
rename Test to Tests, so it will be executed as part of the mvn tests…
kimchy Aug 1, 2012
7a0d7f5
fix test
kimchy Aug 2, 2012
1a33687
better javadoc
kimchy Aug 2, 2012
e7d0217
remove mail notifications (for now) from travis
kimchy Aug 2, 2012
e26a56e
add to the keep alive thread name the version number, so it will be s…
kimchy Aug 2, 2012
8be5c72
Cluster Nodes hot_threads API, closes #2134.
kimchy Aug 2, 2012
de3fb50
expose snapshots parameter
kimchy Aug 2, 2012
08ba05e
Overwrite ignore_above parameter when mapping is updated. Issue #2121
martijnvg Aug 2, 2012
0e3c825
Added ignore_malformed mapping parameter for all number like types. I…
martijnvg Aug 2, 2012
ad392bb
Improve recovery time when processing large mappings, closes #2138.
kimchy Aug 3, 2012
3afeac5
better debug output when failing to load global state file
kimchy Aug 3, 2012
ed2196f
better percent calc for hot threads, including more details on top th…
kimchy Aug 4, 2012
d2ac219
remove rouge sout...
kimchy Aug 6, 2012
346fb9e
create a unique recovery id when recovering from a peer shard instead…
kimchy Aug 6, 2012
37e7a54
Fixed top children query bug reported in issue #2140
Aug 6, 2012
195e586
- Fixed timezone parsing when input starts with '+'sign. Fixes issue …
Aug 7, 2012
3925c0b
Allow custom type_table to be passed to Lucene's WordDelimiterFilter(…
jacobevans Aug 7, 2012
055f080
Rename text query to match query (text query still works, with varian…
kimchy Aug 8, 2012
640c0c2
move the fieldName and text ot the parse element so the query can be …
kimchy Aug 8, 2012
9d55858
simplify the parsing part of match query
kimchy Aug 8, 2012
53d29e5
Upgrade to guava 13.0
kimchy Aug 8, 2012
e43dd46
- Added support for multi match query.
martijnvg Aug 8, 2012
a1ab48c
handle null query returning from query parsers properly
kimchy Aug 9, 2012
fedd196
Update API: Update through an alias with routing configured on it fai…
kimchy Aug 9, 2012
b979dfa
Add lenient option to match & multi_match queries. #2156
martijnvg Aug 9, 2012
bdea0e2
add a simple bulk processor to simplify using the bulk API
kimchy Aug 13, 2012
ad0e916
don't allow an empty type in the mapper service
kimchy Aug 13, 2012
bea4346
Added GeoShape indexing and querying support
Jun 26, 2012
eda3da2
fix geo shape tests
kimchy Aug 13, 2012
980fc6c
add new spatial jars to deb package as well
kimchy Aug 13, 2012
53f65d8
Remove / deprecated omit_term_freq_and_positions in favor of IndexOpt…
s1monw Aug 10, 2012
5715588
fix geo shape to use the new index options
kimchy Aug 13, 2012
70f212a
more improvements for handling of large / many mappings by batching t…
kimchy Aug 13, 2012
ab49a8c
improve update test to wait for green cluster state
kimchy Aug 13, 2012
f317399
allow to flush bulk processor based on time, and better listener api
kimchy Aug 16, 2012
a4acb9a
move debug level on failure to clean log files from warn to debug
kimchy Aug 16, 2012
b0b5775
use term query instead of a specialized SpanTermQuery on _all field i…
s1monw Aug 16, 2012
341c53b
Upgrade to Netty 3.5.4, closes #2180.
kimchy Aug 16, 2012
bc28873
convert to optimized match all query also when executing "*" query
kimchy Aug 18, 2012
e3a9271
unify more count and search implementation
kimchy Aug 19, 2012
08ecd9d
refactor all Queue and BlockingQueue creations into a single factory …
kimchy Aug 19, 2012
79cb0ea
better close logic for concurrent recovery streams
kimchy Aug 20, 2012
e1fe893
change mappersAdded flag to mappingsModified to better reflect any po…
kimchy Aug 20, 2012
9aae62b
All Field: Automatically detect when field level boosting is used, an…
kimchy Aug 20, 2012
dbe2f53
Support YAML as content type
kimchy Aug 20, 2012
a80639a
exclude xerces from the deps for jts, we don't need it
kimchy Aug 20, 2012
a8656c8
Incorrect application of boost in SpanNotQueryBuilder, closes #2192.
kimchy Aug 21, 2012
8365e7b
- Added explain api. #2184
martijnvg Aug 20, 2012
b5d9d3d
small renames here and there
kimchy Aug 21, 2012
ef6ad6c
mapping BigDecimal to double or string in XContentBuilder
jprante Aug 20, 2012
f03ff29
reformat
kimchy Aug 21, 2012
c33ca29
small optimization for global facet with facet filter, by removing th…
kimchy Aug 21, 2012
2dd8267
when using wildcard notation delete all indices might kick in even th…
kimchy Aug 21, 2012
3fdb9f0
Enabled the option of configuring plugin types in the settings. This …
Aug 21, 2012
177568a
no need to optimize on the bool query parser, we already do that in t…
kimchy Aug 22, 2012
14c11a9
MinimumNumberShouldMatch inconcistency, closes #2194
kimchy Aug 22, 2012
377914b
Upgrade to netty 3.5.5, closes #2196.
kimchy Aug 22, 2012
37b33cf
protect a bit more from bogus (not relevant) exceptions when closing …
kimchy Aug 22, 2012
1f3b0d4
Reduce index.shard.recovery.concurrent_streams from 5 to 3 to reduce …
kimchy Aug 23, 2012
bb609f6
add 0.19.10
kimchy Aug 23, 2012
ba98b04
fix wrong check on close
kimchy Aug 23, 2012
072fcaa
Bulk UDP, closes #2201
kimchy Aug 23, 2012
333293b
ignore cancelled key exception as well
kimchy Aug 23, 2012
36ff6c9
add a lock not allowing connecting to nodes while shutting down
kimchy Aug 24, 2012
b4b33bb
Local node master listener
Aug 22, 2012
bbe735f
Fixed issue #2197
martijnvg Aug 24, 2012
dfa67bf
allow to register custom state associated with cluster state
kimchy Aug 24, 2012
da61dde
0.19.9 no longer supports /_all/_status, closes #2205.
kimchy Aug 25, 2012
1d4aee6
- Explain api opens 2 engine searchers, but closes only 1 engine sear…
martijnvg Aug 26, 2012
dea2de3
Add ignore_indices option for search, multisearch, count and other Br…
martijnvg Aug 27, 2012
888b7cc
only print failure to reconnect to node from other nodes after severa…
kimchy Aug 31, 2012
cd0e122
Added a global ignore_malformed index setting. #2220 Also extended th…
martijnvg Aug 31, 2012
9b29950
Added fields option to explain api. #2203
martijnvg Aug 24, 2012
e66bd43
Fix reversed ShingleFilter constructor arguments
kennknowles Aug 31, 2012
6c3847b
move spatial4j and jts to be optional dependencies
kimchy Aug 31, 2012
c834bca
use java to when no JAVA_HOME defined
kimchy Sep 1, 2012
edfbfc1
Update Settings API: Allow body request to be wrapped with `settings`…
kimchy Sep 2, 2012
8b499dd
upgrade to guava 13.0.1
kimchy Sep 2, 2012
b055b5a
Upgrade to mvel 2.1.1, closes #2228.
kimchy Sep 2, 2012
a42159f
Shard Allocation: `index.routing.allocation....` settings do not "rem…
kimchy Sep 3, 2012
82b36e5
upgrade to maven surefire 2.12.3
kimchy Sep 3, 2012
0de8c06
fix logging if millisecond value in load field data
kimchy Sep 3, 2012
92dfb2b
Nodes level API: Allow to specify `data:true` to only execute the API…
kimchy Sep 3, 2012
26feea8
Throw MapperParserException if trying to parse value as object.
lindstromhenrik Aug 31, 2012
24ce2ef
handle EOF when handling arrays as well
kimchy Sep 5, 2012
33e7d76
Fixed no valid missing index type error.
martijnvg Sep 5, 2012
162dfb7
Upgrade to LZF 0.9.6
kimchy Sep 6, 2012
f2db8ea
IndexMetaData.Builder.Index(String name) isn't renaming this.index
kimchy Sep 6, 2012
f659cad
Added proper headers for cross-origin resource sharing (CORS) with Ajax
karmi Sep 6, 2012
b26fd60
allow to configure cors on http
kimchy Sep 6, 2012
8038616
add field with text/bytes and builder string
kimchy Sep 6, 2012
dd97075
upgrade to Netty 3.5.7.Final
kimchy Sep 7, 2012
fbd352b
sync with latest guava version of abstract future
kimchy Sep 7, 2012
b6a9bd9
- Fixed boosting per field with multi_match query.
martijnvg Sep 12, 2012
e530f03
internal custom allocation commands
kimchy Sep 12, 2012
2bd9b3a
Added `has_parent` filter (#2243)
martijnvg Sep 12, 2012
ef9974c
add serialization options for allocation commands
kimchy Sep 14, 2012
4dddeeb
When configuring mmapfs it is not used since 0.19.7, closes #2253.
kimchy Sep 14, 2012
3cd54fc
Improve `has_child` filter / query performance (#2251) Added a new ha…
martijnvg Sep 13, 2012
7bf233a
fix cleanup of of has child/parent
kimchy Sep 14, 2012
cfe7654
Added has_parent query The `has_parent` query works the same as the `…
martijnvg Sep 14, 2012
9c04e6a
Clean up has_parent query code Renamed some exception messages and re…
martijnvg Sep 14, 2012
19fdd46
upgrade to log4j 1.2.17
kimchy Sep 15, 2012
afca5ef
The reroute command allows to explcitiyly execute a cluster reroute a…
kimchy Sep 15, 2012
42864f7
Fixed wrong jdoc
martijnvg Sep 17, 2012
90e0a70
cancel allocation command to allow_primary to be cancelled
kimchy Sep 17, 2012
7924115
Disable allocation: New indices allocation not to be disabled by default
kimchy Sep 17, 2012
2275b82
upgrade to testng 6.8
kimchy Sep 17, 2012
d5aa35e
Added better error handling for has_child, has_parent and top_children.
martijnvg Sep 18, 2012
86e88a8
expose the highlighter builder Field constructor
kimchy Sep 19, 2012
afc99ac
Added id cache size to nodes stats api
martijnvg Sep 13, 2012
7f6f001
better reason logged when not master
kimchy Sep 19, 2012
4e19de1
don't serialize ignore_unmapped to mapping on default value
kimchy Sep 19, 2012
f8e1291
global node indices level queries to be created by guice
kimchy Sep 20, 2012
83a39bd
improve test by not waiting for green state, no need
kimchy Sep 20, 2012
0fadbf2
more easily add a field with boost to multi match builder
kimchy Sep 20, 2012
6fc0b83
Upgraded to Spatial4j 0.3
Sep 20, 2012
8080fdc
Added types exists api
martijnvg Sep 20, 2012
4f5e62e
Added MultiPolygon parsing and serialization support
chrismale Sep 21, 2012
a3af3d2
Norms field is ignored when doing a match_all query
kimchy Sep 21, 2012
cc7eb26
Transport: Add header token
kimchy Sep 21, 2012
aa435a2
add node version to each request/response transport message
kimchy Sep 22, 2012
d5e11fd
disconnect from unicast nodes before raising event
kimchy Sep 22, 2012
f73d684
use the version to deserialize published cluster state
kimchy Sep 22, 2012
df0ff17
add simpler way to set the epoll bug workaround flag for netty
kimchy Sep 22, 2012
05e0b4d
Added ShapeFetchService with support in GeoShapeQueryParser/FilterParser
Sep 21, 2012
6e66f45
minor geo shape fetch improvements
kimchy Sep 23, 2012
81a6940
Fixed score explain is for `custom_filters_score` query.
martijnvg Sep 24, 2012
15fbbd4
Bulk Delete item when broadcast to all shard (lack of routing) might …
kimchy Sep 24, 2012
cfe7504
introduce TransportRequest (with optional headers)
kimchy Sep 26, 2012
1545327
fetching a shape should not occur on separate thread
kimchy Sep 26, 2012
613c70c
introduce TransportResponse
kimchy Sep 27, 2012
81775cc
upgrade to mvel 2.1.3
kimchy Sep 28, 2012
d8a3096
make sure to pass the updated settings from the plugins to the module…
kimchy Sep 28, 2012
f9fc9bd
query_string on multiple fields with "*" fails in 0.19.9
kimchy Sep 28, 2012
2df6b4b
more guice to use Objects from guava
kimchy Sep 28, 2012
51e69e1
Fixed NPE when using `has_parent` or `has_child` filter/query.
martijnvg Sep 28, 2012
7d6c567
return null instead of empty doc set
kimchy Sep 28, 2012
5bf5666
fix detection when JTS / spatial4j are not available
kimchy Sep 28, 2012
9dd8e1e
refresh thread pool to use scaling with default size of 10
kimchy Sep 29, 2012
05653cb
move cleaning filter cache on closed readers to separate thread
kimchy Sep 29, 2012
c56cc6e
Upgrade to netty 3.5.8
kimchy Sep 29, 2012
481c66f
Stop iterating on sub readers if the parent is found in TopChildrenQuery
hibnico Apr 4, 2012
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .travis.yml
@@ -0,0 +1,13 @@
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk7

env:
- ES_TEST_LOCAL=true
- ES_TEST_LOCAL=false
- ES_TEST_LOCAL=false ES_TEST_COMPRESS=true

notifications:
email: false
2 changes: 1 addition & 1 deletion README.textile
Expand Up @@ -207,7 +207,7 @@ h1. License
<pre>
This software is licensed under the Apache 2 license, quoted below.

Copyright 2009-2011 Shay Banon and ElasticSearch <http://www.elasticsearch.org>
Copyright 2009-2012 Shay Banon and ElasticSearch <http://www.elasticsearch.org>

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
Expand Down
16 changes: 9 additions & 7 deletions bin/elasticsearch
Expand Up @@ -68,12 +68,6 @@ ES_HOME=`dirname "$SCRIPT"`/..
ES_HOME=`cd "$ES_HOME"; pwd`


if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA=$JAVA_HOME/bin/java
else
JAVA=`which java`
fi

# If an include wasn't specified in the environment, then search for one...
if [ "x$ES_INCLUDE" = "x" ]; then
# Locations (in order) to use when searching for an include file.
Expand All @@ -92,6 +86,12 @@ elif [ -r "$ES_INCLUDE" ]; then
. "$ES_INCLUDE"
fi

if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA=java
fi

if [ -z "$ES_CLASSPATH" ]; then
echo "You must set the ES_CLASSPATH var" >&2
exit 1
Expand Down Expand Up @@ -121,14 +121,16 @@ launch_service()
es_parms="$es_parms -Des.foreground=yes"
exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \
org.elasticsearch.bootstrap.ElasticSearch
execval=$?
else
# Startup ElasticSearch, background it, and write the pid.
exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS $es_parms -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" $props \
org.elasticsearch.bootstrap.ElasticSearch <&- &
execval=$?
[ ! -z "$pidpath" ] && printf '%d' $! > "$pidpath"
fi

return $?
return $execval
}

# Parse any command line options.
Expand Down
8 changes: 6 additions & 2 deletions bin/elasticsearch.bat
Expand Up @@ -29,7 +29,11 @@ if NOT "%ES_HEAP_NEWSIZE%" == "" (
set JAVA_OPTS=%JAVA_OPTS% -Xmn%ES_HEAP_NEWSIZE%
)

set JAVA_OPTS=%JAVA_OPTS% -Xss128k
if NOT "%ES_DIRECT_SIZE%" == "" (
set JAVA_OPTS=%JAVA_OPTS% -XX:MaxDirectMemorySize=%ES_DIRECT_SIZE%
)

set JAVA_OPTS=%JAVA_OPTS% -Xss256k

REM Enable aggressive optimizations in the JVM
REM - Disabled by default as it might cause the JVM to crash
Expand Down Expand Up @@ -58,7 +62,7 @@ REM The path to the heap dump location, note directory must exists and have enou
REM space for a full heap dump.
REM JAVA_OPTS=%JAVA_OPTS% -XX:HeapDumpPath=$ES_HOME/logs/heapdump.hprof

set ES_CLASSPATH=%ES_CLASSPATH%;%ES_HOME%/lib/*;%ES_HOME%/lib/sigar/*
set ES_CLASSPATH=%ES_CLASSPATH%;%ES_HOME%/lib/${project.build.finalName}.jar;%ES_HOME%/lib/*;%ES_HOME%/lib/sigar/*
set ES_PARAMS=-Delasticsearch -Des-foreground=yes -Des.path.home="%ES_HOME%"

"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% %* -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch"
Expand Down
18 changes: 12 additions & 6 deletions bin/elasticsearch.in.sh
@@ -1,4 +1,6 @@
ES_CLASSPATH=$ES_CLASSPATH:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*
#!/bin/sh

ES_CLASSPATH=$ES_CLASSPATH:$ES_HOME/lib/${project.build.finalName}.jar:$ES_HOME/lib/*:$ES_HOME/lib/sigar/*

if [ "x$ES_MIN_MEM" = "x" ]; then
ES_MIN_MEM=256m
Expand All @@ -23,16 +25,20 @@ if [ "x$ES_HEAP_NEWSIZE" != "x" ]; then
JAVA_OPTS="$JAVA_OPTS -Xmn${ES_HEAP_NEWSIZE}"
fi

# max direct memory
if [ "x$ES_DIRECT_SIZE" != "x" ]; then
JAVA_OPTS="$JAVA_OPTS -XX:MaxDirectMemorySize=${ES_DIRECT_SIZE}"
fi

# reduce the per-thread stack size
JAVA_OPTS="$JAVA_OPTS -Xss128k"
JAVA_OPTS="$JAVA_OPTS -Xss256k"

# set to headless, just in case
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"

# Force the JVM to use IPv4 stack
# JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"

# Enable aggressive optimizations in the JVM
# - Disabled by default as it might cause the JVM to crash
# JAVA_OPTS="$JAVA_OPTS -XX:+AggressiveOpts"

JAVA_OPTS="$JAVA_OPTS -XX:+UseParNewGC"
JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC"

Expand Down
2 changes: 1 addition & 1 deletion bin/plugin.bat
Expand Up @@ -8,7 +8,7 @@ set SCRIPT_DIR=%~dp0
for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI


"%JAVA_HOME%\bin\java" -Xmx64m -Xms16m -Des.path.home="%ES_HOME%" -cp "%ES_HOME%/lib/*" "org.elasticsearch.plugins.PluginManager" %*
"%JAVA_HOME%\bin\java" -Xmx64m -Xms16m -Des.path.home="%ES_HOME%" -cp "%ES_HOME%/lib/*;" "org.elasticsearch.plugins.PluginManager" %*
goto finally


Expand Down