Commit Graph

11910 Commits

Author SHA1 Message Date
Yonik Seeley b323c54f6a SOLR-2950: QEC comparator bug fixes, including deleted docs handling
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221826 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 18:05:52 +00:00
Uwe Schindler e14cda1489 LUCENE-3631: Move thread locals to SegmentCoreReaders.java to enable reuse on reopen/NRT.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221677 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 11:08:27 +00:00
Uwe Schindler dd7caf4d3a LUCENE-3631: Remove code complexity and make all thread locals look identical. Maybe we need a ThreadLocal for DocValues, too?
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221653 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 09:06:51 +00:00
Uwe Schindler 9538cce83f LUCENE-3631: Remove dead code (thanks to Clover)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221632 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 07:06:09 +00:00
Michael McCandless 45f5e829eb LUCENE-3631: just return numDocs from numDocs(); fix wrong IOContext; remove unnecessary final modifier
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221414 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 18:37:03 +00:00
Michael McCandless 4d51b9012b LUCENE-3631: make SegmentReader read-only (IndexWriter now privately tracks the pending deletes against a segment)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221404 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 18:17:33 +00:00
Uwe Schindler d1ea4f76f1 LUCENE-3656: Change data type used for Core-/ReaderClosedListener from ConcurrentHashMap to simple synchronized HashSet
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221369 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 17:59:10 +00:00
Michael McCandless b13b9ab632 LUCENE-3658: fix bad asserts and concurrency issue in NRTCachingDir
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221368 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 17:52:00 +00:00
Uwe Schindler 4dc3278d0d Make test not so expensive nightly (we want to test only our ref cleanup functionality not concurrency of the backingMap)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1221195 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 10:53:17 +00:00
Grant Ingersoll f42b2ffd63 SOLR-2950: Improve QEC performance by dropping field cache use and keeping a local smaller map
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220983 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 22:39:01 +00:00
Michael McCandless daa97d0be4 make test more evil
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220922 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 19:52:52 +00:00
Michael McCandless 4eec465c37 scale back how many docs the test runs to try to avoid OOME
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220912 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 19:40:02 +00:00
Shai Erera 76ee67257d LUCENE-3635: Allow setting arbitrary objects on PerfRunData
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220795 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 15:26:42 +00:00
Uwe Schindler baefbd33ba LUCENE-3653: Remove extra useless thread in weak CHM test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220705 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 12:14:50 +00:00
Steven Rowe a6702464b3 add resources directory
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220589 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 02:00:28 +00:00
Uwe Schindler 9d8ba277b6 LUCENE-3653: Use no reference queue for get/remove/contains operations, only put (improves pref)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220555 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 22:31:00 +00:00
Uwe Schindler 3ccd4f4e03 LUCENE-3653: Improve the sophisticated™ backwards layers (VirtualMethod) and instantiation cost in AttributeSource/AttributeFactory (new reflection cache using ConcurrentHashMap has lockless get)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220458 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 17:11:06 +00:00
Michael McCandless aee83bf7ee LUCENE-3639: fix a few bugs in shard searching; add basic shard search test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220426 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 15:24:58 +00:00
Michael McCandless 8472b04326 add missing sync
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220383 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 12:37:15 +00:00
Erick Erickson 1ff2096aef Fixes for SOLR-2971, valType now optional for
ExternalFileFields and, if present, types float, pfloat, tfloat 
all accepable.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215503 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 14:53:36 +00:00
Uwe Schindler 9b938f0dcd LUCENE-3652: Fix javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215497 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 14:27:04 +00:00
Erick Erickson 2208b499fa Fix for SOLR-2975, fix tests that failed occasionally
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215487 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 13:46:35 +00:00
Uwe Schindler 53801a53e9 Merged revision(s) 1215483 from lucene/dev/branches/branch_3x: CHANGES.txt
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215484 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 13:18:04 +00:00
Uwe Schindler ac96d90b53 LUCENE-3652: Move org.apache.lucene.messages to QueryParser module
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215480 13f79535-47bb-0310-9956-ffa450edef68
2011-12-17 12:57:41 +00:00
Grant Ingersoll 39f7791817 SOLR-1520: support trie types, fix issues with failing tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215352 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 23:51:12 +00:00
Uwe Schindler e9a2796c85 Add missing consistency check
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215349 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 23:47:16 +00:00
Robert Muir a55f511a77 LUCENE-3650: move o.a.l.index.codecs to o.a.l.codecs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215245 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 19:03:12 +00:00
Simon Willnauer a6cbca19a0 Speed up SegementDocsEnum by making it more friendly for JIT optimizations
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215060 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 08:43:35 +00:00
Robert Muir 18febd69e4 LUCENE-2208: improve charfilter offset testing
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215038 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 04:37:47 +00:00
Robert Muir 5421461aba LUCENE-3374: sometimes turn on NRTCachingDirectory in tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215018 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 01:52:41 +00:00
Chris M. Hostetter b3d2c99128 SOLR-2972: Fix JoinQParser so it doesn't force the 'lucene' parser to be used for the sub query
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1215001 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 00:25:13 +00:00
Chris M. Hostetter 4d75ef3d42 SOLR-1520: revert r1214937 as it breaks several tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214997 13f79535-47bb-0310-9956-ffa450edef68
2011-12-16 00:01:38 +00:00
Grant Ingersoll fde5bdc871 SOLR-1520: support trie types
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214937 13f79535-47bb-0310-9956-ffa450edef68
2011-12-15 19:55:51 +00:00
Uwe Schindler 1ae0ccbcc9 LUCENE-3606: Remove more dead code from SegmentReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214867 13f79535-47bb-0310-9956-ffa450edef68
2011-12-15 17:06:21 +00:00
Michael McCandless fd7c848ef5 revert last commit; maybe there's a real but here...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214758 13f79535-47bb-0310-9956-ffa450edef68
2011-12-15 13:49:55 +00:00
Michael McCandless 909f6533fe don't use slow codecs for this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214747 13f79535-47bb-0310-9956-ffa450edef68
2011-12-15 13:36:46 +00:00
Uwe Schindler 51a8ec6037 LUCENE-3531: remove NOTICE.txt entry
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214555 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 23:44:36 +00:00
Uwe Schindler 0cc80b6e74 LUCENE-3531: Version 2 of the CachingWrapperFilter with deletes/acceptDocs caching
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214551 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 23:37:36 +00:00
Chris M. Hostetter 03762c4be5 SOLR-2956: Fixed inconsistencies in the flags (and flag key) reported by the LukeRequestHandler
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214540 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 23:21:56 +00:00
Michael McCandless 69ed5533dd LUCENE-3638: add sugar to load only specific fields for document from IR/IS.document
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214449 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 20:28:08 +00:00
Steven Rowe 60929a5adb LUCENE-3645: Remove unnecessary array wrapping when calling varargs methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214413 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 19:15:47 +00:00
Uwe Schindler 1b0c37ea9c LUCENE-3644: Use one instance of the listener class also for composite/SlowMultiReader (to prevent filling the CHS of IR). Also don't use FieldCache.DEFAULT from inside FieldCacheImpl, as it makes extension hard. We have "wrapper" reference for that.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214376 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 17:41:18 +00:00
Uwe Schindler b93f0902ce LUCENE-3531: Revert adding Reader/CoreClosedListeners in CachingWrapperFilter
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214349 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 17:16:53 +00:00
Uwe Schindler a2d8c13021 LUCENE-3531: Fix cache lookup with a new WeakIdentityHashMap, also add ReaderClosedListeners.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214274 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 14:52:39 +00:00
Robert Muir d7c7117eda LUCENE-3647: for segments with no docvalues, when promoting to a fixed type we need to use an EmptyFixedSource
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214219 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 12:51:32 +00:00
Robert Muir 4b38791903 check that docvalues type/size are equal
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214160 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 11:17:22 +00:00
Robert Muir 3550d35822 increase test coverage
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1214012 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 01:08:06 +00:00
Robert Muir 1a4c0ff254 LUCENE-3644: fix problems with IR's readerFinishedListener
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1213910 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 20:20:43 +00:00
Robert Muir 0b734cfe20 LUCENE-3622: fix javadocs warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1213878 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 19:19:01 +00:00
Robert Muir 8d7749ea4f LUCENE-3622: separate IndexDocValues interface from implementation (phase 1)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1213844 13f79535-47bb-0310-9956-ffa450edef68
2011-12-13 18:39:06 +00:00