Skip to content

Refactor SearchRequest to be parsed on the coordinating node #13752

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
528 commits
Select commit Hold shift + click to select a range
7b431ec
Fix cross links
dadoonet Oct 6, 2015
fd1cd60
Fix indices.get_field_mapping rest tests
Mpdreamz Oct 6, 2015
484ee0a
Merge pull request #13962 from Mpdreamz/fix/get-field-mapping-rest-tests
Mpdreamz Oct 6, 2015
7e84053
Make strategy optional in GeoShapeQueryBuilder readFrom and writeTo
javanna Oct 6, 2015
84b748c
Merge pull request #13963 from javanna/fix/geo_shape_strategy_optional
javanna Oct 6, 2015
56c2c24
Remove ScriptEngineService.execute.
jpountz Oct 6, 2015
07fe08f
Merge pull request #13956 from jpountz/remove/ScriptEngineService_exe…
jpountz Oct 6, 2015
9492be6
plugin cli tool should not create empty log files
brwe Oct 6, 2015
d2ca694
Merge pull request #13933 from brwe/plugin-cli-logging
brwe Oct 6, 2015
82f9e97
Fully remove and ban ImmutableMap
nik9000 Oct 6, 2015
ed7c051
Merge pull request #13861 from brwe/vagrant-install-groovy
brwe Oct 6, 2015
f89de33
Merge branch 'master' into feature/search-request-refactoring
javanna Oct 6, 2015
f39e23b
pass in QuerySourceBuilder directly to ValidateQueryRequest
javanna Oct 6, 2015
ef286ce
Count api: simplify default handling and toString representation
javanna Oct 6, 2015
80d236e
Revert "Count api: simplify default handling and toString representat…
javanna Oct 6, 2015
0692b82
Ban ImmutableMap$Builder
nik9000 Oct 6, 2015
bb2611d
Merge branch 'master' into immutable_map_be_gone
nik9000 Oct 6, 2015
e71bc47
Merge pull request #13821 from nik9000/jayatana_test
nik9000 Oct 6, 2015
669a589
fixed some NORELEASE comments in tests
colings86 Oct 6, 2015
86be9db
Fix some RequestBuilder#toString that produced broken json
javanna Oct 6, 2015
10a5593
more fixes for tests
colings86 Oct 6, 2015
fcc6060
Count api: simplify default handling
javanna Oct 6, 2015
c2fc653
[TEST] move variable assignment one line above
javanna Oct 6, 2015
108f5c5
Count Request: minScore can be null, its getter should be Float rathe…
javanna Oct 6, 2015
a798f4f
prevent test failures from jython localization bugs.
rmuir Oct 6, 2015
1915c74
Merge branch 'master' into feature/search-request-refactoring
javanna Oct 6, 2015
aa19a41
vagrant tests: fix plugin outupt test
brwe Oct 6, 2015
cbcc23b
[TEST] Simplify SearchSourceBuilderTests setup
javanna Oct 6, 2015
9d1c45f
[TEST] Minor SearchSourceBuilderTests infra changes
javanna Oct 6, 2015
b7ae59d
Docs: Removed obsoleted MVEL paragraph
spinscale Oct 5, 2015
71aefd5
remove option to configure custom config file via CONF_FILE or -Des.d…
brwe Sep 24, 2015
4077a32
Docs: Fix typo - datehistogram
PoOoZaQ Oct 1, 2015
df81497
add paragraph about removal of conf file option
brwe Oct 6, 2015
a80a03f
Merge pull request #13973 from brwe/conf-file-migration-doc
brwe Oct 6, 2015
9200c44
Merge pull request #13946 from elastic/fix/indices-get-restspec
gmarz Oct 6, 2015
2473e74
name variables and don't always use the timeout
brwe Oct 6, 2015
f0252f3
Enhance plugin-descriptor.properties guide
dadoonet Oct 5, 2015
36a6211
[doc] Add a note about shard failure in the api
nik9000 Oct 6, 2015
934827d
fold feedback
mikemccand Oct 6, 2015
8a590d4
Merge pull request #13772 from brwe/remove-CONF_FILE
brwe Oct 7, 2015
bcb3fab
Engine: Remove Engine.Create
bleskes Oct 2, 2015
13d3a3e
send response for update request when it timed out
brwe Aug 25, 2015
ab74e68
Merge pull request #13101 from brwe/update-ang
brwe Oct 7, 2015
a024125
Java api: GeoDistanceRangeQueryBuilder#getValidationMethod to not tak…
javanna Oct 7, 2015
53f316b
GeoDistanceRangeQueryBuilder to not change its state when calling toQ…
javanna Oct 7, 2015
dc018cf
Updated docs for 3.0.0-beta
clintongormley Oct 7, 2015
7b02e91
Docs: Update repository docs with new major version structure
spinscale Oct 7, 2015
bb939f8
use searcher.createNormalizedWeight() instead of query.getWeight() an…
brwe Oct 7, 2015
871df97
Merge pull request #13961 from brwe/function-score-unit-tests
brwe Oct 7, 2015
c49fddd
Release: Fix package repo path to only consist of major version
spinscale Oct 6, 2015
90df3c6
Added bwc indices for 2.0.0-rc1
clintongormley Oct 7, 2015
884215a
Added version ID for 2.0.0-rc1
clintongormley Oct 7, 2015
3313742
removed defaultRescoreWindow
colings86 Oct 7, 2015
7f435e2
feedback
mikemccand Oct 7, 2015
5b23d9a
more test clean ups
colings86 Oct 7, 2015
ee5d284
more clean up
colings86 Oct 7, 2015
0fb9081
Clarify Javadoc comment regarding CacheSegment locks
jasontedor Oct 7, 2015
b32022d
Merge pull request #13977 from nik9000/doc_breaking_java
nik9000 Oct 7, 2015
1f61384
Protect against null RemovalListener in setter
jasontedor Oct 7, 2015
44b471b
Rename LRU and segment locks for clarity
jasontedor Oct 7, 2015
37becf3
Rename Cache.exceedsSize for clarity
jasontedor Oct 7, 2015
ff8f9c9
Add comment clarifying CacheTests.testCacheStats
jasontedor Oct 7, 2015
5328f14
Clarify use of System.nanoTime for measuring eviction times
jasontedor Oct 7, 2015
c67552e
Docs: Fix example about executing filters
micpalmia Oct 6, 2015
a16b025
re-enables InnerHits Tests
colings86 Oct 7, 2015
072f6ae
Docs: Note that plugin removal usually requires node restart
kkirsche Oct 7, 2015
23f97c3
Merge branch 'master' into immediate_shard_active
mikemccand Oct 7, 2015
2881c4f
Remove and forbid use of com.google.common.collect.Iterators
jasontedor Oct 2, 2015
8f8a005
Merge pull request #13916 from jasontedor/iterator-be-gone
jasontedor Oct 7, 2015
475e01f
[doc] Rewrite native script documentation
nik9000 Oct 7, 2015
3851093
Merge pull request #13996 from nik9000/native_scripts
nik9000 Oct 7, 2015
2064b17
Simplify similarity module and friends
s1monw Oct 2, 2015
bfa0202
Don't pull translog from shadow engine
s1monw Oct 7, 2015
4d87c5f
Merge pull request #13942 from s1monw/try_trash_index_guice
s1monw Oct 7, 2015
c0363dd
Update GCE discovery documentation
dadoonet Oct 7, 2015
566fef0
Mappings: Enforce metadata fields are not passed in documents
rjernst Oct 7, 2015
289cd5d
[discovery-gce] add _gce_ network host setting
dadoonet Sep 16, 2015
331d2d9
Update update.json
robertlyson Oct 7, 2015
890f607
add test and fix another bug on the way
s1monw Oct 7, 2015
ae69645
Merge remote-tracking branch 'origin/master'
dadoonet Oct 7, 2015
4271893
Merge pull request #14003 from rjernst/fix/13740
rjernst Oct 7, 2015
a358f34
Expose nodes operation timeout in REST API
imotov Oct 6, 2015
9eddc3c
Remove and forbid use of com.google.common.net.InetAddresses
jasontedor Oct 2, 2015
b99e400
Merge pull request #13905 from jasontedor/replace-inet-addresses
jasontedor Oct 8, 2015
ea99d97
TransportNodesAction shouldn't hold to cluster state
imotov Oct 7, 2015
b7c7c5f
Remove and forbid use of com.google.common.collect.EvictingQueue
jasontedor Oct 2, 2015
e61e746
Add Javadocs for EvictingQueue
jasontedor Oct 8, 2015
780ccb9
Test: add address formatting round trip tests
rmuir Oct 8, 2015
23cd64b
Merge pull request #13903 from jasontedor/evicting-queue-be-gone
jasontedor Oct 8, 2015
c73ab50
Rename cloud-gce plugin to discovery-gce plugin
dadoonet Sep 26, 2015
8b03d26
Add missing breaking doc for azure and aws
dadoonet Sep 27, 2015
4038aed
Fix internal link name
dadoonet Oct 8, 2015
becaff3
Replace cloud-gce with discovery-gce
dadoonet Oct 8, 2015
2553381
test and fix TranslogStats - you wouldn't believe how hard it is to s…
s1monw Oct 8, 2015
7e53123
Merge pull request #14000 from s1monw/issues/12730
s1monw Oct 8, 2015
9688e86
Merge pull request #13918 from mikemccand/immediate_shard_active
Oct 8, 2015
70b2d90
PluginManager: Dont leave leftover files on unsuccessful installs
spinscale Oct 8, 2015
c69cde4
review fixes
colings86 Oct 8, 2015
2b43a1c
Tests: Added missing check if permissions are supported on the filesy…
spinscale Oct 8, 2015
cf13c78
Added correct generic type parameter on ScriptedMetricBuilder
pakaufmann Oct 8, 2015
82d1c6a
Make license checks a bit less lenient.
jpountz Oct 8, 2015
a119e82
Fix minor typo
ankon Oct 8, 2015
77a328a
Add unittest for GeoPoint seriazliation and corresponding writeGeoPoi…
s1monw Oct 8, 2015
a46cf97
Merge branch 'pr-13632'
s1monw Oct 8, 2015
42d7bfd
test: add explicit generic type to get around a strange issue where t…
martijnvg Oct 8, 2015
cc40f20
Remove unnecessary Writeable implementation from GeoPoint
s1monw Oct 8, 2015
7aaba20
more fixes from review
colings86 Oct 8, 2015
4557d1b
Merge branch 'master' into feature/search-request-refactoring
colings86 Oct 8, 2015
cccbfe4
Fix the link pointing to the repository
ankon Oct 8, 2015
666c172
Add minimal javadocs for StreamInput#readGeoPoint()
s1monw Oct 8, 2015
78921e0
test: removed the usage of String.valueOf(...), java 8 type inference…
martijnvg Oct 8, 2015
3bb2492
Remove excess comma in code block
ankon Oct 8, 2015
83771d3
more test fixes
colings86 Oct 8, 2015
0c8377a
rename the RenderSearchTemplateAction to be a cluster level action
jaymode Sep 25, 2015
e0a78fd
Merge branch 'master' into feature/search-request-refactoring
colings86 Oct 8, 2015
7150e1d
Document that Debian 8 and Ubuntu 14 systemd
kkirsche Oct 7, 2015
ef3172c
Merge pull request #14020 from jpountz/enhancement/less_lenient_licen…
jpountz Oct 8, 2015
648cc6d
Packaging: change permissions/ownership of config dir
javanna Oct 8, 2015
7400cbe
Remove UpdateTests' dependency on groovy.
jpountz Oct 5, 2015
0dfe4cd
Merge pull request #13947 from jpountz/fix/ungroovy_AliasesRouting+Up…
jpountz Oct 8, 2015
c443e69
move render search template methods to cluster admin client
jaymode Oct 8, 2015
2ffc297
[doc] Make the sentence actually understandable
ankon Oct 8, 2015
af068fc
Merge pull request #14030 from jaymode/render_search_client
jaymode Oct 8, 2015
35dc287
More rigorous test around Cache evictions occurring in LRU order
jasontedor Oct 7, 2015
d720364
Cache.segments can be final
jasontedor Oct 8, 2015
02a7d9a
Correct semantics when loading absent values
jasontedor Oct 8, 2015
0493661
Merge pull request #14022 from Collaborne/docs/contributing-link
clintongormley Oct 8, 2015
99e4302
Merge pull request #14024 from ankon/patch-2
clintongormley Oct 8, 2015
51dd4b3
Merge pull request #13999 from kkirsche/patch-2
clintongormley Oct 8, 2015
8afddec
Merge pull request #14031 from ankon/patch-3
clintongormley Oct 8, 2015
c208add
Merge pull request #14019 from ankon/patch-1
clintongormley Oct 8, 2015
8d33be8
Cache#computeIfAbsent should throw if loader returns null value
jasontedor Oct 8, 2015
499d53c
Docs: Document ES_CLASSPATH removal in breaking changes
clintongormley Oct 8, 2015
260ba67
Merge pull request #14026 from clintongormley/classpath_docs
clintongormley Oct 8, 2015
9ca032a
Enforce strict eviction semantics
jasontedor Oct 8, 2015
3989159
Remove support for pre 2.0 indices
s1monw Sep 25, 2015
dee94c7
add additional checks for version compatibility
s1monw Sep 25, 2015
50907d5
apply review comments
s1monw Oct 8, 2015
4d38b8f
revert rather more complex simplification
s1monw Oct 8, 2015
867882c
remove unnecessary bwc tests
s1monw Oct 8, 2015
48162fa
remove another redundant test
s1monw Oct 8, 2015
7329493
Drop legacy hashfunctions - these tests don't work anymore since we d…
s1monw Oct 8, 2015
61c7302
fix bwc test for hashing / routing and simplify test to be a real uni…
s1monw Oct 8, 2015
9a662de
Fix min supported version
s1monw Oct 8, 2015
fcae618
Drop pre 1.4 binary numeric docvalues support
s1monw Oct 8, 2015
0a22a3a
drop binary mapping BWC test
s1monw Oct 8, 2015
73f27a3
Merge pull request #13799 from s1monw/remove_delete_by_query_leftoversw
s1monw Oct 8, 2015
e0fa329
Use longs for Cache.CacheStats to avoid overflow
jasontedor Oct 8, 2015
818d217
Preserve copy of head after taking lock on LRU list
jasontedor Oct 8, 2015
a556e31
Safety assertions on head and tail modifications
jasontedor Oct 8, 2015
881593e
Safe locking and unlocking of segments during invalidation
jasontedor Oct 8, 2015
a6abb4f
Comment regarding synchronization in Cache#computeIfAbsent
jasontedor Oct 8, 2015
7b5964f
Add response into ClearScrollResponse
Sep 28, 2015
5c43dc5
Merge pull request #13835 from xuzha/scroll_response
xuzha Oct 9, 2015
275da48
Cleanup the Lucene utility class.
jpountz Oct 9, 2015
8c10856
Merge pull request #14042 from jpountz/cleanup/Lucene_exists
jpountz Oct 9, 2015
05147f7
Merge pull request #14018 from kufi/master
colings86 Oct 9, 2015
1a50ce7
Update setup.asciidoc
clintongormley Oct 9, 2015
d5e6f34
Plugins: fix error message while copying plugin config dir
javanna Oct 9, 2015
0f23f8e
Remove unused import in o.e.p.PluginManagerIT
jasontedor Oct 9, 2015
bfb9054
Remove addAll(Collection, Iterable<ObjectCursor>)
nik9000 Oct 9, 2015
56318df
Be more careful with RoutingTable.Builder
nik9000 Oct 9, 2015
9492223
Clean up DiskThreasholdDeciderUnitTests
nik9000 Oct 9, 2015
0149517
Release locks in reverse order of acquisition
jasontedor Oct 9, 2015
59c9049
Mutating the cache while iterating is undefined
jasontedor Oct 9, 2015
50368b3
Merge pull request #13879 from jasontedor/straight-cache-homey
jasontedor Oct 9, 2015
d9e11e4
Merge branch 'master' into immutable_map_be_gone
nik9000 Oct 9, 2015
beeea14
Remove forbidden-apis check for cluster
nik9000 Oct 9, 2015
27f43e2
Remove files accidentally re-added during merge
nik9000 Oct 9, 2015
a3fd6a2
Merge pull request #13939 from nik9000/immutable_map_be_gone
nik9000 Oct 9, 2015
1ea4cbe
[build] Remove unused forbidden-api file
nik9000 Oct 9, 2015
699397a
Merge pull request #14052 from nik9000/remove_signatures
nik9000 Oct 9, 2015
81b9932
Update mustache.java to version 0.9.1
jasontedor Oct 9, 2015
acc8ffe
Merge pull request #14053 from jasontedor/upgrade-mustache
jasontedor Oct 9, 2015
9a9a6a4
Remove Guava as a dependency
jasontedor Oct 9, 2015
9385365
Merge pull request #14054 from jasontedor/guava-be-gone
jasontedor Oct 9, 2015
e95af69
Remove Deprecated tags from o.e.c.c.MapBuilder#immutableMap
jasontedor Oct 9, 2015
1205c66
[TEST] only use internal API if we are running against an internal cl…
s1monw Oct 11, 2015
1cb30c3
Fold IndexAliasesService into IndexService
s1monw Oct 7, 2015
362713a
Merge pull request #14044 from s1monw/trash_alias_service
s1monw Oct 11, 2015
069b397
Snapshot restore and index creates should keep index settings and clu…
Oct 3, 2015
affe2f2
Tests: Avoid unicode strings for alternative versions in query builde…
cbuescher Sep 25, 2015
6819224
Merge branch 'master' into feature/search-request-refactoring
colings86 Oct 12, 2015
9072f4f
Support "bogus" windows classpath entries in JarHell.
rmuir Oct 12, 2015
460c74f
changed ben to been
Oct 12, 2015
b876a4d
changed he to the
Oct 12, 2015
d3aa356
Deprecate `index.analysis.analyzer.default_index` in favor of `index.…
jpountz Oct 8, 2015
b9ac0ad
Update to maven-assembly-plugin 2.6
dadoonet Oct 12, 2015
08f7f7f
Merge pull request #14027 from jpountz/deprecate/default_index
jpountz Oct 12, 2015
ca76712
Merge branch 'master' into feature/search-request-refactoring
colings86 Oct 13, 2015
fc0a692
Merge pull request #14066 from sarwarbhuiyan/mapping-spelling-error
jpountz Oct 13, 2015
a055040
Merge branch 'maven/assembly-26'
dadoonet Oct 13, 2015
7557eae
Merge remote-tracking branch 'origin/master'
dadoonet Oct 13, 2015
6120f26
Remove unused clear(IndexReader) method from IndexFieldData
s1monw Oct 12, 2015
b9ba5fb
Merge pull request #14072 from s1monw/remove_clear_index_reader
s1monw Oct 13, 2015
17ce5d5
fix numerical issue in function score query
brwe Oct 13, 2015
a68c163
Merge pull request #14064 from rmuir/blinded_forever
rmuir Oct 13, 2015
318dfba
use same score computation for actual scoring and explanation
brwe Oct 13, 2015
63366ad
Parse Java system properties in plugin.bat
Oct 7, 2015
889edd0
Merge pull request #13931 from ywelsch/fix/index-settings-restore
Oct 13, 2015
57770d4
Fix import in SharedClusterSnapshotRestoreIT
Oct 13, 2015
d021b1b
assert that doc was actually found
brwe Oct 13, 2015
c2df88a
[TEST] Add tests for TransportMasterNodeAction
Oct 7, 2015
2162172
Add methods for variable-length encoding integral arrays
jasontedor Oct 13, 2015
a550ebf
Merge pull request #13998 from ywelsch/tests/transportmasternodeaction
Oct 13, 2015
ceb969a
Make PerThreadIDAndVersionLookup per-segment
rmuir Oct 13, 2015
b7e0958
Merge pull request #14087 from jasontedor/vle-integral-arrays
jasontedor Oct 13, 2015
1634c83
Merge pull request #14085 from brwe/fix-score-accuracy
brwe Oct 13, 2015
4d7d29f
Plugins: plugin script to set proper plugin config dir attributes
javanna Oct 9, 2015
077a401
[TEST] do not wipe excluded templates
jaymode Oct 13, 2015
d3436ff
Streamline top level reader close listeners and forbid general usage
s1monw Oct 12, 2015
bd5ac9c
enforce DirectoryReader when globals are loaded
s1monw Oct 13, 2015
ba8de12
remove unnecessary cast
s1monw Oct 13, 2015
dac1799
Cast DirectoryReader only when really requested
s1monw Oct 13, 2015
e3f00e3
Add more pickyness to index warming and searcher wrappping
s1monw Oct 13, 2015
1dca0e8
Add simple tests to ensure we can load and unload global ordinal with…
s1monw Oct 13, 2015
0ead0fa
fix typo
s1monw Oct 13, 2015
14b6314
Update fuzzy-query.asciidoc
clintongormley Oct 13, 2015
ec60018
add comment why and when we have a leaf reader in the warmer
s1monw Oct 13, 2015
3e7201e
Merge pull request #14096 from speedplane/patch-2
clintongormley Oct 13, 2015
7e2f558
Added link to Swagger for Elasticsearch
timschlechter Oct 13, 2015
cac073d
enforce that wrappers delegate core cache key and ban getCombinedCore…
s1monw Oct 13, 2015
b154c84
Avoid deadlocks in Cache#computeIfAbsent
jasontedor Oct 13, 2015
1d0b93f
Merge pull request #14091 from jasontedor/no-deadlocks-in-compute-if-…
jasontedor Oct 14, 2015
2e445d3
Do not pollute Cache with failed futures
jasontedor Oct 14, 2015
7999027
apply review comments
s1monw Oct 14, 2015
db710c5
add javadocs
s1monw Oct 14, 2015
5828796
Merge pull request #14084 from s1monw/close_the_wrapper_only
s1monw Oct 14, 2015
9fa4cc9
Merge pull request #14097 from timschlechter/patch-4
clintongormley Oct 14, 2015
c133bec
Ensure searcher is release if wrapping fails
s1monw Oct 14, 2015
f4eab50
Upgrade Netty to 3.10.5.final
s1monw Oct 14, 2015
da12290
Merge pull request #14105 from s1monw/upgrade_netty_3_10_5_final
s1monw Oct 14, 2015
461ce98
Merge pull request #14107 from s1monw/release_searcher_on_wrapper_fai…
s1monw Oct 14, 2015
7368231
Plugins: plugin script to set proper plugin bin dir attributes
javanna Oct 13, 2015
5d001d1
Decentralize plugin security
rmuir Oct 14, 2015
88dd325
Cleanup IndexMetaData
jasontedor Oct 14, 2015
b31d3dd
Adds geo_centroid metric aggregator
nknize Sep 16, 2015
ceefe2e
remove centroid calculation from GeoHashGridAggregation
nknize Oct 9, 2015
68561ce
Merge pull request #14119 from jasontedor/index-meta-data-clean-up
jasontedor Oct 14, 2015
9c109ca
Fix SeccompTests bug on older kernels
rmuir Oct 15, 2015
5b1ee8b
Fix GeoCenteriod Aggregation serialization
s1monw Oct 15, 2015
c618f75
Merge branch 'master' into feature/search-request-refactoring
colings86 Oct 15, 2015
bbaf7ea
Release 1.7.3: Added bwc indices and updated Version.java
spinscale Oct 15, 2015
63c51b7
review comment fixes
colings86 Oct 15, 2015
8a87448
Revert changes made to IdsQueryBuilder, fixed upstream meanwhile
javanna Oct 15, 2015
0cab4a2
Revert changes made to IndexQueryParserService, fixed upstream meanwhile
javanna Oct 15, 2015
0dcac14
Merge pull request #14126 from rmuir/seccomp_testbug
rmuir Oct 15, 2015
c375180
Test that the lucene "unmap hack" is supported.
rmuir Oct 15, 2015
ef5fc72
reverted non-null searchSourceBuilder in searchRequest for now
colings86 Oct 15, 2015
cf3e92a
Merge branch 'master' into feature/search-request-refactoring
colings86 Oct 15, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Then sit back and wait. There will probably be discussion about the pull request
Contributing to the Elasticsearch codebase
------------------------------------------

**Repository:** [https://github.com/elasticsearch/elasticsearch](https://github.com/elastic/elasticsearch)
**Repository:** [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch)

Make sure you have [Maven](http://maven.apache.org) installed, as Elasticsearch uses it as its build system. Integration with IntelliJ and Eclipse should work out of the box. Eclipse users can automatically configure their IDE by running `mvn eclipse:eclipse` and then importing the project into their workspace: `File > Import > Existing project into workspace` and make sure to select `Search for nested projects...` option as Elasticsearch is a multi-module maven project. Additionally you will want to ensure that Eclipse is using 2048m of heap by modifying `eclipse.ini` accordingly to avoid GC overhead errors. Please make sure the [m2e-connector](http://marketplace.eclipse.org/content/m2e-connector-maven-dependency-plugin) is not installed in your Eclipse distribution as it will interfere with setup performed by `mvn eclipse:eclipse`.

Expand Down
6 changes: 6 additions & 0 deletions TESTING.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@ or run all the boxes:
mvn -Dtests.vagrant=all -pl qa/vagrant verify
---------------------------------------

If you want to run a specific test on several boxes you can do:

---------------------------------------
mvn -Dtests.vagrant=all -pl qa/vagrant verify -DtestScripts=*tar*.bats
---------------------------------------

Its important to know that if you ctrl-c any of these `mvn` runs that you'll
probably leave a VM up. You can terminate it by running:

Expand Down
12 changes: 8 additions & 4 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ Vagrant.configure(2) do |config|
end
config.vm.define "vivid" do |config|
config.vm.box = "ubuntu/vivid64"
ubuntu_common config
ubuntu_common config, extra: <<-SHELL
# Install Jayatana so we can work around it being present.
[ -f /usr/share/java/jayatanaag.jar ] || install jayatana
SHELL
end
# Wheezy's backports don't contain Openjdk 8 and the backflips required to
# get the sun jdk on there just aren't worth it. We have jessie for testing
Expand Down Expand Up @@ -116,11 +119,11 @@ SOURCE_PROMPT
end
end

def ubuntu_common(config)
deb_common config, 'apt-add-repository -y ppa:openjdk-r/ppa > /dev/null 2>&1', 'openjdk-r-*'
def ubuntu_common(config, extra: '')
deb_common config, 'apt-add-repository -y ppa:openjdk-r/ppa > /dev/null 2>&1', 'openjdk-r-*', extra: extra
end

def deb_common(config, add_openjdk_repository_command, openjdk_list)
def deb_common(config, add_openjdk_repository_command, openjdk_list, extra: '')
# http://foo-o-rama.com/vagrant--stdin-is-not-a-tty--fix.html
config.vm.provision "fix-no-tty", type: "shell" do |s|
s.privileged = false
Expand All @@ -137,6 +140,7 @@ def deb_common(config, add_openjdk_repository_command, openjdk_list)
(echo "Importing java-8 ppa" &&
#{add_openjdk_repository_command} &&
apt-get update)
#{extra}
SHELL
)
end
Expand Down
559 changes: 559 additions & 0 deletions core/.local-3.0.0-SNAPSHOT-test-execution-times.log

Large diffs are not rendered by default.

31 changes: 17 additions & 14 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@
</dependency>
<!-- Lucene spatial -->

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId>
Expand Down Expand Up @@ -163,12 +159,6 @@
<artifactId>commons-cli</artifactId>
</dependency>

<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<classifier>indy</classifier>
<optional>true</optional>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
Expand Down Expand Up @@ -280,9 +270,17 @@
<include>org/elasticsearch/common/cli/CliToolTestCase$*.class</include>
<include>org/elasticsearch/cluster/MockInternalClusterInfoService.class</include>
<include>org/elasticsearch/cluster/MockInternalClusterInfoService$*.class</include>
<include>org/elasticsearch/index/shard/MockEngineFactoryPlugin.class</include>
<include>org/elasticsearch/index/MockEngineFactoryPlugin.class</include>
<include>org/elasticsearch/search/MockSearchService.class</include>
<include>org/elasticsearch/search/MockSearchService$*.class</include>
<include>org/elasticsearch/search/aggregations/bucket/AbstractTermsTestCase.class</include>
<include>org/elasticsearch/search/aggregations/bucket/script/NativeSignificanceScoreScriptNoParams.class</include>
<include>org/elasticsearch/search/aggregations/bucket/script/NativeSignificanceScoreScriptNoParams$*.class</include>
<include>org/elasticsearch/search/aggregations/bucket/script/NativeSignificanceScoreScriptWithParams.class</include>
<include>org/elasticsearch/search/aggregations/bucket/script/NativeSignificanceScoreScriptWithParams$*.class</include>
<include>org/elasticsearch/search/aggregations/bucket/script/TestScript.class</include>
<include>org/elasticsearch/search/aggregations/metrics/AbstractNumericTestCase.class</include>
<include>org/elasticsearch/percolator/PercolatorTestUtil.class</include>
<include>org/elasticsearch/cache/recycler/MockPageCacheRecycler.class</include>
<include>org/elasticsearch/cache/recycler/MockPageCacheRecycler$*.class</include>
<include>org/elasticsearch/common/util/MockBigArrays.class</include>
Expand Down Expand Up @@ -331,12 +329,17 @@
<excludes>
<!-- Guice -->
<exclude>src/main/java/org/elasticsearch/common/inject/**</exclude>
<exclude>src/main/java/org/elasticsearch/common/geo/GeoHashUtils.java</exclude>
<!-- Forks of Lucene classes -->
<exclude>src/main/java/org/apache/lucene/**/X*.java</exclude>
<!-- t-digest -->
<exclude>src/main/java/org/elasticsearch/search/aggregations/metrics/percentiles/tdigest/TDigestState.java</exclude>
<!-- netty pipelining -->
<exclude>src/main/java/org/elasticsearch/http/netty/pipelining/**</exclude>
<!-- Guava -->
<exclude>src/main/java/org/elasticsearch/common/network/InetAddresses.java</exclude>
<exclude>src/test/java/org/elasticsearch/common/network/InetAddressesTests.java</exclude>
<exclude>src/test/java/org/elasticsearch/common/collect/EvictingQueueTests.java</exclude>
<!-- Joda -->
<exclude>src/main/java/org/joda/time/base/BaseDateTime.java</exclude>
<exclude>src/main/java/org/joda/time/format/StrictISODateTimeFormat.java</exclude>
</excludes>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@

package org.apache.lucene.queryparser.classic;

import com.google.common.collect.ImmutableMap;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.*;
import org.apache.lucene.search.BooleanClause;
import org.apache.lucene.search.DisjunctionMaxQuery;
import org.apache.lucene.search.FuzzyQuery;
import org.apache.lucene.search.MatchNoDocsQuery;
import org.apache.lucene.search.MultiPhraseQuery;
import org.apache.lucene.search.PhraseQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.util.IOUtils;
import org.apache.lucene.util.automaton.RegExp;
import org.elasticsearch.common.lucene.search.Queries;
import org.elasticsearch.common.unit.Fuzziness;
Expand All @@ -37,9 +43,12 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

import static java.util.Collections.unmodifiableMap;
import static org.elasticsearch.common.lucene.search.Queries.fixNegativeQueryIfNeeded;

/**
Expand All @@ -51,13 +60,13 @@
*/
public class MapperQueryParser extends QueryParser {

public static final ImmutableMap<String, FieldQueryExtension> fieldQueryExtensions;
public static final Map<String, FieldQueryExtension> FIELD_QUERY_EXTENSIONS;

static {
fieldQueryExtensions = ImmutableMap.<String, FieldQueryExtension>builder()
.put(ExistsFieldQueryExtension.NAME, new ExistsFieldQueryExtension())
.put(MissingFieldQueryExtension.NAME, new MissingFieldQueryExtension())
.build();
Map<String, FieldQueryExtension> fieldQueryExtensions = new HashMap<>();
fieldQueryExtensions.put(ExistsFieldQueryExtension.NAME, new ExistsFieldQueryExtension());
fieldQueryExtensions.put(MissingFieldQueryExtension.NAME, new MissingFieldQueryExtension());
FIELD_QUERY_EXTENSIONS = unmodifiableMap(fieldQueryExtensions);
}

private final QueryShardContext context;
Expand Down Expand Up @@ -123,7 +132,7 @@ protected Query newMatchAllDocsQuery() {

@Override
public Query getFieldQuery(String field, String queryText, boolean quoted) throws ParseException {
FieldQueryExtension fieldQueryExtension = fieldQueryExtensions.get(field);
FieldQueryExtension fieldQueryExtension = FIELD_QUERY_EXTENSIONS.get(field);
if (fieldQueryExtension != null) {
return fieldQueryExtension.query(context, queryText);
}
Expand Down Expand Up @@ -484,30 +493,31 @@ private Query getPossiblyAnalyzedPrefixQuery(String field, String termStr) throw
if (!settings.analyzeWildcard()) {
return super.getPrefixQuery(field, termStr);
}
List<String> tlist;
// get Analyzer from superclass and tokenize the term
TokenStream source;
TokenStream source = null;
try {
source = getAnalyzer().tokenStream(field, termStr);
source.reset();
} catch (IOException e) {
return super.getPrefixQuery(field, termStr);
}
List<String> tlist = new ArrayList<>();
CharTermAttribute termAtt = source.addAttribute(CharTermAttribute.class);

while (true) {
try {
if (!source.incrementToken()) break;
source = getAnalyzer().tokenStream(field, termStr);
source.reset();
} catch (IOException e) {
break;
return super.getPrefixQuery(field, termStr);
}
tlist.add(termAtt.toString());
}
tlist = new ArrayList<>();
CharTermAttribute termAtt = source.addAttribute(CharTermAttribute.class);

try {
source.close();
} catch (IOException e) {
// ignore
while (true) {
try {
if (!source.incrementToken()) break;
} catch (IOException e) {
break;
}
tlist.add(termAtt.toString());
}
} finally {
if (source != null) {
IOUtils.closeWhileHandlingException(source);
}
}

if (tlist.size() == 1) {
Expand Down Expand Up @@ -538,7 +548,7 @@ protected Query getWildcardQuery(String field, String termStr) throws ParseExcep
return newMatchAllDocsQuery();
}
// effectively, we check if a field exists or not
return fieldQueryExtensions.get(ExistsFieldQueryExtension.NAME).query(context, actualField);
return FIELD_QUERY_EXTENSIONS.get(ExistsFieldQueryExtension.NAME).query(context, actualField);
}
}
if (lowercaseExpandedTerms) {
Expand Down Expand Up @@ -617,8 +627,7 @@ private Query getPossiblyAnalyzedWildcardQuery(String field, String termStr) thr
char c = termStr.charAt(i);
if (c == '?' || c == '*') {
if (isWithinToken) {
try {
TokenStream source = getAnalyzer().tokenStream(field, tmp.toString());
try (TokenStream source = getAnalyzer().tokenStream(field, tmp.toString())) {
source.reset();
CharTermAttribute termAtt = source.addAttribute(CharTermAttribute.class);
if (source.incrementToken()) {
Expand All @@ -633,7 +642,6 @@ private Query getPossiblyAnalyzedWildcardQuery(String field, String termStr) thr
// no tokens, just use what we have now
aggStr.append(tmp);
}
source.close();
} catch (IOException e) {
aggStr.append(tmp);
}
Expand All @@ -648,22 +656,22 @@ private Query getPossiblyAnalyzedWildcardQuery(String field, String termStr) thr
}
if (isWithinToken) {
try {
TokenStream source = getAnalyzer().tokenStream(field, tmp.toString());
source.reset();
CharTermAttribute termAtt = source.addAttribute(CharTermAttribute.class);
if (source.incrementToken()) {
String term = termAtt.toString();
if (term.length() == 0) {
try (TokenStream source = getAnalyzer().tokenStream(field, tmp.toString())) {
source.reset();
CharTermAttribute termAtt = source.addAttribute(CharTermAttribute.class);
if (source.incrementToken()) {
String term = termAtt.toString();
if (term.length() == 0) {
// no tokens, just use what we have now
aggStr.append(tmp);
} else {
aggStr.append(term);
}
} else {
// no tokens, just use what we have now
aggStr.append(tmp);
} else {
aggStr.append(term);
}
} else {
// no tokens, just use what we have now
aggStr.append(tmp);
}
source.close();
} catch (IOException e) {
aggStr.append(tmp);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Licensed to Elasticsearch under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elasticsearch licenses this
* file to you 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 the License at
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.apache.lucene.search.postingshighlight;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Licensed to Elasticsearch under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elasticsearch licenses this
* file to you 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 the License at
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.apache.lucene.search.postingshighlight;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
/*
* Licensed to Elasticsearch under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elasticsearch licenses this
* file to you 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 the License at
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.apache.lucene.search.postingshighlight;
Expand Down
Loading