Colin Goodheart-Smithe
d49a744b7e
[TEST] Removed @Repeat Annotation
2015-09-11 09:36:25 +01:00
Colin Goodheart-Smithe
f8c47345b0
Fixed Typo in Test Name
2015-09-11 09:30:55 +01:00
Colin Goodheart-Smithe
2118936deb
Query Refactoring: Refactor of GeoShapeQuery
...
Moving the query building functionality from the parser to the builders
new toQuery() method analogous to other recent query refactorings.
Relates to #10217
PR goes against the query-refactoring branch
2015-09-11 09:26:09 +01:00
Simon Willnauer
853b7fdb7c
Fold MoreLikeThisFetchService into MoreLikeThisQueryParser
...
now that we have a Client on the Shard context we can fold
the doc fetching into the parser / builder.
Relates to #13488
2015-09-11 10:21:40 +02:00
Simon Willnauer
94a37d486f
Remove ShapeFetchService and TermsLookupFetchService and use a Client instead
...
This commit removes all the optional injects etc. for the FetchServices and
provides a Client via IndexQueryParserService / Context. This allows direct
injection instead of optional injection. It also allows to remove all the
unnecessary services and use the fetch code where it belongs.
This commit also adds testing infrastructure for intercepting client calls
to AbstractQueryTestCase to support GET calls in query tests.
2015-09-11 09:07:18 +02:00
Colin Goodheart-Smithe
cac72c9207
Query Refactoring: Refactor of GeoPolygonQuery
...
Moving the query building functionality from the parser to the builders
new toQuery() method analogous to other recent query refactorings.
Relates to #10217
PR goes against the query-refactoring branch
2015-09-11 07:54:00 +01:00
javanna
2e68738429
adapt to upstream changes
2015-09-10 16:04:55 +02:00
javanna
56b3db6ba3
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/elasticsearch/index/query/AndQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/AndQueryParser.java
core/src/main/java/org/elasticsearch/index/query/FQueryFilterParser.java
core/src/main/java/org/elasticsearch/index/query/FilteredQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/FilteredQueryParser.java
core/src/main/java/org/elasticsearch/index/query/HasChildQueryParser.java
core/src/main/java/org/elasticsearch/index/query/IndicesQueryParser.java
core/src/main/java/org/elasticsearch/index/query/LimitQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/LimitQueryParser.java
core/src/main/java/org/elasticsearch/index/query/MultiMatchQueryParser.java
core/src/main/java/org/elasticsearch/index/query/OrQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/OrQueryParser.java
core/src/main/java/org/elasticsearch/index/query/QueryFilterBuilder.java
core/src/main/java/org/elasticsearch/index/query/QueryFilterParser.java
core/src/main/java/org/elasticsearch/index/query/QueryParseContext.java
core/src/main/java/org/elasticsearch/index/query/ScriptQueryParser.java
core/src/main/java/org/elasticsearch/indices/query/IndicesQueriesRegistry.java
core/src/main/java/org/elasticsearch/search/sort/GeoDistanceSortParser.java
core/src/main/java/org/elasticsearch/search/sort/SortParseElement.java
core/src/test/java/org/elasticsearch/benchmark/search/child/ChildSearchShortCircuitBenchmark.java
core/src/test/java/org/elasticsearch/index/query/SimpleIndexQueryParserTests.java
2015-09-10 15:52:28 +02:00
Britta Weber
c10f116a84
[test] don't catch AssertionError from indexRandom(). just index and catch MapperParsingException
2015-09-10 14:51:23 +02:00
Simon Willnauer
8d2a2f8d66
Split NestedQueryParser into toQuery and formXContent
...
This commit splits NestedQueryParser into toQuery and fromXContent.
Relates to #10217
2015-09-10 14:40:17 +02:00
javanna
1dc985a2c4
Remove ordinal member from Operator enum
...
Use the already available enum ordinal instead.
Closes #13456
2015-09-10 14:19:10 +02:00
Simon Willnauer
e2bbfbe1d5
Use AbstractQueryTestCase in MatchQueryBuilderTests
2015-09-10 13:21:59 +02:00
Simon Willnauer
feb5bdb23e
Merge pull request #13441 from s1monw/fix_query_base_test
...
Cleanup QueryTest framework and be more strict
2015-09-10 13:12:26 +02:00
Simon Willnauer
de3c9a23e9
Cleanup code and always use strict parsing on query tests
2015-09-10 12:58:25 +02:00
Martijn van Groningen
314e1c8a3e
parent/child: has_child has_parent queries shouldn't require search context
2015-09-10 12:47:06 +02:00
Martijn van Groningen
2eadc6d595
nested sorting: If sorting by nested field then the `nested_path` should always be specified.
...
Closes #13420
2015-09-10 12:21:12 +02:00
Martijn van Groningen
89159f073c
Merge pull request #13430 from martijnvg/pc/parent_field_always_store_doc_values
...
Parent field mapper should always store doc values join field.
2015-09-10 12:15:39 +02:00
Christoph Büscher
90fac17a2d
Query refactoring: MatchQueryBuilder
...
This add equals, hashcode, read/write methods, separates toQuery and JSON parsing and adds tests.
Also moving MatchQueryBuilder.Type to MatchQuery to MatchQuery, adding serialization and hashcode,
equals there.
Relates to #10217
2015-09-10 12:14:55 +02:00
Martijn Laarman
8e7be8b552
part types are not string but list on the _search_shards endpoint
2015-09-10 12:02:11 +02:00
Martijn Laarman
aaf7116bfb
synced flush incorrectly documented url parameters as path parameters
2015-09-10 12:00:06 +02:00
Alexander Reelsen
9421aaea4d
Release: Remove deprecated method of repository creation
...
This removes the old shell script for repository creation.
Small fix for gpg key name as well.
2015-09-10 11:14:31 +02:00
javanna
5cc423a229
delete unused XContentStructure class
2015-09-10 11:02:10 +02:00
Simon Willnauer
9f722a6674
Cleanup QueryTest framework and be more strict
...
This commit contains:
* renaming BaseQueryTestCase to AbstractQueryTestCase
* uses always STRICT parsing when parsing from builders XContent
* ensures that SearchContext is only but always available during toQuery but never during parse phase
* adds a way to override the default ParseFieldMatcher to allow queries to set deprecated API by default
2015-09-10 10:57:13 +02:00
Simon Willnauer
7fff399834
Reenable XTestSecurityManager
2015-09-10 10:49:13 +02:00
Adrien Grand
8027b4a1b4
Merge pull request #13418 from jpountz/fix/query_deprecations
...
Remove support for deprecated queries.
2015-09-10 10:39:24 +02:00
Adrien Grand
e89ec468c3
Remove support for deprecated queries.
...
This removes support for the `and`, `or`, `fquery`, `limit` and `filtered`
queries. `query` is still supported until #13326 is fixed.
2015-09-10 10:38:11 +02:00
javanna
484fcd49e5
Query refactoring: query_string
...
Relates to #10217
2015-09-10 10:09:24 +02:00
Simon Willnauer
7ab0e2c532
Swap out XTestSecurityManager until we figured out why it crashes the JVM
2015-09-10 09:57:02 +02:00
Ryan Ernst
c1dd9b8a98
add temp test security manager to test jar
2015-09-09 16:08:50 -07:00
Robert Muir
e67140b954
Merge pull request #13442 from rmuir/ide_noise
...
Remove noise when IDE test runners try to System.exit
2015-09-09 18:22:05 -04:00
Ryan Ernst
7854ccf797
Tweak intellij junit package name
2015-09-09 15:17:48 -07:00
Robert Muir
e7b98ac513
lie to the stupid license checker
2015-09-09 18:03:32 -04:00
Robert Muir
c273895d82
Remove noise when IDE test runners try to System.exit
2015-09-09 18:00:46 -04:00
Jason Tedor
6b19aebab0
Merge pull request #13438 from jasontedor/maps-be-gone
...
Remove and forbid use of com.google.common.collect.Maps
2015-09-09 17:58:44 -04:00
Jason Tedor
2a5412ebf0
Remove and forbid use of com.google.common.collect.Maps
...
This commit removes and now forbids all uses of
com.google.common.collect.Maps across the codebase. This is one of many
steps in the eventual removal of Guava as a dependency.
Relates #13224
2015-09-09 17:41:41 -04:00
Jason Tedor
b18ee60f80
Merge pull request #13440 from jasontedor/remove-thread-dumps-on-test-failures
...
Do not dump stack traces of threads on test failure
2015-09-09 17:23:41 -04:00
Jason Tedor
3dcb1a81c8
Do not dump stack traces of threads on test failure
...
Reverts 878301c795
, relates #12425
2015-09-09 17:07:13 -04:00
Ryan Ernst
9d71f0726e
Merge pull request #13410 from rjernst/you_were_warned
...
Fix compiler warnings
2015-09-09 14:04:54 -07:00
Ryan Ernst
9e8a90a657
Add xlint ignores for warning classes, where appropriate.
2015-09-09 12:47:07 -07:00
Alex Ksikes
274611c7c0
[TEST] fix template query with unmapped fields
2015-09-09 21:13:14 +02:00
gmarz
9e6115b066
Packaging: Fix Windows service start/stop issues
...
This commit addresses several bugs that prevented the Windows
service from being started or stopped:
- Extra white space in the concatenation of java options in
elasticsearch.in.bat which tripped up Apache Commons Daemon
and caused ES to startup without any params, eventually leading
to the "path.home is not configured" exception.
- service.bat was not passing the start argument to ES
- The service could not be stopped gracefully via the stop command
because there wasn't a method for procrun to call.
Closes #13247
Closes #13401
2015-09-09 13:31:46 -04:00
Martijn van Groningen
c54135c1e1
parent/child: Always store doc values join field.
...
Now that the pre 2.0 parent child implementation has been removed there is no need to have logic that decides not to store the join doc values field.
2015-09-09 18:46:40 +02:00
javanna
7a2dd7d55c
adapted to changes upstream
2015-09-09 17:15:44 +02:00
javanna
db705ab460
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/elasticsearch/index/mapper/internal/ParentFieldMapper.java
core/src/main/java/org/elasticsearch/index/query/HasChildQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/HasChildQueryParser.java
core/src/main/java/org/elasticsearch/index/query/HasParentQueryParser.java
core/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryParser.java
core/src/main/java/org/elasticsearch/index/search/child/ChildrenQuery.java
core/src/test/java/org/elasticsearch/index/query/SimpleIndexQueryParserTests.java
core/src/test/java/org/elasticsearch/index/search/child/AbstractChildTestCase.java
core/src/test/java/org/elasticsearch/index/search/child/ChildrenConstantScoreQueryTests.java
core/src/test/java/org/elasticsearch/index/search/child/ChildrenQueryTests.java
core/src/test/java/org/elasticsearch/search/child/ChildQuerySearchBwcIT.java
core/src/test/java/org/elasticsearch/search/child/ChildQuerySearchIT.java
core/src/test/resources/org/elasticsearch/index/query/simple-query-string.json
2015-09-09 17:08:22 +02:00
Colin Goodheart-Smithe
678e1be5cf
[TEST] fix geo query failures when no types are defined
2015-09-09 14:24:53 +01:00
Martijn van Groningen
73d84e4797
Merge pull request #13376 from martijnvg/remove_pre2x_slow_parent_child
...
Removed pre 2.x parent child implementation
2015-09-09 15:20:10 +02:00
David Pilato
5b9d183bf4
Merge remote-tracking branch 'origin/master'
2015-09-09 15:17:48 +02:00
David Pilato
35049a05c3
Allocation: add support for filtering by transport IP address
...
Allocation filtering by IP only works today using the node host address. But in some cases, you might want to filter using the publish address which could be different.
2015-09-09 15:15:53 +02:00
Robert Muir
f5270849fa
Merge pull request #13407 from rmuir/ide_security_manager
...
Enable security manager by default in tests (e.g. IDEs)
2015-09-09 09:12:35 -04:00
Colin Goodheart-Smithe
19792516ba
Query Refactoring: Refactor of GeoDistanceRangeQuery
...
Moving the query building functionality from the parser to the builders
new toQuery() method analogous to other recent query refactorings.
Also this PR removes the check that the index is created before 2.0 for the normalize parameter. The parameter is now always parsed but as a deprecated parameter. We cannot and should not access the index version during parsing.
Relates to #10217
PR goes against the query-refactoring branch
2015-09-09 13:40:24 +01:00