Commit Graph

4456 Commits

Author SHA1 Message Date
Shay Banon 6978aa2189 mark source as "safe" when copying it over 2013-02-22 12:59:41 +01:00
Shay Banon a234e45b59 fix boolean to is from get
relates to #2657
2013-02-22 12:45:56 +01:00
Igor Motov ec3492c67c Improve stability of the testReusePeerRecovery test 2013-02-21 16:06:33 -05:00
Shay Banon b7f5295674 update jsr166y adn jst166e to latest versions 2013-02-21 21:11:14 +01:00
Shay Banon 4753ffdf1e allow to set which queue implementation to use
expert setting, but still would be great to be able to control it
2013-02-21 20:07:40 +01:00
Drew Raines 5cce40fa5e Merge branch 'pull/2670'
Add 32-bit v6 jdk check for deb.
2013-02-21 08:26:18 -06:00
Ilya Nazarov da3d682f0e Check for java-6-openjdk-i386 in init.d
There is check for /usr/lib/jvm/java-6-openjdk-amd64, but no for 32-bit systems (/usr/lib/jvm/java-6-openjdk-i386).
2013-02-21 21:13:51 +07:00
Igor Motov 4ea4de6f8d Add logging information for releasing node lock 2013-02-20 17:53:27 -05:00
Shay Banon 7bb092440a facet refactoring, default collector base post implementation
automatically implement post based on collector
2013-02-20 15:36:11 +01:00
Igor Motov ce6f0e27bf Make file distribution among several disks configurable
Fixes #2650
2013-02-19 21:43:43 -05:00
David Pilato b7afa0f44e Fix test for Support trailing slashes on plugin _site URLs #2654 2013-02-19 21:16:47 +01:00
Martijn van Groningen 3b31c1216e Made the `term_vector` json field the leading way of configuring term vectors. Supported options: `no`, `yes`, `with_offsets`, `with_positions`, `with_positions_offsets` and`with_positions_offsets_payloads`. 2013-02-19 20:55:43 +01:00
Igor Motov 5b9e9a004a Make sure that in SitePluginTests http client connects to the correct node and closes the node after the test 2013-02-19 14:42:24 -05:00
Igor Motov f96c1f1e10 When a node is leaving LocalDiscovery cluster, rerouting should be performed on the master node 2013-02-19 13:14:33 -05:00
Igor Motov d126558dec Add check for health timeout to shardCleanup test 2013-02-19 13:12:26 -05:00
David Pilato 8ab9d2dd1f Support trailing slashes on plugin _site URLs fix #2654 2013-02-19 09:21:45 +01:00
Igor Motov cfaa859bb2 Improve stability of UpdateNumberOfReplicasTests 2013-02-18 20:12:39 -05:00
Igor Motov 4222478b18 Make it simpler to determine which version of state was used to calculate health 2013-02-18 20:02:29 -05:00
Igor Motov 5746c50ef9 Improve stability of shardsCleanup test 2013-02-18 19:35:12 -05:00
Igor Motov 183a74c866 Improve stability of testSimpleAwareness test 2013-02-18 19:31:07 -05:00
Simon Willnauer 06fc9c77ba don't exclude services otherwise es.jar doesn't include the SPI information to load XBloomPostings 2013-02-18 23:06:01 +01:00
Martijn van Groningen 303e87fb69 Added support for sorting by fields inside one or more nested objects.
The sorting by nested field support has the following parameters on top of the already existing sort options:

nested_path - Defines the on what nested object to sort. The actual sort field must be a direct field inside this nested object. The default is to use the most immediate inherited nested object from the sort field.
nested_filter - A filter the inner objects inside the nested path should match with in order for its field values to be taken into account by sorting. Common case is to repeat the query / filter inside the nested filter or query. By default no nested_filter is active.
Either the highest (max) or lowest (min) inner object is picked for during sorting depending on the sort_mode being used. The sort_mode options avg and sum can still be used for number based fields inside nested objects. All the values for the sort field are taken into account for each nested object.

Closes #2662
2013-02-18 22:10:41 +01:00
Simon Willnauer 8db436f107 Remove backported Lucene 4 spatial code in favor of the released version in Lucene 4.1 2013-02-18 18:43:55 +01:00
Jeffrey Gerard 0dfc2169d7 Added Testcase and BugFix fixing #2626 where GeoShape intersects filter omitted matching docs.
SpatialPrefixTree#recursiveGetNodes uses an optimization that prevents
recursion into the deepest tree level if a parent node in the penultimate
level covers all its children.  This produces a bug if the optimization
happens both at indexing and at query/filter time.

This patch fixes the bug by disabling the optimization at indexing time
(to avoid adding overhead for query-heavy workloads).

