Simon Willnauer
31fd521fd1
provide more information if a null DocumentMapper is returned
2013-01-18 16:43:56 +01:00
Simon Willnauer
c563248f76
testMoreLikeThisIssue2197 should create index mapping first to prevent races
2013-01-18 16:41:37 +01:00
Simon Willnauer
6f38a3a8a8
create index and mapping first to ensure all relevant nodes see the mapping
2013-01-18 16:09:24 +01:00
Shay Banon
468295dc37
upgrade to netty 3.6.2
2013-01-18 12:47:13 +01:00
Simon Willnauer
393de984bd
Remove deprecated StreamInput/Output#read/writeUTF
2013-01-17 22:38:42 +01:00
Simon Willnauer
d37c844da0
use camelcase for getters
2013-01-17 22:27:44 +01:00
Simon Willnauer
3d80c53192
Allow ShardsAllocator to be configured via node level settings.
...
* Default ShardsAllocator is set to BalancedShardsAllocator
* Core ShardsAllocator implementations can be defined via 'cluster.routing.allocation.type'
* Core ShardsAllocator implementations are exposed via short keys 'balanced' (BalancedShardsAllocator) and 'even_shards' (EvenShardsCountAllocator)
* Third party allocators can be loaded via fully-qualified class names.
Closes #2557
2013-01-17 16:23:52 +01:00
Simon Willnauer
2eb09e6b1a
Added BalancedShardsAllocator that balances shards based on a weight function.
...
* Weights are calculated per index and incorporate index level, global and primary related parameters
* Balance operations are executed based on a win maximation strategy that tries to relocate shards
first that offer the biggest gain towards the weight functions optimum
* The WeightFunction allows settings to prefer index based balance over global balance and vice versa
* Balance operations can be throttled by raising a threshold resulting in less agressive balance operations
* WeightFunction shipps with defaults to achive evenly distributed indexes while maintaining a global balance
Closes #2555
2013-01-17 12:02:42 +01:00
Igor Motov
d97839b8a8
Fix char filter issues introduced during lucene 4 migration
...
Fixes #2543
2013-01-14 12:43:02 -05:00
Igor Motov
e82f96f1e5
Make script cache configurable and bounded
...
Fixes #2539
2013-01-14 06:57:13 -05:00
Igor Motov
6243f8e64d
Disallow unknown custom indexing parameters
...
Fixes #2354
2013-01-11 10:14:25 -05:00
Martijn van Groningen
1ce10dfb06
Fixed issue where parent & child queries can fail if a segment doesn't have documents with the targeted type or associated parent type
...
Closes #2537
2013-01-11 16:06:14 +01:00
Martijn van Groningen
43aabe88e8
Fixed document already exists error when concurrently sending update request with upsert using the same id.
...
Closes #2530
2013-01-10 14:25:44 +01:00
Shay Banon
6f7253c524
Comments are not allowed in mapping
...
checked jackson, there won't be an overhead in enabling comments. Added, with the caveat that when used with mappings, and calling "get mapping", the comments will not be returned
closes #1394
2013-01-07 04:21:41 +01:00
Shay Banon
2c4b9d9ba2
cleanup queryHint since its not was never used
...
preference ended up as the way to control routing
2013-01-07 04:02:45 +01:00
Shay Banon
bcdda811ef
add read/write optional text
2013-01-07 02:54:22 +01:00
Shay Banon
0e5287f1f2
Binary Mapped Fields: Allow to not store them by default, and return BytesReference
...
fixes #2523
also, fix another point of normalization of the result for get API
2013-01-05 01:50:46 +01:00
Shay Banon
4b9fcdb900
noramalize the value even when getting it from source
...
we need to in order to properly handle bytes, and normalize Integer to Long for example for consistency, the fact that mappers now handle different Objtes help here
2013-01-04 23:55:34 +01:00
Shay Banon
fe38cecabd
return the string for date types if passed for search
2013-01-04 23:31:49 +01:00
Shay Banon
7726a4a9dd
upgrade to netty 3.6.1
2013-01-04 16:06:15 +01:00
Shay Banon
bf4c442509
add refresh before calling count
2013-01-04 08:38:00 +01:00
Jilles van Gurp
2649c6c758
add plugin configuration to make m2e ignore maven dependency plugin configuration that it cannot handle
2013-01-04 08:23:30 +01:00
Shay Banon
70f1e2c987
remove problematic timeout test
...
the timeout feature, even if set to 0, might still mean we get an ack back...
2013-01-04 08:19:01 +01:00
Shay Banon
e70cf1849b
check on sourceRef, so it won't convert to bytes without needing to
2013-01-04 07:47:26 +01:00
Igor Motov
d73a6663b7
Changing non-nested object mapping to nested should fail
...
Fixes #2518
2013-01-03 18:18:40 -05:00
uboness
dc25939b7c
fixed hunspell test to clean up properly, this time, for realz
2013-01-03 22:54:37 +01:00
uboness
86f55b3a45
fixed hunspell test to clean up properly
2013-01-03 22:12:36 +01:00
Martijn van Groningen
7cf80aca99
Changed how the stored values of numeric fields are stored in the index. Before numeric values were stored in binary representation, now the values in numeric representation.
2013-01-03 21:34:53 +01:00
Shay Banon
0032b334c5
add simple way to get the index creation version when building a mapper
2013-01-03 19:06:19 +01:00
uboness
9f60dc7578
Support for root logger level runtime update
...
Closes : #2517
2013-01-03 01:23:40 +01:00
uboness
6c4108b38a
Support for hunspell token filter
...
Closes : #646
- Introduced HunspellService which holds a repository of hunspell dictionaries
- It is possible to register a dictionary via a plugin or by placing the dictionary files on the file system
2013-01-02 03:51:26 +01:00
Shay Banon
720feca3c5
optimize search hit to use Text for type and id
...
this will reduce serialization string overheads, and faster xcontent(json) generation
2012-12-31 00:13:15 -08:00
Shay Banon
120b766f0a
cleanup
2012-12-30 17:39:19 -08:00
Shay Banon
4a5b147634
remove unused method
2012-12-30 17:37:46 -08:00
Shay Banon
22077d1c5f
move regex to use Object as paramater as well
2012-12-30 17:36:48 -08:00
Shay Banon
f8a08a46ac
cleanup more calls to Term with String value
2012-12-30 17:31:13 -08:00
Shay Banon
1c93c8dfb8
cleanup unused term factory
2012-12-30 16:55:22 -08:00
Shay Banon
7f0034d42f
fix thread pool stats largest
2012-12-30 01:57:18 -08:00
Shay Banon
b6f766af3f
backport lucene 4.1 terms filter and use it where applicable
2012-12-29 10:39:53 -08:00
Shay Banon
b08e8fb76c
add explicit termsFilter in mapper, and use that in terms filter
...
This also enabled support for terms filter on _id field for example
2012-12-29 01:06:32 -08:00
Shay Banon
2655c2aa58
fix index xcontent flag with id
2012-12-29 00:46:35 -08:00
Shay Banon
9a8d558e51
use object parser value for queries that support it
2012-12-29 00:14:46 -08:00
Shay Banon
fd5719b232
support multiple values when mappers construct queries
...
this will allow us to optimize parsing using actual values (numbers/bytes)
2012-12-28 23:38:43 -08:00
Shay Banon
01ba287164
more mapper simplification, reduce the value methods
2012-12-28 20:33:10 -08:00
Shay Banon
e02015c641
Use FieldType and not deprecated Field construction
2012-12-28 14:27:09 -08:00
Shay Banon
64a01c28c3
rename fieldQuery/fieldFilter to termQuery/termFilter in mappers
2012-12-28 13:48:48 -08:00
Shay Banon
12239169b1
add 0.20.3
2012-12-27 14:30:40 -08:00
Shay Banon
7fb98769a6
add a sleep to make sure settings are applied
2012-12-27 14:16:30 -08:00
Shay Banon
bab91bb9fd
upgrade to jackson 2.1.1
2012-12-27 12:03:59 -08:00
Shay Banon
d739498498
upgrade to netty 3.6.0
2012-12-27 11:55:37 -08:00