Shay Banon
aca713d68e
tar.gz distro by mistake include a windows lib
2013-03-18 22:46:04 +01:00
Shay Banon
566d1d13f7
fix javadoc
2013-03-18 22:04:31 +01:00
Clinton Gormley
2123ab591c
Correct filter strategy opt: random_access_random to random_access_always
2013-03-18 20:17:26 +01:00
Shay Banon
7d9cef904b
Field Data: optimize long type to use narrowest possible type automatically
...
closes #2795
2013-03-18 12:37:15 +01:00
Shay Banon
82072fc47f
make ES compile with java 8
...
- that isAnnotationPresent bug is known, and probably will be fixed in later versions, but it costs us nothing to not use it now
- some tests fail, mainly due to consistent ordering expected from Map (within versions) which does not seem to be preserved, need to fix those tests to be agnostic to it
2013-03-18 01:33:09 +01:00
Shay Banon
e347a626da
use ImmutableList.Builder instead of ArrayList
2013-03-17 21:55:07 +01:00
Shay Banon
2ed6ea25cc
fix logging message to include the index
...
also add the list of current indices
2013-03-16 22:58:45 +01:00
Shay Banon
111a13222e
Mapping: dynamic flag is explicitly returned even when not set
...
fixes #2789
2013-03-16 01:29:22 +01:00
Simon Willnauer
c25eb7defe
Fix bug in RateLimiter.SimpleRateLimiter causing numeric overflow in StoreStats
...
Closes #2785
2013-03-15 23:36:31 +01:00
Shay Banon
d5da8f22ff
improve TODO comment
2013-03-15 21:46:02 +01:00
Simon Willnauer
0e3b88be35
add CamelCase support to Suggester where missing
2013-03-15 15:07:15 +01:00
Simon Willnauer
e0eff7d9d3
Remove `sort_order` and `sort_mode` in favor of `order` and `mode`
...
Closes #2781
2013-03-15 13:57:39 +01:00
Simon Willnauer
33608c333f
Add `sort_oder` and `sortOrder` as valid field names for defining the sort order in a Sort object.
...
Closes #2767
2013-03-15 08:42:19 +01:00
Simon Willnauer
5f20d81199
Make StupidBackoff the default smoothing model for phrase suggester
...
Closes #2780
2013-03-14 23:03:15 +01:00
Shay Banon
91c51ef05c
minor cleanup suggest api
...
- make sure we close the parser
- fail when no content is provided in the rest request
- reuse the suggest parse element
2013-03-13 12:18:14 -07:00
Florian Schilling
25bd9cecd0
# REST Suggester API
...
The REST Suggester API binds the 'Suggest API' to the REST Layer directly. Hence there is no need to touch the query layer for requesting suggestions.
This API extracts the Phrase Suggester API and makes 'suggestion request' top-level objects in suggestion requests. The complete API can be found in the
underlying ["Suggest Feature API"](http://www.elasticsearch.org/guide/reference/api/search/suggest.html ).
# API Example
The following examples show how Suggest Actions work on the REST layer. According to this a simple request and its response will be shown.
## Suggestion Request
```json
curl -XPOST 'localhost:9200/_suggest?pretty=true' -d '{
"text" : "Xor the Got-Jewel",
"simple_phrase" : {
"phrase" : {
"analyzer" : "bigram",
"field" : "bigram",
"size" : 1,
"real_word_error_likelihood" : 0.95,
"max_errors" : 0.5,
"gram_size" : 2
}
}
}'
```
This example shows how to query a suggestion for the global text 'Xor the Got-Jewel'. A 'simple phrase' suggestion is requested and
a 'direct generator' is configured to generate the candidates.
## Suggestion Response
On success the request above will reply with a response like the following:
```json
{
"simple_phrase" : [ {
"text" : "Xor the Got-Jewel",
"offset" : 0,
"length" : 17,
"options" : [ {
"text" : "xorr the the got got jewel",
"score" : 3.5283546E-4
} ]
} ]
}
```
The 'suggest'-response contains a single 'simple phrase' which contains an 'option' in turn. This option represents a suggestion of the
queried text. It contains the corrected text and a score indicating the probability of this option to be meant.
Closes #2774
2013-03-13 19:36:29 +01:00
Jörg Prante
a127f2d2e8
avoiding NPE in Sigar FS
2013-03-13 10:05:59 -07:00
Alexander Reelsen
125b33d3dc
GeoJSONShapeParser parses JSON correctly and extracts coordinates even if 'crs' field is included.
...
Fixes #2763
2013-03-13 15:17:21 +01:00
Simon Willnauer
365cde82d3
Use numOrds rather than numDocs as upperbound for sorting
...
Closes #2773
2013-03-13 15:13:56 +01:00
Clinton Gormley
93ca6e2c4b
tieBreaker in MultiMatchQueryBuilder should be a float, not an integer
...
Closes #2772
2013-03-13 13:44:59 +01:00
Drew Raines
bea18d9b25
Revert "Add s3-publishing script."
...
This reverts commit 98f06c9af6
.
2013-03-13 07:24:17 -05:00
Drew Raines
98f06c9af6
Add s3-publishing script.
2013-03-12 19:09:25 -05:00
Shay Banon
5ed9fb2c54
support also mode in search sorting, and fail on illegal parameters
2013-03-12 15:16:25 -07:00
Shay Banon
55ceb01c44
force close connection if its on a connect failure
...
relates to Repeated ConnectExceptions in logs until node is restarted, fixes #2766
2013-03-12 14:49:07 -07:00
Shay Banon
877105ee19
no need for specific time / empty based classes, just as final fields
2013-03-12 12:32:05 -07:00
Igor Motov
3a534c64e5
Add dynamic settings validation
...
Fixes #2749
2013-03-12 14:41:00 -04:00
Simon Willnauer
c008c59927
add missing license header
2013-03-12 14:57:47 +01:00
Simon Willnauer
c5395436e6
fix test bug where a small time window exists that can trigger a false failure due to default concurrent recoveries
2013-03-12 14:48:14 +01:00
Simon Willnauer
237c4ddf54
Introdue ParentIdCollector that collects only if the parent ID is non null ie. if the document has a parent.
...
Closes #2744
2013-03-11 21:11:05 +01:00
Clinton Gormley
7961dfa7ab
Fixed a typo in an error message "should exists" -> "should exist"
2013-03-11 15:37:20 +01:00
Simon Willnauer
9442c41481
enable testcase that relied on a Lucene 4.2 fix
2013-03-11 12:57:24 +01:00
Simon Willnauer
4e7cff488e
add test that ensures that we bumb the version on a Lucene Upgrade
2013-03-11 10:30:48 +01:00
Simon Willnauer
ebadd9ebbd
Fix tests since Lucene 4.2 we can support date math in Fuzzy-Search Syntax
2013-03-11 08:23:01 +01:00
Simon Willnauer
a37f1f55cc
Add tests for highlighting boost query.
...
Closes #1314
2013-03-11 08:23:01 +01:00
Simon Willnauer
11bf7a8b1a
Upgrade to Lucene 4.2
2013-03-11 08:23:01 +01:00
Simon Willnauer
75fd6d4985
Added KeywordRepeatFilter that allows emitting stemmed and unstemmed versions of the same token if stemmers are used
...
Closes #2753
2013-03-09 23:09:59 +01:00
Simon Willnauer
dc9a052287
Respect CandidateGenerator#size if set in the request and reduce the total #of candidates to the shard size.
...
Closes #2752
2013-03-09 13:36:40 +01:00
Shay Banon
cc6c07365c
has_child query AVG score mode does not always work correctly
...
fixes #2750
2013-03-08 08:50:11 -08:00
Shay Banon
eb956e7c09
Term/Terms filters on numeric fields gives wrong result
...
fixes #2746
2013-03-07 22:12:22 -08:00
Shay Banon
c298c19177
don't use cache for ordinals for small max ord
2013-03-07 08:45:01 -08:00
Juan David Pastas
59ea426bf2
Update README.textile
...
Update license year
2013-03-07 11:49:35 +01:00
Simon Willnauer
2c8d8ef8e0
check for null on setters taht must not be null in IndicesReplicationOperationRequest
2013-03-07 10:18:10 +01:00
Benjamin Devèze
35f5ca915d
Add support for ignore_indices to delete by query
...
Closes #2734
2013-03-07 10:17:51 +01:00
Simon Willnauer
12a2808168
exhaust object to allow subsequent objects to be parsed correctly
2013-03-06 15:34:59 +01:00
Simon Willnauer
1f217f6a7b
Move smoothing model into its own sub-object in the PhraseSuggest request
...
Closes #2735
2013-03-06 14:31:21 +01:00
Shay Banon
e1409a9f0e
Problems with range searches for time with lte
...
fixes #2731
2013-03-05 18:10:30 -08:00
Shay Banon
9a25867bfe
Network: A closed channel might not always fire up a close event
...
fixes #2733
2013-03-05 11:49:10 -08:00
Igor Motov
acff102234
Implement search shards API
...
Closes #2726
2013-03-05 09:17:59 -05:00
Simon Willnauer
1eb24d7efc
use a base ShingleFilterFactory to simplify default shingle detection
2013-03-05 12:32:50 +01:00
Simon Willnauer
0f95499703
if word scorer is on unigram make sure we score the current position not position 0
2013-03-05 12:31:32 +01:00