Commit Graph

4411 Commits

Author SHA1 Message Date
Shay Banon 2f4b759df7 Allow highlighting on wildcard fields.. ie, comment_*
closes #2396
2012-12-26 15:00:31 -08:00
Shay Banon 4b69846ba2 cleanup 2012-12-26 14:21:04 -08:00
Simon Willnauer 90bd82ac50 Pass topScorer=false to sub-scorers if a scorer is wrapped. Wrapped BooleanQuery can return collect-only scorers. See #2505 2012-12-26 14:20:14 -08:00
Shay Banon 2449049a84 Plugins Installer: Allow to download plugins from download.elasticsearch.org
closes #2507.
2012-12-26 14:16:35 -08:00
Martijn van Groningen c93babed42 Minor changes to the parent / child benchmark. 2012-12-24 22:12:10 +01:00
Martijn van Groningen c6aaefa27f Improved explain support for nested query.
Closes #2503
2012-12-24 13:40:20 +01:00
Martijn van Groningen d57d89937f Added scoring support to `has_child` and `has_parent` queries.
Added score support to `has_child` and `has_parent` queries. Both queries support a score_type option. The has_child support the same options as the top_children query and the none option which is the default and yields the current behaviour. The has_parent query support the score type options: score and none. The latter is the default and yields the current behaviour.

If the score_type is set to a value other than none then the has_parent query map the matched parent score into the related children documents. The has_child query then map the matched children documents into the related parent document. The score_type on both queries defines how the children documents scores are mapped in the parent documents. Both queries are executed in two phases. First phase collects the parent uid values of matching documents with an aggregated score per parent uid value. In the second phase either child or parent typed documents are emitted as hit that have the same parent uid value as found during the first phase. The score computed in the first phase will be used as score.

Closes #2502
2012-12-24 11:39:43 +01:00
Shay Banon bb9c7172b0 add mappings even on failure to parse
since we add them internally to the compound mappers, we need to publish the fact, otherwise, for example, the codec won't find the relevant one based on the global mapper service
2012-12-24 00:04:29 -08:00
Igor Motov fcdc36977c Fix failure message serialization in MultiSearchResponse
Fixes #2498
2012-12-21 19:26:48 -05:00
Martijn van Groningen 08b026d060 Fixed `top_children` query failure with dfs_query* search types.
Fixed error with the top_children query when `DFS_QUERY_*` is used as search_type and wraps a query that gets rewritten (E.g wildcard query).

Closes #2501
2012-12-21 18:08:44 +01:00
Martijn van Groningen c17755d164 Removed unused code. 2012-12-21 16:54:14 +01:00
Martijn van Groningen 694989141b Fixed AOBE when using `top_children` in a must not clause.
Closes #2500
2012-12-21 16:47:03 +01:00
Martijn van Groningen 826a6ab02a Improved XBooleanFilter by adding drive logic for bit based filter impl and adding unit test, which tests all possible XBooleanFilter options. 2012-12-19 22:43:47 +01:00
Phil Kates 8f5bca43fb Make elasticsearch.in.sh more configurable via env
It's easier to manage a configuration through environment variables than
through a config file if that config file has static values that need to
change each version (such as the ES_CLASSPATH). Trying to keep that in
Chef is tedious whereas just controlling these few settings with
environment variables like most of the other settings in here is simple
and straightforward.
2012-12-19 21:38:40 +01:00
Shay Banon 14678a91ab nested path to be represented as bytes as well as string 2012-12-18 15:39:13 -08:00
Shay Banon 2950799243 fix creating uid to bytes 2012-12-18 14:39:25 -08:00
Shay Banon ac253178bd more cleanup in mappings 2012-12-18 13:28:36 -08:00
Shay Banon 1867ef5084 simplify toXContent generation of field mappers 2012-12-18 13:00:47 -08:00
Shay Banon f3dbe9224a rename analyzed to tokenized to match field type 2012-12-18 11:34:41 -08:00
Shay Banon b9c5f0472c indexedTerm to return bytes
part of the effort to reduce conversion from string to types
2012-12-18 10:58:03 -08:00
Shay Banon 1cb531f000 remove unused code 2012-12-18 10:26:52 -08:00
Shay Banon e41def7a59 remove unused code 2012-12-18 10:22:37 -08:00
Shay Banon f01ce61f71 parse to bytes 2012-12-18 10:20:55 -08:00
Martijn van Groningen afd998c482 Improved the size computation in StringFieldData#computeSizeInBytes() 2012-12-18 09:51:01 +01:00
Martijn van Groningen ddea22771e Fixed mlt api bug related to custom routing value.
If the a routing value isn't id based, the get part of the mlt request couldn't retrieve the document for the second part of the mlt request and a 500 code is returned instead. This fix addresses this issue.

