Ryan Ernst
74dc5bf20a
Fix template query parser tests to register mustache script engine
2015-12-08 21:33:48 -08:00
Ryan Ernst
b7fb0824be
Fix render search template tests
2015-12-08 21:33:48 -08:00
Robert Muir
a6e1655fe9
fix integ tests
2015-12-09 00:30:32 -05:00
Robert Muir
17436d4332
get gradle check passing for lang-mustache
2015-12-09 00:10:37 -05:00
Robert Muir
3632ddf497
split out mustache methods so groovy works again
2015-12-09 00:00:40 -05:00
Ryan Ernst
907d3cf878
move template query builder tests back to core (using mockscript)
2015-12-08 20:26:45 -08:00
Robert Muir
2e299860e5
refactor mustache to lang-mustache plugin. No rest tests yet.
2015-12-08 22:45:21 -05:00
Robert Muir
3c419c2186
do expressions consistently with other engines
2015-12-05 22:08:40 -05:00
Robert Muir
2169a123a5
Filter classes loaded by scripts
...
Since 2.2 we run all scripts with minimal privileges, similar to applets in your browser.
The problem is, they have unrestricted access to other things they can muck with (ES, JDK, whatever).
So they can still easily do tons of bad things
This PR restricts what classes scripts can load via the classloader mechanism, to make life more difficult.
The "standard" list was populated from the old list used for the groovy sandbox: though
a few more were needed for tests to pass (java.lang.String, java.util.Iterator, nothing scary there).
Additionally, each scripting engine typically needs permissions to some runtime stuff.
That is the downside of this "good old classloader" approach, but I like the transparency and simplicity,
and I don't want to waste my time with any feature provided by the engine itself for this, I don't trust them.
This is not perfect and the engines are not perfect but you gotta start somewhere. For expert users that
need to tweak the permissions, we already support that via the standard java security configuration files, the
specification is simple, supports wildcards, etc (though we do not use them ourselves).
2015-12-05 21:46:52 -05:00
Robert Muir
46377778a9
Merge branch 'master' into getClassLoader
2015-12-04 15:58:36 -05:00
Robert Muir
7160c5ec15
list modules separately in pluginservice
2015-12-04 01:13:17 -05:00
Ryan Ernst
a8e9403204
added gradle checks for modules configuration, and ability to add
...
modules to integ test cluster
2015-12-03 20:53:06 -08:00
Ryan Ernst
0a4a81afaf
Added modules, distributions now include them (just plugins installed in
...
a diff dir)
2015-12-03 14:18:26 -08:00
Shay Banon
bf0caafa04
remove old modules and gradle
2011-12-06 01:01:04 +02:00
Shay Banon
a8fd2d48b8
first cleanup phase, move to single src
2011-12-06 00:59:23 +02:00
Shay Banon
9995d27841
Analysis: Add arabic, brazilian, czech to stemmer token filter language options, closes #1519 .
2011-12-04 16:36:42 +02:00
Shay Banon
720954d8a6
Version missing a space, closes #1517 .
2011-12-04 12:48:29 +02:00
Shay Banon
032e215f25
search missing from stats when using clear and search params, closes #1516 .
2011-12-02 12:32:51 +02:00
Shay Banon
be282cc4c8
Improve highlighting perf (a bit) by reusing some constructs across hits, closes #1513 .
2011-11-30 19:15:31 +02:00
Shay Banon
c93ddd9b61
check against hte fieldName...
2011-11-30 13:34:21 +02:00
Shay Banon
6c552b4187
have DocSet implement Bits interface
2011-11-29 23:53:38 +02:00
Shay Banon
a21c0829c7
Query DSL: Bool filter does not take should clauses properly into account, closes #1511 .
2011-11-29 22:39:07 +02:00
Shay Banon
76307a5e73
cleanup
2011-11-29 21:28:07 +02:00
Shay Banon
e9d2f44d49
Query DSL: Bool filter does not take should clauses properly into account, closes #1511 .
2011-11-29 21:27:36 +02:00
Shay Banon
de49a313c5
Query DSL: Bool filter does not take should clauses properly into account, closes #1511 .
2011-11-29 21:23:41 +02:00
Shay Banon
9bb9ce4e84
add 0.18.6
2011-11-29 13:55:11 +02:00
Shay Banon
ae4ae598e3
make node closed exception serializable
2011-11-29 10:18:13 +02:00
Shay Banon
b2fa6b7a94
When _source is disabled, don't return it in realtime get fetching the document from the transaction log, closes #1509 .
2011-11-29 09:39:46 +02:00
Shay Banon
e9fe8ec469
sync with latest Lucene block join, init parentDoc to -1, which makes the assert commented out valid again
2011-11-28 23:47:31 +02:00
Shay Banon
6b894d9f53
add the option to get mapping as a parsed map, also do some internal refactoring to share the code that parses into a map
2011-11-28 20:19:02 +02:00
Njal Karevoll
b1707d219f
set "http" on NodeInfo instances if it is passed in the constructor
2011-11-28 17:08:28 +02:00
Shay Banon
d5aa7574f3
Upgrade to netty 3.2.7, closes #1506 .
2011-11-28 14:48:49 +02:00
Shay Banon
4be7866bd9
Registering a percolate query with additional "object" level metadata can fail, closes #1505 .
2011-11-27 18:06:18 +02:00
Shay Banon
32f1edf6f7
Analysis: Add language setting to lowercase filter, supporting greek and turkish, closes #1503 .
2011-11-27 13:39:05 +02:00
George Chatzigeorgiou
a1a856e4b9
Support Greek stemming
...
While the GreekAnalyzer supports stemming, custom analyzers for the greek language cannot be build because there is no GreekStemmer (although lucene has one).
2011-11-27 13:22:58 +02:00
Shay Banon
f18ad903a9
Upgrade to Lucene 3.5, closes #1502 .
2011-11-27 12:57:26 +02:00
Shay Banon
fd5d754fe6
better failure messages when dynamic mapping is disabled
2011-11-25 09:40:44 +02:00
Shay Banon
a7803855a1
add another path trie test
2011-11-25 00:21:01 +02:00
Shay Banon
3f835eb780
even though it can't happen (offset is 0 when loading from the index), use properly the field to get binary values with offset and length
2011-11-24 21:44:18 +02:00
Shay Banon
21988a0ca7
support compressed percolator index
2011-11-24 21:32:56 +02:00
Shay Banon
ac2c2fb48d
enable unsafe optimization in lzf for 0.19
2011-11-24 20:12:51 +02:00
Shay Banon
03c2e5ea52
improve how decoding is done on the transport layer, embedding FrameDecoder into the message handler, and reducing allocation of buffers and better guess into allocating cumalation buffers
2011-11-24 20:03:25 +02:00
Shay Banon
f0efb8cdea
Using _parent:123 in a query string query fails to fetch docs, closes #1497 .
2011-11-24 13:59:10 +02:00
Shay Banon
81965d0ea9
Support using _id:1234, or using term query/filter on _id even when _id is not indexed, closes #1496 .
2011-11-24 12:31:50 +02:00
Shay Banon
daa4444e22
DocumentMapper.java wrong order on build rootMappers, closes #1493 .
2011-11-24 09:58:05 +02:00
Shay Banon
2c0662e18e
Query DSL: indices query to allow to set a `no_match_query`, closes #1492 .
2011-11-23 19:01:14 +02:00
Shay Banon
f47b77199d
Multi field mapper with more than one extra mapping can cause endless re-sync'ing of mapping between nodes, closes #1487 .
2011-11-23 09:04:28 +02:00
Shay Banon
05f98634d8
IndicesQueryBuilder generates the wrong query name, closes #1485 .
2011-11-22 15:57:54 +02:00
Shay Banon
f28c11b31c
By default, set http.compression to false, closes #1482 .
2011-11-21 19:50:24 +02:00
Shay Banon
bff980c797
Allow empty Strings to be null for Number's and don't autodetect empty string fields as string types, closes #1473 .
2011-11-21 18:02:12 +02:00
Shay Banon
fbb03c611a
add a sleep to fix test (need to think of a better fix)
2011-11-21 10:44:29 +02:00
Shay Banon
b10094b109
support boost on block join query (nested)
2011-11-21 10:43:58 +02:00
Shay Banon
90af54dad5
make sure bulk item failure on primary shards will not execute on a replica shard
2011-11-20 15:09:13 +02:00
Shay Banon
bb8ff3814e
Binary field compression causes wrong _source decoding, closes #1475 .
2011-11-20 12:59:22 +02:00
Jeremie BORDIER
6403a42e31
* Try to extract value from String using FieldMapper when reading from the transaction log.
2011-11-17 18:54:41 +02:00
Shay Banon
4d607bdd4a
handle valueForString in binary case
2011-11-17 18:19:16 +02:00
Shay Banon
c8641588ec
clean code, script service no longer used in get action
2011-11-17 15:48:05 +02:00
Shay Banon
835dc33d45
make sure we use the default index analyzer for _all field, even though it works well without it now because the _analyzer field comes before it and sets the context.analyzer
2011-11-17 15:37:51 +02:00
Shay Banon
b0880e114e
add another instanceof check on Date and not direct check
2011-11-17 14:27:40 +02:00
Shay Banon
09fe743790
add another instanceof check on Date and not direct check
2011-11-17 14:27:16 +02:00
Shay Banon
118acb3992
add 0.18.5 version
2011-11-16 22:00:13 +02:00
Shay Banon
b0fc243138
add 0.18.4 version
2011-11-16 15:23:58 +02:00
Shay Banon
72d2fd0da0
Inner queries not resolved correctly in has_child filter when searching directly against the parent type (in the URI for example), closes #1471 .
2011-11-16 14:15:29 +02:00
Shay Banon
b5a0ae2fbe
better toString for custom score query
2011-11-15 22:20:15 +02:00
Shay Banon
e52ec518f3
NPE when highlighting
2011-11-15 18:11:03 +02:00
Shay Banon
afb690e233
refactor sub fetch phase to also allow for hits level execution
2011-11-15 18:09:45 +02:00
Shay Banon
537d9c5db0
FVH should use the parsed query, and not a possible rewritten query
2011-11-15 16:45:05 +02:00
Shay Banon
8f392af207
upgrade to mvel 2.1 Beta7
2011-11-15 16:23:13 +02:00
Shay Banon
8d0ac1787b
upgrade to jackson 1.9.2
2011-11-15 15:53:18 +02:00
Shay Banon
a6a2a264c3
Highlighting on term vector enabled field should not highlight filters by default, closes #1469 .
2011-11-15 13:42:15 +02:00
Shay Banon
b8fe9999e0
XContentBuilder to handle extended classes of java.util.Date, closes #1465 .
2011-11-15 11:34:32 +02:00
Shay Banon
abaf4b5196
Indices Stats API: Providing groups as part of the HTTP API does not return stats for those groups, closes #1468 .
2011-11-15 10:31:55 +02:00
Igor Motov
0d714d580f
Add counts of currently executing get operations
2011-11-15 10:21:10 +02:00
Shay Banon
9bf42fed1b
Nested facet execution can fail with ArrayIndexOutOfBounds, closes #1467 .
2011-11-15 09:23:56 +02:00
Shay Banon
dc2824fe06
apply fix to unsafe decoder in lzf, still use vanilla for now
2011-11-15 08:46:05 +02:00
Shay Banon
73ba30b18a
Date Range: Inclusive upper range does not round up properly, closes #1463 .
2011-11-14 17:16:42 +02:00
Shay Banon
ed281fbfd5
Index shard search slow log (query and fetch), closes #1462 .
2011-11-14 14:10:39 +02:00
Shay Banon
b43c8fe128
get should report time in millis, but return in nanoseconds
2011-11-14 10:40:05 +02:00
Igor Motov
62d67e6c2d
Add counts of currently executing index, delete, query and fetch operations
2011-11-14 10:24:50 +02:00
Shay Banon
eefbe52580
disable optimized decoder by default
2011-11-14 10:10:22 +02:00
Shay Banon
eb1b0b150f
Using root object level mapping (_size, _source) can cause reparsing of the mapping on startup, close #1458 .
2011-11-13 20:56:16 +02:00
Shay Banon
3da6e0a5b0
Percolate / Analyzer API can hang if it fails to execute, closes #1457 .
2011-11-13 19:54:13 +02:00
Jeremie BORDIER
28c9595af3
* Add support for LZF compression on binary fields.
2011-11-13 14:32:53 +02:00
Shay Banon
4bbf29834e
upgrade to lzf compress 0.9
2011-11-13 14:06:09 +02:00
Shay Banon
27a7b0680c
fix top_terms_boost parsing for multi term rewrite
2011-11-13 12:51:10 +02:00
Igor Motov
9cc0b7a28b
Fix processing of regex patterns in large terms facet requests
2011-11-13 12:49:12 +02:00
Shay Banon
a3978402e5
add the search request to the search context
2011-11-13 12:48:17 +02:00
Shay Banon
f4adff652c
Blank routing should be ignored, closes #1450 .
2011-11-13 12:04:02 +02:00
Shay Banon
da98aab13f
also support _percolate for bulk item requests
2011-11-13 10:19:05 +02:00
Shay Banon
21c4530aaf
Search: Search requests execute by mistake on the networking http IO thread, causing other http operations to hang, closes #1455 .
2011-11-11 22:22:21 +02:00
Shay Banon
99d31cc8c8
better handlign of open channels
2011-11-11 22:22:15 +02:00
Shay Banon
93f1d50c18
configure the scheduled TP to not wait for delayed execution, so we shutodown faster
2011-11-10 21:52:42 +02:00
Shay Banon
68c8cac852
AbstractCompoundWordTokenFilterFactory should store the dictionary as a CharArraySet instance, not a Set, closes #1449 .
2011-11-10 20:12:35 +02:00
Shay Banon
15c798fb4c
fix minimum_should_match in query_string builder
2011-11-10 12:13:31 +02:00
Shay Banon
c4542c8349
increase search stats rounds to make sure the stats are higher than 0
2011-11-10 12:01:39 +02:00
Shay Banon
62bc0836c1
improve boolean filter
2011-11-10 12:00:43 +02:00
Igor Motov
ed8c289dec
Log warning when application of an updated cluster state fails with an exception
2011-11-10 10:12:58 +02:00
Igor Motov
e7baf30bd2
Fix reporting of total indexing stats
2011-11-10 10:07:10 +02:00
Igor Motov
eafa2b0c9a
Fix possible NPE in TransportNodesListGatewayStartedShards operation
2011-11-10 10:04:11 +02:00
Shay Banon
c5ebe6e86f
Mapping: Improve applying guessed types on dynamic templates, closes #1446 .
2011-11-09 09:02:20 +02:00
Shay Banon
75f522adaa
data.path locations are unevenly filled (0.18.2), closes #1436 .
2011-11-02 23:45:35 +02:00
Igor Motov
3c2dd959cb
Aliases should be processed when index routing changes
2011-11-01 20:05:46 +02:00
Shay Banon
ca7247e1b1
add more details logging on info of data path
2011-10-28 07:45:17 +02:00
Shay Banon
65a525bb15
add 0.18.3
2011-10-27 20:42:43 +02:00
Shay Banon
723d2e8b15
Search: Fetching fields that end up extracted from source might fail, closes #1431 .
2011-10-27 20:28:38 +02:00
Shay Banon
8922d5b073
Merge Scheduler: Allow to set index.merge.scheduler.max_merge_count, closes #1430 .
2011-10-27 02:14:47 +02:00
Shay Banon
efffcf2b26
add 0.18.2 option
2011-10-27 01:43:08 +02:00
Shay Banon
99e2bb270c
External data location configuration fails (path.data setting), closes #1429 .
2011-10-27 01:30:33 +02:00
Shay Banon
49a97f6fcf
move to 0.19.0 snap
2011-10-26 21:04:10 +02:00
Shay Banon
3544b07330
release 0.18.0
2011-10-26 20:58:24 +02:00
Shay Banon
0cde90fcb1
minimum_number_should_match in a query_string, closes #1420 .
2011-10-26 01:58:12 +02:00
Shay Banon
b652c655d2
Highlighting broken with custom_filters_score query, closes #1425 .
2011-10-26 00:58:52 +02:00
Shay Banon
2778a6756c
indexing option ignored in index_stats, closes #1423 .
2011-10-25 20:20:43 +02:00
Shay Banon
f9d0e82389
if source is not stored, treat it as an empty map in things like scripts or non stored field extraction
2011-10-25 20:18:53 +02:00
Shay Banon
8d08a66e66
make flags public just so people can hack it if needed
2011-10-25 19:01:12 +02:00
Shay Banon
6f39fce41f
First indexing fails when indexing a type with an attachment field mapped using a dynamic template, closes #1418 .
2011-10-25 01:40:27 +02:00
Shay Banon
3f4eea469c
better failure message if a type parser is not found with dynamic tempaltes
2011-10-25 01:10:49 +02:00
Shay Banon
3210785bf4
upgrade to jackson 1.9.1
2011-10-25 00:30:05 +02:00
Shay Banon
fd23d16eaa
Mapping: Allow to include / exclude specific parts of it when storing it, closes #1421 .
2011-10-25 00:01:58 +02:00
Shay Banon
dec8dc5bec
Bool Filter fails with ArrayIndexOutOfBoundsException, closes #1419 .
2011-10-24 00:30:30 +02:00
Shay Banon
d8f426a166
remove unused class
2011-10-23 23:41:18 +02:00
Shay Banon
a360cc4c4a
on multiple data locations, write the state files of local gateway on all locations
2011-10-23 22:57:37 +02:00
Shay Banon
b2b608f9dc
Query DSL: Indices query type, closes #1416 .
2011-10-23 01:35:09 +02:00
Shay Banon
721f315210
handle also illegal state case to see if OOM happened within the index writer
2011-10-21 20:18:57 +02:00
Hiroyuki Ikezoe
6444335f06
Use CJKAnalyzer instead of ChineseAnalyzer
...
Signed-off-by: Hiroyuki Ikezoe <hiikezoe@gnome.org>
2011-10-21 20:04:32 +02:00
Shay Banon
932215d6fa
rename check setting to check on startup
2011-10-20 16:17:38 +02:00
Shay Banon
ff977926a9
add equals support to index metadata
2011-10-20 00:51:24 +02:00
Lukas Vlcek
54273dd1ee
Added tests for synonym parsers.
2011-10-19 23:38:15 +02:00
Lukáš Vlček
f7747d7ff9
Adding Wordnet synonym format
2011-10-19 23:38:14 +02:00
Shay Banon
0f2b875df9
better failure message when failing to get a node lock
2011-10-19 23:12:01 +02:00
Shay Banon
9396735925
Script sorting doesn't accept parameters, closes #1382 .
2011-10-18 22:31:20 +02:00
Shay Banon
724611f249
don't clear on both obtain and release for the search cache
2011-10-18 19:21:06 +02:00
Shay Banon
4ffbdbeaea
better failure message for sorting when mapping is not found
2011-10-18 05:54:40 +02:00
Shay Banon
b113eb18fe
builder based search source is safe now
2011-10-18 05:53:53 +02:00
Shay Banon
184a38439f
Search: A failed search request might get overrun when trying another shard, closes #1403 .
2011-10-18 05:31:12 +02:00
Shay Banon
673655cc7b
When searching against an index/type, use the type information to derive different search aspects, closes #1391 .
2011-10-18 01:26:53 +02:00
Shay Banon
6a146e7ad0
When searching against an index/type, use the type information to derive different search aspects, closes #1391 .
2011-10-18 00:38:29 +02:00
Shay Banon
325064c7aa
add static close methods to main class entry point
2011-10-17 20:25:41 +02:00
Shay Banon
bfb4666b3d
remove casting
2011-10-17 00:43:25 +02:00
Shay Banon
bcd582b8c1
add internal cluster reroute api
2011-10-16 19:02:32 +02:00
Shay Banon
1047cebabe
replication base classes to allow for different implementation of the primary request and the replica request
2011-10-16 17:25:31 +02:00
Shay Banon
72ad722480
Array out-of-bounds exception with bool filter, closes #1400 .
2011-10-15 15:35:14 +02:00
Erick Tryzelaar
b2769b1086
multi_get ids shortcut should grab custom fields.
2011-10-15 11:56:55 +02:00
Shay Banon
6b497589ce
rest _count endpoint to also allow for no query provided (defaults to match_all)
2011-10-14 17:53:27 +02:00
Shay Banon
a76737ceaf
also ignore index missing failure when refreshing, as it might happen (we refresh on shards that might have not been allocated yet)
2011-10-14 17:50:02 +02:00
Shay Banon
dee4b42b16
Exception: TokenStream implementation classes or at least their incrementToken() implementation must be final, closes #1397 .
2011-10-14 16:56:53 +02:00
Shay Banon
24f1f0ff96
improve refreshing logic to resync mappings on upgrade, reduce the amount of cluster events processing requires if the even if fired from several nodes / sources
2011-10-14 15:20:38 +02:00
Shay Banon
ffc74260ac
Synonym filter fails to properly load synonyms (since 0.17.7), closes #1392 .
2011-10-13 00:18:01 +02:00
Shay Banon
19ff93b09a
all field mapper should be "included in root object"
2011-10-12 22:50:16 +02:00
Shay Banon
0367103423
Text Query does not use search_analyzer on field that is prefixed with the type name, closes #1390 .
2011-10-12 22:14:03 +02:00