Commit Graph

453 Commits

Author SHA1 Message Date
kimchy 25433ace48 release after we notify the user 2010-04-08 13:57:00 +03:00
kimchy a208eb5a50 clean search context when a shard/index gets closed. Add an IndicesLifecyle global component that allows to register for such events easily. 2010-04-07 21:22:43 +03:00
kimchy f631e9aded better release of search context when it is not needed in queryThenFetch type actions 2010-04-07 20:32:47 +03:00
kimchy 9464c390ac Allow to define custom prefix for settings when components do not use the org.elasticsearch package 2010-04-07 18:30:39 +03:00
kimchy bd5260a4f8 javadoc 2010-04-07 18:16:47 +03:00
kimchy 7ed9435a3a more index and shard lifecycle annotations, in any case, one should extend the respective base classes 2010-04-07 17:25:35 +03:00
kimchy 5e4f7c77a2 multi_field not returning for default field for certain type, closes #123 2010-04-07 17:11:12 +03:00
kimchy bb49db8f92 more tests 2010-04-07 16:10:20 +03:00
kimchy 21f7de5123 fix typo 2010-04-07 15:17:23 +03:00
kimchy 880f6266ec better exception 2010-04-07 14:21:39 +03:00
kimchy 91d5beca96 change cache to memory in fs in memory storage of certain files, better name since its not really caching, its actual storage 2010-04-07 14:11:27 +03:00
kimchy 445db1e559 if no metadata in gateway, as if we waited 2010-04-07 13:23:15 +03:00
kimchy bcb46a1747 better handling of failed transport address passed in discovery (still requires more work) 2010-04-07 13:22:01 +03:00
kimchy cc9ff90199 javadoc 2010-04-07 12:44:43 +03:00
kimchy 2bb31fe740 reafactor how actions handle failures, better response when non active shards exists, also, default logging to have action set to DEBUG so exceptions in actions are logged in the server 2010-04-07 01:54:33 +03:00
kimchy 1a9c5d6b15 Range filter gt is broken, closes #119. 2010-04-06 15:54:03 +03:00
kimchy cc6e6eb381 httpAddress -> http_address, closes #118. 2010-04-06 13:33:36 +03:00
kimchy 5cef456305 nicer code 2010-04-06 12:54:19 +03:00
kimchy b760ab18b6 update maven upload to also produce javadoc and source jars 2010-04-06 11:44:41 +03:00
kimchy 7ec83b2f4c fix typo 2010-04-05 15:59:23 +03:00
kimchy 8cfa04cea3 add _all option to nodes based operations 2010-04-05 01:17:53 +03:00
kimchy 341f6d3963 rename max_num_terms to max_query_terms so its similar to mlt 2010-04-05 00:32:08 +03:00
kimchy 6480daff78 API Change: moreLikeThis and fuzzyLikeThis, closes #111. 2010-04-04 23:59:15 +03:00
kimchy 2d6c2d8586 API Change: moreLikeThis, closes #109. 2010-04-04 23:36:52 +03:00
kimchy 52f193c849 API Change: put_mapping: change default ignore_conflicts to false, closes #110. 2010-04-04 23:10:59 +03:00
kimchy 8262093a21 Query DSL: Range - support lt/lte/gt/gte, closes #114. 2010-04-04 22:31:55 +03:00
kimchy 5f7d0ce36e Query DSL: Range - support lt/lte/gt/gte, closes #114. 2010-04-04 22:14:45 +03:00
kimchy 33086fb98d API Change: Terms - Add support for gt/gte/lt/lte, closes #108. 2010-04-04 22:00:05 +03:00
kimchy 4e347425e8 remote _moreLikeThis option 2010-04-04 21:48:44 +03:00
kimchy d0a79223db API Change: opType=create, closes #107 2010-04-04 21:36:07 +03:00
kimchy ff1fa9daad Move from CamelCase to '_' casing, closes #116. 2010-04-04 17:41:40 +03:00
kimchy 3b5b4b4c3a Move from CamelCase to '_' casing, closes #116. 2010-04-04 17:18:18 +03:00
kimchy 3f8acbd994 Mapper: Rename pathType to path, closes #106. 2010-04-04 12:02:34 +03:00
kimchy a6d9c84910 better copy over file 2010-04-04 04:11:07 +03:00
kimchy 4692ef805b properly handle failures by closing file refs 2010-04-04 02:45:41 +03:00
kimchy 3e7bf0fa20 check search scroll URI to /_search/scroll from /_searchScroll 2010-04-04 02:03:59 +03:00
kimchy 6bf19fcd93 Mapper: Rename allFIeld to _all, sourceField to _source, idField to _id, and typeField to _type, closes #105. 2010-04-04 01:50:52 +03:00
kimchy 5da4b0748f update javadoc task to use more mem 2010-04-04 01:23:58 +03:00
kimchy 15bdba30e5 allow for _ separator on top of camel case for mapping definitions 2010-04-03 21:07:01 +03:00
kimchy 962ce9a7e6 improve initial read from gateway on first master startup, first master will not complete the startup sequence until meta data and all indices have been created from the gateway 2010-04-03 03:03:37 +03:00
kimchy a5a4b35e39 update firstMaster before submitting state update 2010-04-03 02:25:22 +03:00
kimchy 65acc0cfa9 better lifecycle mgmnt 2010-04-03 02:20:42 +03:00
kimchy d633b3dfbb nicer code 2010-04-03 01:56:31 +03:00
kimchy 1521222534 _all field should be added to the list of fields under the mapping registry so it can be easily referenced 2010-04-02 22:23:05 +03:00
kimchy 3fb68d62de Get response should have fields always set, even when there are none 2010-04-02 22:11:56 +03:00
kimchy 408bad62f3 Query DSL: Fuzzy Like This, closes #103. 2010-04-02 21:55:37 +03:00
kimchy 58d2e2e1fc update maven support 2010-04-02 21:24:28 +03:00
kimchy 7c904dcd0e better pom generation 2010-04-02 19:08:33 +03:00
kimchy f2189e8176 HTTP Netty: Remove httpKeepAlive support, closes #104. 2010-04-02 18:45:15 +03:00
kimchy 5d5c53151b more work on maven 2010-04-02 16:54:01 +03:00
kimchy 6ed23744fc upgrade to gradle 0.9 preview 1 2010-04-02 15:47:27 +03:00
kimchy 0794c808b9 add more logging to jgroups disco 2010-04-01 23:38:23 +03:00
kimchy 10f96ba8f2 better javadoc 2010-04-01 23:34:22 +03:00
kimchy 10183c7440 fix spelling 2010-04-01 23:19:58 +03:00
kimchy 05d85b2ae4 add source files to dist jar files 2010-04-01 23:06:11 +03:00
kimchy 8faf8c2169 add source files to dist jar files 2010-04-01 23:05:05 +03:00
kimchy 50249f4e52 wait before closing the shard if a snapshot is still in progress 2010-04-01 22:56:05 +03:00
kimchy 4b2ff13833 add cause to index creation 2010-04-01 22:42:51 +03:00
kimchy 118aa89614 Query DSL: Fuzzy Like This, closes #103. 2010-04-01 22:19:17 +03:00
kimchy c2e8804b4d allow no fields to be specified for the mlt builder, default to _all 2010-04-01 18:49:00 +03:00
kimchy fd574880fc Clear Indices Cache API: Allow to clear indices cache, closes #101 2010-04-01 12:25:51 +03:00
kimchy 0e3ca48aa9 add type to filter cache 2010-04-01 01:18:18 +03:00
kimchy dc1402597f rename 2010-04-01 01:05:37 +03:00
kimchy d546ae358c javadoc 2010-04-01 00:44:34 +03:00
kimchy aac05e2629 inject similarity to parsing context of queries so it can be used 2010-04-01 00:35:54 +03:00
kimchy 2ea7423f3a don't cache count queries 2010-04-01 00:20:45 +03:00
kimchy def8caf7db better lifecycle handling when deleting an index 2010-03-31 22:46:21 +03:00
kimchy 6f9451f9c6 better lifecycle handling when deleting an index 2010-03-31 22:45:46 +03:00
kimchy 398382f6e7 nicer code 2010-03-31 21:45:56 +03:00
kimchy 632f0d4f0d clean logging file 2010-03-31 21:18:40 +03:00
kimchy 38d8fad8d0 clean and refactor the way fs index gateway work, should work nicer with NFS 2010-03-31 17:23:16 +03:00
kimchy 0586bcd003 better handling of fs gateway when sync to disk of the translog file 2010-03-31 15:39:50 +03:00
kimchy 1a698df69d better handling of fs gateway when sync to disk of the translog file 2010-03-31 15:36:43 +03:00
kimchy 875e7b7449 better logging of fs gateway 2010-03-31 13:02:09 +03:00
kimchy 41e100ad33 fix failure in mlt with dates, this does mean that currently, mlt, when based on fetching the source and parsing it, does not do mlt on numbers 2010-03-30 23:07:59 +03:00
kimchy 4492293b49 fix failure in mlt with dates, this does mean that currently, mlt, when based on fetching the source and parsing it, does not do mlt on numbers 2010-03-30 22:46:20 +03:00
kimchy 81c6b9075c MoreLikeThis: Rename fields (rest/http parameter) to mltFields, closes #95. 2010-03-29 16:43:26 +03:00
kimchy 8402738bbe Index aliases ignored for /.../_moreLikeThis, closes #93. 2010-03-29 14:14:23 +03:00
kimchy 3decb2a61e nice(er) code 2010-03-29 11:27:38 +03:00
kimchy a5dc0fcf9a javadoc 2010-03-29 11:03:36 +03:00
kimchy 913a486f99 more work on attachments, have basic types support external set values 2010-03-29 00:19:33 +03:00
kimchy b42245df53 intial support for pluggable type mappers 2010-03-28 18:36:42 +03:00
kimchy f560383b53 intial support for pluggable type mappers 2010-03-28 18:35:25 +03:00
kimchy b799b7a9d7 plugins support + start work on attachments plugin 2010-03-27 23:43:59 +03:00
kimchy 73daff1584 Better exception when failing to create gateway home 2010-03-27 22:10:56 +03:00
kimchy cd12d89dac Better exception when failing to create gateway home 2010-03-27 22:07:22 +03:00
kimchy 59267ce449 more unused field 2010-03-26 21:58:19 +03:00
kimchy 79a930d7ca javadoc 2010-03-26 21:57:47 +03:00
kimchy 9a521e8d98 update benchmark 2010-03-26 20:08:24 +03:00
kimchy 91b463a39a add create flag to benchmark 2010-03-26 18:20:26 +03:00
kimchy be096fcd6f improve moreLikeThis API by using the new get request fields options 2010-03-26 00:44:44 +02:00
kimchy 9c0a37df32 Mapping: Allow to have for a field to not be stored and not indexed, but still be included in `all`, closes #90. 2010-03-25 20:56:45 +02:00
kimchy 5957f580e3 refactor lifecycle components to a shards base class #cleancode 2010-03-25 20:40:37 +02:00
kimchy e5cd594503 Boot-time Mapping Definitions, closes #86. 2010-03-25 13:34:30 +02:00
kimchy 8f324678e8 Index Aliases, closes #88. 2010-03-25 02:00:53 +02:00
kimchy 4851ddde13 if we already have an idset, use it 2010-03-24 01:53:59 +02:00
kimchy f4c94a35d6 Query DSL: Rename `filteredQuery` to `filtered`, closes #85. 2010-03-24 00:37:59 +02:00
kimchy 6a476f440b rename operationThreading method 2010-03-24 00:28:05 +02:00
kimchy 621d222c94 Mapping: Support for short type, closes #84. 2010-03-23 14:20:56 +02:00
kimchy 0a2de7ce5d a test for lucene FieldCache 2010-03-23 12:42:31 +02:00
kimchy 3a322a64b7 a test for lucene FieldCache 2010-03-23 12:41:59 +02:00
kimchy 5b11de8958 clean thread locals (even static ones!) on Server#close or TransportClient#close 2010-03-23 10:31:15 +02:00
kimchy 14af9d28fd sort field can be null (when sorting on score for example), make sure we take it into account when serializing 2010-03-23 08:53:58 +02:00
kimchy 89043b113a better exception when trying to put mappings when no indices exists, closes #79. 2010-03-22 18:03:05 +02:00
kimchy f9cac39024 Terms query is broken, closes #80. 2010-03-22 17:59:34 +02:00
kimchy fa55c40c87 Index FS Store: Allow to cache (in memory) specific files, closes #82 2010-03-22 17:09:03 +02:00
kimchy 267859c784 another test 2010-03-22 13:59:25 +02:00
kimchy 93e025325e Terms API: Support numbers/dates, closes #78. 2010-03-22 02:34:42 +02:00
kimchy bc03d89c00 work on terms api to work properly with number types 2010-03-21 22:38:51 +02:00
kimchy a039a6cc38 add a test for failed from 2010-03-21 16:45:04 +02:00
kimchy 297e2091e2 more improved search result streaming, write a header with shard targets, so each hit just write an id of the targe 2010-03-21 15:09:02 +02:00
kimchy 77564cb14f more improved transport stream size, duplicate strings are serialized once and use handles to deserialize 2010-03-21 10:35:25 +02:00
kimchy 1e455789d0 Search API: Scroll, closes #77. 2010-03-21 01:14:49 +02:00
kimchy 2ae6de2433 fix wrong handling of size and from when passed as request parameters 2010-03-20 23:44:24 +02:00
kimchy de69f5f0fd doc 2010-03-20 21:08:19 +02:00
kimchy 52af5573f1 rename tieBreakerMultiplier to tieBreaker 2010-03-20 18:52:21 +02:00
kimchy 35bd7f0086 fix search hanging because of query parsing exception 2010-03-20 18:45:02 +02:00
kimchy bad8643978 fix wrong parsing of useDisMax with number 2010-03-20 18:13:08 +02:00
kimchy fa1071d090 parse correct enabled flag on all field when passed as number, closes #76 2010-03-20 14:40:24 +02:00
kimchy 671bc4e734 ThreadPool: Rename dynamic to scaling, closes #75. 2010-03-20 03:41:41 +02:00
kimchy fc47bd6f2f ThreadPool: Add a blocking thread pool, closes 74. 2010-03-20 03:25:13 +02:00
kimchy 2551fb9fce change the default opereationThreading on delete/index to true 2010-03-20 03:15:57 +02:00
kimchy 315cc90560 fix test 2010-03-20 02:09:44 +02:00
kimchy 049ce4ffcd better names 2010-03-20 01:25:51 +02:00
kimchy d2bf446d9c better exception handling 2010-03-20 00:55:24 +02:00
kimchy d4dc3cacc1 fix problem with outputting proper error when failing to parse configuration on startup 2010-03-20 00:28:15 +02:00
kimchy a344ebb1b3 Index Analysis: Add language analyzers and stemmers, closes #72 2010-03-19 17:07:43 +02:00
kimchy 45234f4d90 fix compilation warning 2010-03-19 14:19:53 +02:00
kimchy 55cad3208e fix explain failure 2010-03-19 14:15:26 +02:00
kimchy f8a615f9a3 refactor internal transport streams to be more effecient, heavily reduce stream size 2010-03-19 03:04:35 +02:00
kimchy 1ae5a3467f change default recovery buffer to 100k from 16k 2010-03-18 17:28:54 +02:00
kimchy b1e5284a06 Memory Store: change default bufferSize from 1k to 100k, closes #70 2010-03-18 17:27:17 +02:00
kimchy 28b0b5fc30 Search API: Support highlighting, closes #69. 2010-03-18 16:05:24 +02:00
kimchy fc3a805514 NullPointerexception at org.elasticsearch.action.get.GetResponse.sourceAsString, closes #68 2010-03-18 14:08:45 +02:00
kimchy cd2090bc79 more tests 2010-03-18 01:15:26 +02:00
kimchy 1107df9ab6 query parser should take into account using all, since all creates a specialized "term query" which boosts based on the boost level associated with a term. Generalized it so mappers can control when query is used for term query. 2010-03-18 00:53:36 +02:00
kimchy a8be04b334 improve test 2010-03-18 00:29:07 +02:00
kimchy 3a55998a3b Mapper: Ability to disable storing the "source" field, closes #66. 2010-03-17 21:29:44 +02:00
kimchy 6243f4f95b Get API: Allow to specify which fields to load, close #65. 2010-03-17 20:03:32 +02:00
kimchy 4c13a9d548 allow to also store the all field 2010-03-17 13:17:48 +02:00
kimchy d8ef200b4b Shutdown API: allow to shutdown node(s) or the whole, closes #64. 2010-03-17 00:29:36 +02:00
kimchy 1dd5997889 _all field, closes #63. 2010-03-16 23:04:20 +02:00
kimchy 1d2d4674cf stop the timer when closing the http server 2010-03-16 02:18:28 +02:00
kimchy 20877a0c79 upgrade to jackson 1.5 2010-03-14 21:24:47 +02:00
kimchy 1de6509107 optimize fetching when an empty array of fields is provided, in such a case, we only need the uid (id and type) 2010-03-13 17:56:29 +02:00
kimchy 2e8b0464b6 allow to specify mappings in created index (currently, only internally), use it to create the mappings on index creation with recoverying from gateway 2010-03-13 02:42:43 +02:00
kimchy 024cdb4312 wait till the index gets created to create the mappings when recovering from the gateway 2010-03-13 02:14:28 +02:00
kimchy 4e1a1f3437 Mapping metadata not restored from gateway on server restart, closes #57 2010-03-12 18:22:20 +02:00
kimchy 65ed582a90 Mapper : Schema less automatic date detection wrongly detects numbers as dates, closes #60. 2010-03-12 18:16:35 +02:00
kimchy 47c11aa538 Boolean field type does not handle number/string properly when searching, closes #59. 2010-03-12 16:53:11 +02:00
kimchy 6fe329ab69 search json parsing to allow passing numbers/booleans as strings and not native json types 2010-03-12 16:36:31 +02:00
kimchy ef85412f98 fix name 2010-03-12 16:30:30 +02:00
kimchy 471801b484 query/filter json parsing to allow passing numbers/booleans as strings and not native json types 2010-03-12 16:28:37 +02:00
kimchy 86c3a406c6 Java API: Expose source as Map (in GetResponse, SearchHit), allow to index a Map, closes #58. 2010-03-11 16:39:30 +02:00
kimchy 4b04db9030 A search with an empty fields param causes a NullPointerException or a runaway process. Changed logic for an empty fields array, where it won't return the source in this case. Closes #55. 2010-03-10 17:49:47 +02:00
kimchy 7c68489758 Mapping - Support specifying string as number values (for example, for boost), closes #53. 2010-03-10 11:22:57 +02:00
kimchy ae5bcb6d2e Support parsing Strings with numeric types, closes #54 2010-03-10 00:40:11 +02:00
kimchy baaac70da5 get jackson object mapper to support dates as elasticsearch expects them 2010-03-09 17:09:07 +02:00
kimchy 83a78b3979 _count hangs, closes #52 2010-03-09 13:25:17 +02:00
kimchy b13f6b1bdd Mapping - MultiField Mapping, closes #51. 2010-03-07 20:13:59 +02:00
kimchy 290ecd4c95 delete files that are no longer used from the fs gateway 2010-03-05 22:46:15 +02:00
kimchy f4f26d2118 Search API: Query Facet - Add global flag to control if the facet is bounded to the search query or not, closes #50. 2010-03-05 16:05:08 +02:00
kimchy 40b0dfddec count should be cached as a filter 2010-03-05 15:24:04 +02:00
kimchy f1d5b179ce doc 2010-03-05 13:02:36 +02:00
kimchy 51836e0fb6 doc 2010-03-05 12:56:37 +02:00
kimchy e735ff49d6 simpler settings builder api 2010-03-05 12:39:38 +02:00
kimchy 45489ed1af add TimeValue based getter 2010-03-05 01:50:40 +02:00
kimchy 7a38e384c9 wrap checked TimeoutException with runtime ElasticSearchTimeoutException 2010-03-05 01:48:56 +02:00
kimchy 7bf0f1ffca refactor client api, remove execXXX, and simple remain with the actual operation name as the method name, one that returns a future, and one that accepts a listener 2010-03-05 01:39:04 +02:00
kimchy e49a8454a6 fix rest boolean 2010-03-04 18:49:18 +02:00
kimchy 111f9cb751 proper handling of get response (document does not exists) 2010-03-04 15:35:15 +02:00
kimchy c560f1f9f1 wait for status should wait for at least that provided status, for example, waiting for status yellow should return if the status is green 2010-03-04 15:09:11 +02:00
kimchy 5d947ad680 make final 2010-03-03 08:47:22 +02:00
kimchy e276928ebf remove dep on sun 2010-03-03 01:49:25 +02:00
kimchy 03ee0a942d update docs 2010-03-03 00:50:53 +02:00
kimchy 12e2ba822f more docs 2010-03-02 22:16:35 +02:00
kimchy fdd221e8ea Query DSL: queryString - allow to run against multiple fields, closes #48. 2010-03-02 00:42:53 +02:00
kimchy fbf9197b85 make non negative query in query parser 2010-03-01 22:17:17 +02:00
kimchy 7709c68f63 optimize boolean queries when possible 2010-03-01 22:07:14 +02:00
kimchy 4dbc167966 Query DSL: Field Query, closes #47. 2010-03-01 20:10:38 +02:00
kimchy 12e87ba865 allow for * on range queries in query parser 2010-03-01 18:49:14 +02:00
kimchy aef5aa0b33 start work on getting maven working.. 2010-03-01 17:19:07 +02:00
kimchy bd8d52f3f8 move to SNAPSHOT suffix for dev builds, when an actual release will take place, then change the version 2010-03-01 16:30:07 +02:00
kimchy 234a5abda0 merge snakeyaml into source 2010-03-01 15:56:19 +02:00
kimchy 7d3b642326 merge snakeyaml into source 2010-03-01 15:53:15 +02:00
kimchy 7c91e7239b merge snakeyaml into source 2010-03-01 15:51:55 +02:00
kimchy 18a1a5f940 merge snakeyaml into source 2010-03-01 15:50:02 +02:00
kimchy 4c9cf299e6 use existing mapping when merging 2010-03-01 14:25:50 +02:00
kimchy 0ef4000842 more mapping work, ignoreDuplicates renamed to ignoreConflicts 2010-03-01 13:55:47 +02:00
kimchy 568254887f better merge mapping logic, better failure reporting 2010-02-28 12:55:05 +02:00
kimchy c6683d23ef some merge mapping work, tests... 2010-02-28 12:28:48 +02:00
kimchy f51e2cf905 stop the recovery process by interrupting network threads when closing a shard 2010-02-28 11:15:35 +02:00
kimchy 372bdec45f more docs 2010-02-28 01:36:45 +02:00
kimchy bcca36fa67 more docs 2010-02-27 23:37:53 +02:00
kimchy bf3f82c7c8 more docs 2010-02-27 22:03:40 +02:00
kimchy 1f3c038f60 fetch phase in search sould return the full name of the field, and not just the name 2010-02-27 22:00:17 +02:00
kimchy bf7ace79ea whats up? doc... 2010-02-27 19:27:07 +02:00
kimchy a5790cab28 refactor from and size in url to use the new "extraSource" in it 2010-02-27 16:48:01 +02:00
kimchy 948f0ef0da doc doc doc 2010-02-27 16:36:20 +02:00
kimchy 471ad1ed73 expose jgourps.bind_port to use when configuring tcp based discovery in jgroups through settings 2010-02-27 04:34:06 +02:00