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
javanna
484fcd49e5
Query refactoring: query_string
...
Relates to #10217
2015-09-10 10:09:24 +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
Martijn van Groningen
2fb2a12c52
Removed pre 2.x parent child implementation
2015-09-09 13:21:40 +02:00
Alex Ksikes
a45ee273e3
MLT: builder takes a new Item object like its parser
...
Previously the parser could take any Term Vectors request, but this would be
not the case of the builder which would still use MultiGetRequest.Item. This
introduces a new Item class which is used by both the builder and parser.
Beyond that the rest is mostly cleanups such as:
1) Deprecating the ignoreLike methods, in favor to using unlike.
2) Deprecating and renaming MoreLikeThisBuilder#addItem to addLikeItem.
3) Ordering the methods of MoreLikeThisBuilder more logically.
This change is needed for the upcoming query refactoring of MLT.
Closes #13372
2015-09-09 11:40:27 +02:00
Ryan Ernst
55795f8ec2
Merge pull request #13383 from rjernst/go_away_transport_paths
...
Remove environment from transport client
2015-09-08 13:28:21 -07:00
David Pilato
81223179df
[doc] Java add missing breaking changes
...
Closes #13151
2015-09-08 21:23:20 +02:00
Ryan Ernst
86ffa38ec7
Add migration guide note about transport client changes to
...
settings/environment
2015-09-08 10:22:46 -07:00
Simon Willnauer
18bec264f9
Split HasChildQueryParser into toQuery and formXContent
...
This is an intial commit that splits HasChildQueryParser / Builder into
the two seperate steps. This one is particularly nasty since it transports
a pretty wild InnerHits object that needs heavy refactoring. Yet, this commit
has still some nocommits and needs more tests and maybe another cleanup but
it's a start to get the code out there.
2015-09-08 17:11:57 +02:00
javanna
f2605b34d6
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/elasticsearch/index/query/ScriptQueryParser.java
2015-09-08 16:11:22 +02:00
Clinton Gormley
2c20658204
Docs: Added deprecation notice for _timestamp and _ttl
2015-09-07 21:16:19 +02:00
Adrien Grand
0c26e7cd83
Remove the scan and count search types.
...
These search types have been deprecated in 2.1 and 2.0 respectively, and will
be removed in 3.0.
2015-09-07 15:18:45 +02:00
javanna
52be313c69
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/elasticsearch/index/query/BoolQueryParser.java
core/src/main/java/org/elasticsearch/index/query/IdsQueryParser.java
core/src/main/java/org/elasticsearch/index/query/SimpleQueryStringParser.java
core/src/main/java/org/elasticsearch/index/query/TemplateQueryParser.java
core/src/main/java/org/elasticsearch/index/query/TermsQueryParser.java
core/src/main/java/org/elasticsearch/index/query/functionscore/fieldvaluefactor/FieldValueFactorFunctionParser.java
core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/heuristics/GND.java
core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/heuristics/JLHScore.java
core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/heuristics/NXYSignificanceHeuristic.java
core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/heuristics/PercentageScore.java
core/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/heuristics/ScriptHeuristic.java
core/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTermsSignificanceScoreIT.java
2015-09-02 16:00:35 +02:00
xuzha
f46e66e7d0
Remove the experimental indices.fielddata.cache.expire
...
closes #10781
2015-09-01 00:40:04 -07:00
javanna
faf526dccb
Merge branch 'master' into feature/query-refactoring
2015-08-31 13:28:48 +02:00
Clinton Gormley
40dbba4e64
Update settings.asciidoc
...
Added removal of merge and merge throttling settings to breaking changes
2015-08-28 18:31:54 +02:00
Clinton Gormley
0331e444e6
Update mapping.asciidoc
...
Added fielddata format removal to breaking changes docs
2015-08-28 18:12:54 +02:00
Nik Everett
54639478c0
Merge pull request #13180 from nik9000/cat_non_verbose
...
Default _cat verbose to false
2015-08-28 11:59:29 -04:00
Clinton Gormley
a46368310a
Update mapping.asciidoc
...
Add type name length restriction to breaking changes docs.
2015-08-28 17:52:55 +02:00
Nik Everett
8a75d33ee6
Remove migration note about cat verbosity
...
Its no longer true.
2015-08-28 11:24:58 -04:00
javanna
78d097de39
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/apache/lucene/queryparser/classic/MapperQueryParser.java
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/BoolQueryParser.java
core/src/main/java/org/elasticsearch/index/query/DisMaxQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/DisMaxQueryParser.java
core/src/main/java/org/elasticsearch/index/query/GeoPolygonQueryParser.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/MoreLikeThisQueryParser.java
core/src/main/java/org/elasticsearch/index/query/MultiMatchQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/NestedQueryParser.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/PrefixQueryParser.java
core/src/main/java/org/elasticsearch/index/query/RegexpQueryParser.java
core/src/main/java/org/elasticsearch/index/query/SpanNearQueryParser.java
core/src/main/java/org/elasticsearch/index/query/SpanOrQueryParser.java
core/src/main/java/org/elasticsearch/index/query/TermQueryParser.java
core/src/main/java/org/elasticsearch/index/query/TermsQueryParser.java
core/src/main/java/org/elasticsearch/index/query/support/InnerHitsQueryParserHelper.java
core/src/test/java/org/elasticsearch/index/query/SimpleIndexQueryParserTests.java
2015-08-28 10:49:28 +02:00
Nik Everett
9eb684da51
Default detect_noop to true
...
detect_noop is pretty cheap and noop updates compartively expensive so this
feels like a sensible default.
Also had to do some testing and documentation around how _ttl works with
detect_noop.
Closes #11282
2015-08-27 10:34:18 -04:00
Dan Tuffery
d8298e1d3a
Update query_dsl.asciidoc
...
Fixed typo.'
2015-08-27 12:47:15 +02:00
Ryan Ernst
fdf8e67de3
Merge branch 'master' into docs/multicast
2015-08-26 19:42:13 -07:00
Ryan Ernst
7a61adf8c4
Add links to multicast and dbq plugins
2015-08-26 19:40:00 -07:00
xuzha
fb2be6d6a1
The name "position_offset_gap" is confusing because Lucene has three
...
similar sounding things:
* Analyzer#getPositionIncrementGap
* Analyzer#getOffsetGap
* IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS and
* FieldType#storeTermVectorOffsets
Rename position_offset_gap to position_increment_gap
closes #13056
2015-08-26 14:56:35 -07:00
Alex Ksikes
0872a6ea39
removes TermsLookup changes as it was used internally
2015-08-26 14:07:55 +02:00
Alex Ksikes
1af0a39221
Refactors TermsQueryBuilder and Parser
...
Refactors TermsQueryBuilder and Parser for #10217 .
This PR is against the query-refactoring branch.
Closes #12042
2015-08-26 13:58:46 +02:00
Christoph Büscher
efadf87371
Merge branch 'master' into feature/query-refactoring
2015-08-26 10:23:03 +02:00
Nik Everett
3f6108ab74
[Mapping] Move position_offset_gap default change
...
Until a couple of hours ago we expected the position_offset_gap to default
to 0 in 2.0 and 100 in 2.1. We decided it was worth backporting that new
default to 2.0. So now that its backported we need to teach 2.1 that 2.0
also defaults to 100.
Closes #7268
2015-08-25 18:01:10 -04:00
Nik Everett
840b4cf0e1
[docs] Fix typo
...
grap -> gap
2015-08-25 15:38:14 -04:00
Nik Everett
4b9664beeb
Mapping: Default position_offset_gap to 100
...
This is much more fiddly than you'd expect it to be because of the way
position_offset_gap is applied in StringFieldMapper. Instead of setting
the default to 100 its simpler to make sure that all the analyzers default
to 100 and that StringFieldMapper doesn't override the default unless the
user specifies something different. Unless the index was created before
2.1, in which case the old default of 0 has to take.
Also postition_offset_gaps less than 0 aren't allowed at all.
New tests test that:
1. the new default doesn't match phrases across values with reasonably low
slop (5)
2. the new default doest match phrases across values with reasonably high
slop (50)
3. you can override the value and phrases work as you'd expect
4. if you leave the value undefined in the mapping and define it on a
custom analyzer the the value from the custom analyzer shines through
Closes #7268
2015-08-25 14:21:50 -04:00
Clinton Gormley
327ceec12d
Docs: Added a networking section to migrating changes and mentioned multicast removal
2015-08-25 17:53:44 +02:00
Ryan Ernst
d5a2d8a64d
Docs: Add migration guide notes for multicast moving to a plugin
...
See #13027
2015-08-24 14:08:09 -07:00
Christoph Büscher
8757af2d92
Merge branch 'master' into feature/query-refactoring
2015-08-24 14:36:46 +02:00
xuzha
f77b349c23
The queue_size value should be shown as an integer,
...
closes #10404
closes #13063
2015-08-24 10:04:55 +02:00
Christoph Büscher
b18e470278
Merge branch 'master' into feature/query-refactoring
2015-08-21 12:27:31 +02:00
Christoph Büscher
345a30a2a7
Merge branch 'master' into feature/query-refactoring
...
core/src/test/java/org/elasticsearch/plugins/PluginManagerIT.java
core/src/test/java/org/elasticsearch/search/aggregations/bucket/SignificantTermsSignificanceScoreIT.java
2015-08-20 12:48:05 +02:00
Adrien Grand
6fa258b8fa
Deprecate the `scan` search type.
...
This commit deprecates the `scan` search type in favour of regular scroll
requests sorted by `_doc`.
Related to #12983
2015-08-20 12:47:23 +02:00
Clinton Gormley
36f48ff32f
Docs: Added removal of MVEL to migration docs
2015-08-18 19:14:14 +02:00
javanna
4a3faf1126
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/elasticsearch/index/query/NotQueryParser.java
core/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java
2015-08-18 15:20:16 +02:00
javanna
8e93ac5d5c
Java api: remove execution from TermsQueryBuilder as it has no effect
...
Also introduced ParseField for execution in TermsQueryParser so proper deprecation warnings get printed out when requested.
Closes #12884
2015-08-18 14:57:33 +02:00
javanna
3843ae484d
Merge branch 'master' into feature/query-refactoring
2015-08-18 13:14:03 +02:00
Adrien Grand
a91b3fcbb9
Move the `murmur3` field to a plugin and fix defaults.
...
This move the `murmur3` field to the `mapper-murmur3` plugin and fixes its
defaults so that values will not be indexed by default, as the only purpose
of this field is to speed up `cardinality` aggregations on high-cardinality
string fields, which only requires doc values.
I also removed the `rehash` option from the `cardinality` aggregation as it
doesn't bring much value (rehashing is cheap) and allowed to remove the
coupling between the `cardinality` aggregation and the `murmur3` field.
Close #12874
2015-08-18 11:41:52 +02:00
Alex Ksikes
3ebf7a43f5
Refactors WrapperQueryBuilder and Parser
...
Relates to #10217
Closes #12037
This PR is against the query-refactoring branch.
2015-08-17 21:32:53 +02:00
Alex Ksikes
d62128fc78
Revert "Refactors WrapperQueryBuilder and Parser"
...
This reverts commit afcbd2915d
.
2015-08-17 20:28:16 +02:00
Alex Ksikes
afcbd2915d
Refactors WrapperQueryBuilder and Parser
...
Relates to #10217
Closes #12037
This PR is against the query-refactoring branch.
2015-08-17 19:52:11 +02:00
Christoph Büscher
32dfd249e9
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/test/java/org/elasticsearch/plugins/PluginManagerIT.java
2015-08-17 10:16:55 +02:00
Clinton Gormley
db1e83884f
Docs: Rewrote the migrating-to-2.0 section
2015-08-14 20:26:18 +02:00
javanna
f8a90edab2
Merge branch 'master' into feature/query-refactoring
...
Conflicts:
core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java
core/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java
2015-08-14 11:40:49 +02:00