Closes #2489
2012-12-17 11:00:30 +01:00
uboness 8b74c42099 Support for RegexpQuery & RegexpFilter
- Added "regexp" query type (based on Lucene 4 RegexpQuery)
- Added "regexp" filter type
- Fixed a bug in IdFieldMapper where prefixQuery on a single type would be redundantly wrapped in a boolean query
2012-12-16 23:24:18 +01:00
Shay Banon 5a6004a168 First indexing of a dynamic boolean field can cause it not to be indexed correctly
fixes #2487
2012-12-15 19:04:10 -08:00
Igor Motov c8285739d2 Correctly parse *:* query into matchAllDocsQuery
Fixes #2486
2012-12-14 14:36:20 -08:00
Martijn van Groningen 148dc3c013 Added Lucene 4.1 todo 2012-12-14 16:08:37 +01:00
Shay Banon c65d5a77c4 reuse non analyzed token stream for string types
so heavyweight token stream won't be created each time
2012-12-12 22:53:48 -08:00
Shay Banon fc35fd8a29 improve fields iteration trying to find customer valued analyzer 2012-12-12 22:08:54 -08:00
Shay Banon 36fd76b826 don't call toLowerCase on each bulk item 2012-12-12 21:56:23 -08:00
Shay Banon 32bf7607c7 optimize boolean filter to use bits driven by result bitset 2012-12-12 20:12:51 -08:00
Shay Banon 4778d5c2eb optimize boolean filter for one clause case 2012-12-12 16:32:22 -08:00
Shay Banon 8d0d288a1c add 0.20 versions 2012-12-08 01:37:21 +01:00
Alex Lambert 635438e7d1 restore deleted plugin path modification 2012-12-08 01:15:17 +01:00
Shay Banon e021904250 use the 0.20.0 version 2012-12-07 23:15:44 +01:00
Shay Banon 4dec14d5da Wildcard query on non existent field matches all documents
fixes #2461
2012-12-07 19:37:26 +01:00
Martijn van Groningen ea9a4d70cf lucene 4: Removed the usage of Document & Field when retrieving stored fields. 2012-12-06 18:18:52 +01:00
Igor Motov d947dfde2b Add support for ignoring settings in system properties.
An elasticsearch node can be instructed to ignore settings specified in system properties by setting config.ignore_system_properties setting to true.
2012-12-06 09:37:36 -05:00
Martijn van Groningen 591a76bd88 Changed es version from string to class Version. 2012-12-06 15:37:03 +01:00
Martijn van Groningen 966fdfdfb8 Changed es version from string to class Version 2012-12-06 15:35:30 +01:00
Martijn van Groningen 22f99e848f Expose es version in node info api.
Closes #2466
2012-12-06 15:22:44 +01:00
Martijn van Groningen f72d5c1907 Expose fragmenter option for plain / normal highlighter.
Closes #2465
2012-12-06 14:59:42 +01:00
Shay Banon c2f8ee105b add a marker CachedFilter
this allows to easily and globally check if we cache a filter or not, all filter caching uses this marker interface
2012-12-06 10:13:47 +01:00
Shay Banon 2786e29a10 expose filter strategy in filtered query 2012-12-06 02:20:09 +01:00
Shay Banon c22b521800 fix properly handling acceptDocs in filters
our idea is to apply it on the "filtered/constant" level, and not on compound filters, so we won't apply it multiple times. The solution is conservative a bit now, we can further optimize it in the future, for example, not to wrap it when no caching is done within the filter chain
2012-12-06 01:55:16 +01:00
Shay Banon 5a226cde8e add 0.19.13 2012-12-04 15:41:38 +01:00
Shay Banon c36638d159 not delete filter improvements
- don't check no null for liveDocs, since we know they are not null with the check for hasDeletion
- improve iteration over liveDocs vs. innerSet, prefer to iterate over the faster one
2012-12-04 02:00:36 +01:00
Martijn van Groningen 6cfd938dce Fixed unable to highlight on all multi-valued field values.
Closes #2384
2012-12-03 12:39:18 +01:00