See LUCENE-4770 for reference
2013-02-18 18:43:47 +01:00
David Pilato cc83c2f848 refactoring getter/setters
Fixes #2657
2013-02-18 11:09:32 -05:00
Martijn van Groningen ac2e6a3a4d Fixed nested facets with filters. 2013-02-18 11:01:18 -05:00
Simon Willnauer 24291d40f4 Expose CJKWidthTokenFilter and CJKBigramTokenFilter
Closes #2660
2013-02-18 11:01:17 -05:00
Shay Banon 547bd7abf2 add our own bloom filter implementation
uses more hash iterations, yet require less memory for the same fpp
relates to #2411
2013-02-18 11:01:17 -05:00
Igor Motov 512585da82 Fix race condition in adding TimeoutClusterStateListener
Fixes #2658
2013-02-18 11:01:17 -05:00
Shay Banon 435eabd4a0 allow to access the global node settings in a static manner 2013-02-18 11:01:17 -05:00
Shay Banon e365ecce10 fix check on which settings to change on 2013-02-18 11:01:17 -05:00
Shay Banon 73a447da86 initial facet refactoring
the main goal of the facet refactoring is to allow for two modes of facet execution, collector based, that get callbacks as hist match, and post based, which iterates over all the relevant hits
it also includes a some simplification of the facet implementation
2013-02-16 02:25:04 +01:00
Shay Banon 06b82a45d4 Simplified range syntax when using a query string
closes #2655
2013-02-15 01:30:55 +01:00
Shay Banon 4714a6acc9 Clear cache: allow to invalidate specific filter cache keys
closes #2653
2013-02-14 21:13:19 +01:00
Shay Banon c12c456192 add note on not using totalSize in merge 2013-02-14 14:30:46 +01:00
Shay Banon e8e3dd1c9d add 0.20.6 ver 2013-02-14 14:29:30 +01:00
Igor Motov 37f16127c5 Fix ScriptFilter cache key calculation
Fixes #2651
2013-02-14 06:13:26 -05:00
Igor Motov 6b49457d9d Optimize conversion to a cacheable DocIdSet 2013-02-13 21:04:54 -05:00
Shay Banon 883c593d7e delay reroute only after we publish that a shard has started 2013-02-14 00:10:52 +01:00
Shay Banon 681239b413 Warmers do not load field data cache for sorting on new segments
fixes #2649
2013-02-13 17:51:34 +01:00
Shay Banon f41eccc7a5 updating non dynamic settings throws an error now 2013-02-13 14:28:16 +01:00
Martijn van Groningen 2193a8e401 Let the update index settings action fail if non dynamic settings are changed for open indices.
Closes #2647
2013-02-13 13:10:56 +01:00
Shay Banon 5ad540a1aa possibly incorrect use of Lucene OneMerge.totalBytesSize
fixes #2643
2013-02-12 22:09:55 +01:00
Martijn van Groningen 3a2d40acd9 Added more trace logging related to finding master. 2013-02-12 21:40:12 +01:00
Shay Banon 5519f80abb add increased timeout waiting for relocation when running on small boxes 2013-02-12 21:23:18 +01:00
Martijn van Groningen fc13499ff5 Added `sort_mode` option that defines what value to pick in the case the sort field is multi-valued.
The `min` and `max` sort modes are supported for all field types. Either the lowest value or the highest value is picked. In addition to that number based fields also support `sum` and `avg` as sort mode. If `sum` sort mode is used then all the values for a field and belonging to a document are added together and the result of that is used as sort value. If the `avg` sort mode is used then the average of all values for the sort field belonging to that document is used as sort value.

Relates to #2634
2013-02-12 20:38:24 +01:00
Shay Banon 7d13545e33 delete indices before running the tests 2013-02-12 19:28:48 +01:00
Shay Banon 668bcd0eb7 Bulk execution while a shard is replication might send erroneous version conflict failures for certain items
fixes #2642
2013-02-12 17:38:06 +01:00
Simon Willnauer a7bbab7e87 # Rescore Feature
The rescore feature allows te rescore a document returned by a query based
on a secondary algorithm. Rescoring is commonly used if a scoring algorithm
is too costly to be executed across the entire document set but efficient enough
to be executed on the Top-K documents scored by a faster retrieval method. Rescoring
can help to improve precision by reordering a larger Top-K window than actually
returned to the user. Typically is it executed on a window between 100 and 500 documents
while the actual result window requested by the user remains the same.

# Query Rescorer

The `query` rescorer executes a secondary query only on the Top-K results of the actual
user query and rescores the documents based on a linear combination of the user query's score
and the score of the `rescore_query`. This allows to execute any exposed query as a
`rescore_query` and supports a `query_weight` as well as a `rescore_query_weight` to weight the
factors of the linear combination.

# Rescore API

The `rescore` request is defined along side the query part in the json request:

```json
curl -s -XPOST 'localhost:9200/_search' -d {
  "query" : {
    "match" : {
      "field1" : {
        "query" : "the quick brown",
        "type" : "boolean",
        "operator" : "OR"
      }
    }
  },
  "rescore" : {
    "window_size" : 50,
    "query" : {
      "rescore_query" : {
        "match" : {
          "field1" : {
            "query" : "the quick brown",
            "type" : "phrase",
            "slop" : 2
          }
        }
      },
      "query_weight" : 0.7,
      "rescore_query_weight" : 1.2
    }
  }
}
```

Each `rescore` request is executed on a per-shard basis within the same roundtrip. Currently the rescore API
has only one implementation (the `query` rescorer) which modifies the result set in-place. Future developments
could include dedicated rescore results if needed by the implemenation ie. a pair-wise reranker.
*Note:* Only regualr queries are rescored, if the search type is set to `scan` or `count` rescorers are not executed.

Closes #2640
2013-02-12 17:10:00 +01:00
Shay Banon c65aff7775 Index with no replicas might loose on going documents while relocating a shard
fixes #26421
2013-02-12 17:03:28 +01:00