Martijn van Groningen
52f1ab6e16
Core: Added the `index.query.parse.allow_unmapped_fields` setting to fail queries if they refer to unmapped fields.
...
The percolator and filters in aliases by default enforce strict query parsing.
Closes #7335
2014-09-09 15:00:47 +02:00
ansj
fee832df66
Docs: Update plugins.asciidoc
...
add search by sql
Closes #7525
2014-09-09 14:57:38 +02:00
Alexander Reelsen
bd0eb32d9c
CORS: Disable by default
...
In order to deliver a more secure out-of-the-box configuration this commit
disables cross-origin resource sharing by default.
Closes #7151
2014-09-09 11:09:03 +02:00
Colin Goodheart-Smithe
b127b52fd3
Revert "Aggregations: Adds ability to sort on multiple criteria"
...
This reverts commit bfedd11ffa
.
2014-09-08 20:27:19 +01:00
Colin Goodheart-Smithe
bfedd11ffa
Aggregations: Adds ability to sort on multiple criteria
...
The terms aggregation can now support sorting on multiple criteria by replacing the sort object with an array or sort object whose order signifies the priority of the sort. The existing syntax for sorting on a single criteria also still works.
Contributes to #6917
2014-09-08 15:20:33 +01:00
Joao Duarte
a6e0f02220
Doc: Fixes node client section name on Java API Doc
...
Closes #7539
2014-09-08 11:20:49 +02:00
Tanvir Alam
c7d0c3ea18
Docs: fixed typo
...
Closes #7544
2014-09-08 10:50:59 +02:00
Clinton Gormley
e0684c4f6e
Docs: Update regexp-syntax.asciidoc
...
Closes #7419
2014-09-07 11:42:33 +02:00
Clinton Gormley
46cda7db09
Docs: Clarify that refresh on update just refreshes the relevant shards
2014-09-07 11:41:05 +02:00
Clinton Gormley
3bda779336
Docs: Update scripting.asciidoc
...
Clarify that doc[...] does not return objects
Closes #7384
2014-09-07 11:39:33 +02:00
Clinton Gormley
51cec43d3c
Docs: Clarify that refresh on get/update/delete just refreshes the relevant shards
...
Closes #7359
2014-09-07 11:36:52 +02:00
Clinton Gormley
0578a703df
Docs: Update prefix-query.asciidoc
...
Typo (missing word)
Closes #7283
2014-09-07 11:32:05 +02:00
Clinton Gormley
cf001d6837
Docs: Adds missing explanation to multi-match
...
Closes #7281
2014-09-07 11:30:52 +02:00
pachanta
8bae96485e
Docs: Update span-not-query.asciidoc
...
The example given does not clearly explain what the query does.
Closes #7049
2014-09-07 11:28:19 +02:00
Clinton Gormley
1bdf79e527
Docs: Added explanation of how to do multi-field terms agg
...
Closes #5100
2014-09-07 11:09:52 +02:00
Dominik Surowiecki
7c2490b2ad
Docs: Wrong class name
...
Was QFilterBuilders, should be FilterBuilders.
Closes #7611
2014-09-07 08:46:41 +02:00
shrinidhichaudhari
13e3a5e99c
Docs: Update cardinality-aggregation.asciidoc
...
Closes #7516
2014-09-06 20:45:45 +02:00
Simon Willnauer
7f32e8c707
[STORE] Simplify reading / writing from and to BlobContainer
...
BlobContainer used to provide async APIs which are not used
internally. The implementation of these APIs are also not async
by nature and neither is any of the pluggable BlobContainers. This
commit simplifies the API to a simple input / output stream and
reduces the hierarchy of BlobContainer dramatically.
NOTE: This is a breaking change!
Closes #7551
2014-09-05 21:40:20 +02:00
Alex Ksikes
07d741c2cb
Term Vectors: Support for artificial documents
...
This adds the ability to the Term Vector API to generate term vectors for
artifical documents, that is for documents not present in the index. Following
a similar syntax to the Percolator API, a new 'doc' parameter is used, instead
of '_id', that specifies the document of interest. The parameters '_index' and
'_type' determine the mapping and therefore analyzers to apply to each value
field.
Closes #7530
2014-09-05 07:42:43 +02:00
Clinton Gormley
c88f55ab52
Docs: Fixed typo in windows-as-a-service
2014-09-04 16:12:46 +02:00
Nik Everett
7bcd09a134
[docs] fix typo in language analyzer docs
2014-09-04 09:33:00 +02:00
Adrien Grand
4bfad644b3
Aggregations: Forbid usage of aggregations in conjunction with search_type=SCAN.
...
Aggregations are collection-wide statistics, which is incompatible with the
collection mode of search_type=SCAN since it doesn't collect all matches on
calls to the search API.
Close #7429
2014-09-03 09:03:01 +02:00
Adrien Grand
203e80e650
Aggregations: Only return aggregations on the first page when scrolling.
...
Aggregations are collection-wide statistics so they would always be the same.
In order to save CPU/bandwidth, we can just return them on the first page.
Same as #1642 but for aggregations.
2014-09-03 09:03:01 +02:00
Robert Muir
395744b0d2
[Analysis] Add missing docs for latvian analysis
2014-09-02 19:22:59 -04:00
Clinton Gormley
a059a6574a
Update reverse-nested-aggregation.asciidoc
...
Fixed reverse nested example
Closes #7463
2014-09-02 11:40:41 +01:00
mikemccand
53ce7ad764
fix typo
2014-09-01 16:07:05 -04:00
Britta Weber
c5ff70bf43
function_score: add optional weight parameter per function
...
Weights can be defined per function like this:
```
"function_score": {
"functions": [
{
"filter": {},
"FUNCTION": {},
"weight": number
}
...
```
If `weight` is given without `FUNCTION` then `weight` behaves like `boost_factor`.
This commit deprecates `boost_factor`.
The following is valid:
```
POST testidx/_search
{
"query": {
"function_score": {
"weight": 2
}
}
}
POST testidx/_search
{
"query": {
"function_score": {
"functions": [
{
"weight": 2
},
...
]
}
}
}
POST testidx/_search
{
"query": {
"function_score": {
"functions": [
{
"FUNCTION": {},
"weight": 2
},
...
]
}
}
}
POST testidx/_search
{
"query": {
"function_score": {
"functions": [
{
"filter": {},
"weight": 2
},
...
]
}
}
}
POST testidx/_search
{
"query": {
"function_score": {
"functions": [
{
"filter": {},
"FUNCTION": {},
"weight": 2
},
...
]
}
}
}
```
The following is not valid:
```
POST testidx/_search
{
"query": {
"function_score": {
"weight": 2,
"FUNCTION(including boost_factor)": 2
}
}
}
POST testidx/_search
{
"query": {
"function_score": {
"functions": [
{
"weight": 2,
"boost_factor": 2
}
]
}
}
}
````
closes #6955
closes #7137
2014-09-01 11:04:40 +02:00
Britta Weber
92937c7770
Docs: fix formula typo in documentation of the gauss decay in function_score
...
closes #7506
2014-09-01 09:46:13 +02:00
Adrien Grand
8e1d3d56b3
Docs: Replace added[1.4.0] with coming[1.4.0] since 1.4 is not released yet.
2014-08-29 11:57:22 +02:00
londocr
1213eec834
Spelling error of aggregation
2014-08-28 08:57:12 +02:00
Ryan Ernst
65afa1d93b
FunctionScore: Refactor RandomScoreFunction to be consistent, and return values in rang [0.0, 1.0]
...
RandomScoreFunction previously relied on the order the documents were
iterated in from Lucene. This caused changes in ordering, with the same
seed, if documents moved to different segments. With this change, a
murmur32 hash of the _uid for each document is used as the "random"
value. Also, the hash is adjusted so as to only return values between
0.0 and 1.0 to enable easier manipulation to fit into users' scoring
models.
closes #6907 , #7446
2014-08-27 08:37:25 -07:00
Peter Johnson @insertcoffee
10197936da
Docs: typo?
...
Closes #7458
2014-08-26 15:26:34 +02:00
Alexander Reelsen
f2aa4a38bc
Docs: Added link to clarify meaning of filtering in fielddata context
2014-08-26 12:00:06 +02:00
mikemccand
783a9cbb18
Stats: add segments.index_writer_max_memory to see index writer's max RAM usage before buffered documents must be written to a new segment
...
Closes #7438
Closes #7440
2014-08-25 14:43:09 -04:00
Lee Hinman
c5c11b1837
[DOCS] Document NOT as a simple_query_string flag
...
Fixes #7426
2014-08-25 10:27:24 +02:00
Alex Ksikes
e78694ae82
More Like This Query: defaults to all possible fields for items
...
Items with no specified field now defaults to all the possible fields from the
document source. Previously, we had required 'fields' to be specified either
as a top level parameter or for each item. The default behavior is now similar
to the MLT API.
Closes #7382
2014-08-22 15:07:22 +02:00
Greg Marzouka
887bd0a9c2
[DOCS] Update to the new {index}/_mapping/{type} format
2014-08-21 13:56:11 -04:00
Britta Weber
2a32cf338e
Docs: _ttl ignores all parameters except for enabled and default.
...
Also, add a line about that it can never be disabled after it was enabled.
2014-08-21 16:16:02 +02:00
Alex Ksikes
f1a6b4e9fe
More Like This Query: Switch to using the multi-termvectors API
...
The term vector API can now generate term vectors on the fly, if the terms are
not already stored in the index. This commit exploits this new functionality
for the MLT query. Now the terms are directly retrieved using multi-
termvectors API, instead of generating them from the texts retrieved using the
multi-get API.
Closes #7014
2014-08-21 12:18:21 +02:00
Adrien Grand
ea96359d82
Facets: Removal from master.
...
Close #7337
2014-08-21 10:34:39 +02:00
Alex Ksikes
62ef4a30dc
Term vector API: return 'found: false' for docs between index and refresh
...
Closes #7121
2014-08-21 09:58:49 +02:00
Colin Goodheart-Smithe
7f943f0296
Aggregations: Scriptable Metrics Aggregation
...
A metrics aggregation which runs specified scripts at the init, collect, combine, and reduce phases
Closes #5923
2014-08-20 18:17:27 +01:00
Shay Banon
3a52296358
Warmer (search) to support query cache
...
allow for search based warmer to support query cache flag on the search request, and use the index level query caching flag if set.
closes #7326
2014-08-20 09:31:29 -07:00
Martijn van Groningen
383e64bd5c
Aggregations: Add `children` bucket aggregator that is able to map buckets between parent types and child types using the already builtin parent/child support.
...
Closes #6936
2014-08-19 12:40:51 +02:00
Britta Weber
639692943f
Docs: Document distance type and sort mode for many to many geo_points
...
closes #7280
2014-08-18 16:15:55 +02:00
Lee Hinman
99b0faed14
[DOCS] document simple_query_string's `lenient` option
2014-08-18 15:56:06 +02:00
Colin Goodheart-Smithe
b2286915cd
Geo: Adds support for GeoJSON GeometryCollection
...
Closes #2796
2014-08-18 13:55:39 +01:00
Clinton Gormley
76b7b68605
Docs: Fixed header levels in setup/dir-layout.asciidoc
2014-08-18 13:38:28 +02:00
Clinton Gormley
e6b82bb15d
Docs: Fixed bad ID
2014-08-18 13:19:36 +02:00
Xiao Yu
4f417aa774
Docs: Update nested-filter.asciidoc
...
Fix whitespace to standardize on spaces for indents on both code examples for readability.
Closes #6568
2014-08-18 13:09:00 +02:00