Commit Graph

916 Commits

Author SHA1 Message Date
Robert Muir 0bfee2fb2c LUCENE-2836: add FieldCacheRewriteMethod
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1055130 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 18:22:51 +00:00
Robert Muir f012c2d44d LUCENE-2845: move contrib/benchmark to modules/benchmark
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054995 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 12:28:10 +00:00
Mark Robert Miller 64e6e196ac update comment about queries silently failing
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054713 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 19:19:56 +00:00
Michael McCandless eaf2af80a2 pulsing codec was failing to forward finishDoc to the wrapped codec
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054500 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 23:51:38 +00:00
Uwe Schindler adfabc3df7 LUCENE-2838: ConstantScoreQuery now directly supports wrapping a Query instance for stripping off scores
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054406 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 13:47:59 +00:00
Steven Rowe bb65710fa4 Fix typos in not-yet-released sections
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054150 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 17:51:47 +00:00
Steven Rowe deb1e81db0 Fix typos in not-yet-released sections
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054147 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 17:47:06 +00:00
Steven Rowe f0270072c4 LUCENE-2611: CHANGES.txt entry
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054143 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 17:32:53 +00:00
Robert Muir d55a467fbd enforce resource handling, prevent test interference by running in a jvm-unique CWD (under build/, same as tempDir)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054015 13f79535-47bb-0310-9956-ffa450edef68
2010-12-30 22:54:16 +00:00
Robert Muir 1b671cfba3 fix nasty bug (doesnt affect any codecs today): respect bytesref offset
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1053253 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 04:47:23 +00:00
Robert Muir 061eba1e4f remove trickiness, hopefully unbreak clover build
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1053236 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 01:28:11 +00:00
Robert Muir f16706f50d LUCENE-2822: don't mask the bug (or encourage similar bugs+masking), instead @Ignore so we get a loud warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1053067 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 13:50:56 +00:00
Robert Muir 79133e4f04 when compiling, don't include whatever happens to be in ant's runtime in the classpath
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052991 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 03:13:14 +00:00
Robert Muir 25b3f63fbd LUCENE-2825: Change FSDirectory.open to return MMap on 64-bit Solaris
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052980 13f79535-47bb-0310-9956-ffa450edef68
2010-12-26 22:55:32 +00:00
Robert Muir 75a5bde690 LUCENE-2833: upgrade contrib/ant's tidy jar
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052974 13f79535-47bb-0310-9956-ffa450edef68
2010-12-26 22:31:10 +00:00
Robert Muir 8696f549d4 LUCENE-2020: Remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052926 13f79535-47bb-0310-9956-ffa450edef68
2010-12-26 19:16:42 +00:00
Robert Muir 7ae1f29704 remove dead code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052916 13f79535-47bb-0310-9956-ffa450edef68
2010-12-26 17:03:59 +00:00
Robert Muir 5ee58ef139 LUCENE-2819: don't report problems about threads that were spawned before our tests (such as eclipse test-runner threads)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052898 13f79535-47bb-0310-9956-ffa450edef68
2010-12-26 15:31:22 +00:00
Shai Erera f9854132c6 LUCENE-2830: Use StringBuilder instead of StringBuffer in benchmark (trunk)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1052182 13f79535-47bb-0310-9956-ffa450edef68
2010-12-23 06:52:55 +00:00
Robert Muir 5c2b882a7e add a hack (sorry) to print out if entire test classes are @Ignored
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1051891 13f79535-47bb-0310-9956-ffa450edef68
2010-12-22 13:36:06 +00:00
Michael McCandless e18dcbf1b7 LUCENE-2826: LineDocSource assigns stable docids; add 2 NumericFields derived from date in the line doc file
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1051305 13f79535-47bb-0310-9956-ffa450edef68
2010-12-20 22:18:16 +00:00
Michael McCandless fda2483fb6 fix infoStream formatting to always report double precision MB usage
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1051067 13f79535-47bb-0310-9956-ffa450edef68
2010-12-20 11:19:30 +00:00
Michael McCandless 5b3250dc37 fix IW infoStream to not include doc store files size when reporting flushed postings size of new segment vs RAM size
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1051058 13f79535-47bb-0310-9956-ffa450edef68
2010-12-20 10:53:57 +00:00
Michael McCandless 534e34dc51 typo in jdoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1051049 13f79535-47bb-0310-9956-ffa450edef68
2010-12-20 10:49:02 +00:00
Michael McCandless 765eab4008 LUCENE-2820: fix CMS to stop its threads without deadlocking!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1051041 13f79535-47bb-0310-9956-ffa450edef68
2010-12-20 10:35:30 +00:00
Michael McCandless 65b27c2adb LUCENE-2820: revert until I find the cause of the deadlock
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050899 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 17:07:24 +00:00
Michael McCandless 5f9bb3f0a8 LUCENE-2820: fix CMS to stop all threads during close
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050853 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 13:57:50 +00:00
Michael McCandless ba6126ce58 more verbosity
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050827 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 12:16:26 +00:00
Michael McCandless c0f1b161a7 LUCENE-2811: set merged segment's hasVectors according to FieldInfos not merged SegmentInfos
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050813 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 11:23:59 +00:00
Michael McCandless 89d6a37d48 LUCENE-1737: set up FieldInfos correctly the when we open a pre-4.0 index
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050790 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 10:17:50 +00:00
Robert Muir b5726a4267 LUCENE-2816: MMapDirectory speedups
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050737 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 00:15:28 +00:00
Robert Muir aae5cff6dd speed up test: convert to junit4
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050733 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 23:13:03 +00:00
Michael McCandless 5a53f2b7ed LUCENE-1737: set up FieldInfos correctly the when we open a pre-4.0 index; pass FieldInfos to SegmentMerger
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050728 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 22:38:02 +00:00
Robert Muir 190a480a47 LUCENE-2819: print the reproduce-with information when a test leaves threads running (but don't fail yet)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050725 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 21:47:56 +00:00
Robert Muir fb7f94b419 LUCENE-2819: set this before interuppting also, to prevent false fails
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050718 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 21:20:46 +00:00
Robert Muir 50fe69c091 LUCENE-2819: give rogue-threads left running after the test 1000ms to die naturally before we clear their exception handler and interrupt() them... perhaps they will fail nasty
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050699 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 19:43:46 +00:00
Robert Muir 623fd7bcd7 LUCENE-2819: prevent 'collateral damage' from threads in tests, warn about thread resource leaks
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050697 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 19:14:55 +00:00
Michael McCandless 8584e1016f LUCENE-2814: stop writing shared doc stores
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050687 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 18:03:28 +00:00
Michael McCandless b9777a3a46 LUCENE-2811: fix bug in IndexWriter.addIndexes(Directory[]) caused by SI.hasVector
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050655 13f79535-47bb-0310-9956-ffa450edef68
2010-12-18 16:03:58 +00:00
Michael McCandless 66b2c016b0 LUCENE-2811: switch version numbers on trunk due to 3.x index format change; fix hasVectors check to work correctly when doc stores are compound file
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050440 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 16:16:39 +00:00
Yonik Seeley 2280dde754 LUCENE-2815: fix MultiFields thread safety, don't cache null terms(field)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050415 13f79535-47bb-0310-9956-ffa450edef68
2010-12-17 15:15:01 +00:00
Yonik Seeley b7a25aeab6 javadoc: clarify that getDeletedDocs is published safely
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050222 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 23:18:59 +00:00
Michael McCandless c9a903a4f9 improve verbosity of TestNRTThreads
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050084 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 18:11:29 +00:00
Michael McCandless ef8e74541a LUCENE-2680: also print if deletes touched 0 terms
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1050063 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 17:24:09 +00:00
Michael McCandless 35e7a41aeb LUCENE-2680: print to infoStream upper bound on how many docIDs we deleted; useful for seeing false deletes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049918 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 11:01:37 +00:00
Michael McCandless 60f0a9be8a LUCENE-2811: simplify tracking of hasVectors during merge
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049502 13f79535-47bb-0310-9956-ffa450edef68
2010-12-15 11:06:07 +00:00
Robert Muir c541f29f7e LUCENE-2804: fix newFSDirectory so the tests work with -Dtests.directory=RAMDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049413 13f79535-47bb-0310-9956-ffa450edef68
2010-12-15 04:18:12 +00:00
Michael McCandless 7065133f3a LUCENE-2811: use boolean for SI.hasVectors
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049187 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 17:30:38 +00:00
Robert Muir 94848afc65 improve the random handling in these tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049144 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 16:24:16 +00:00
Robert Muir 1d1c5ec67d initialize random statically with a fixed seed, just in case someone uses it before @beforeClass runs, e.g. static int i = random.nextInt();
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049132 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 15:41:51 +00:00
Yonik Seeley d0b175a01b MTQ - null can be a valid comparator for newTermComp too
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049116 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 14:52:03 +00:00
Robert Muir d51dd5017e Use stderr (not stdout) consistently for all messages
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049107 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 14:28:57 +00:00
Michael McCandless 167e0b8a8a on exception close any opened per-field fieldsProducers
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1049039 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 11:05:00 +00:00
Robert Muir 5d030954b0 update the reproduce-with logic to the new defaults (randomPerField)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045324 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 19:23:57 +00:00
Robert Muir 73f2e63037 add Apple to this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045323 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 19:21:56 +00:00
Michael McCandless 1ca059706e LUCENE-2811: SegmentInfo now tracks whether a segment wrote term vectors
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045322 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 19:20:32 +00:00
Uwe Schindler fbab97a0f1 LUCENE-2792: Revert generic ArrayUtil.grow(T[]) for now and add unchecked code back into FST package
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045319 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 19:17:21 +00:00
Michael McCandless 1cfb936649 make test more evil
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045315 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 19:12:03 +00:00
Michael McCandless 64e19107d9 LUCENE-2813: only throw the mock failure into the main thread
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045310 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 19:05:23 +00:00
Michael McCandless 4aa908e6ad add verbosity to test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045266 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 18:00:35 +00:00
Michael McCandless 625f60388d LUCENE-2812: fix IndexReader.indexExists to return false when segments_N file cannot be read
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045212 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 16:09:01 +00:00
Michael McCandless 8535534a0d LUCENE-2674: avoid Object.clone in Standard codec's term state
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045081 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 11:52:28 +00:00
Michael McCandless d2665fd86e use more efficient quadratic hash impl; remove dead code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045053 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 10:22:35 +00:00
Robert Muir 5106f914e8 avoid synthetic method call access for things like 'bottom' in these comparators
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045048 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 09:54:19 +00:00
Robert Muir b6a05b1a23 LUCENE-2792: revert slowdowns on -client vms that are unrelated to this issue
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1045012 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 03:32:09 +00:00
Michael McCandless a586a6d741 fix silly typo in comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044940 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 22:11:31 +00:00
Michael McCandless 0db62822e0 drop run time to [hopefully] avoid OOME
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044891 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 19:17:20 +00:00
Uwe Schindler bc72163b4c prepare Hudson's large line doc file
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044867 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 18:04:25 +00:00
Uwe Schindler 3da3f2fad2 Clean up duplicate constants in trunk (3.x variant and a new one from trunk, unified to 3.x version). Also found one more ArrayUtil.grow-use-case
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044854 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 17:10:39 +00:00
Steven Rowe da38e95b4c Switch IndexWriter c-tor to use IndexWriterConfig (otherwise it won't compile)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044835 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 15:49:07 +00:00
Michael McCandless 994aaec2ef LUCENE-2792: add FST impl
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044834 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 15:36:08 +00:00
Uwe Schindler c45253df51 fix sequential test output
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044660 13f79535-47bb-0310-9956-ffa450edef68
2010-12-11 14:16:21 +00:00
Michael McCandless bbf683cdbe LUCENE-2680: buffer pending deletes by segment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044635 13f79535-47bb-0310-9956-ffa450edef68
2010-12-11 11:07:01 +00:00
Michael McCandless cf12c2d1d3 LUCENE-2809: use del count from reader if it's pooled, in IW.numDocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044505 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:55:19 +00:00
Robert Muir ab3b6ced80 add test for IW on jre crash
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044328 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 12:31:16 +00:00
Robert Muir 790a492be3 fix bug where @Test A::test(), B extends A, B::test() without @Test would be run twice
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044315 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 12:01:05 +00:00
Michael McCandless 14f4e0475d fix false test failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044257 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 09:52:30 +00:00
Shai Erera cdf6350cd6 Harden TestSearchWithThreads to not fail if machine was slow (trunk)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044100 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 19:26:02 +00:00
Michael McCandless b24f2e33d7 LUCENE-2768: add line docs file so tests can easily run for longer on real data; add threaded NRT stress test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044098 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 19:22:33 +00:00
Michael McCandless 5082d68785 add missing IW.close(false) to test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044094 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 19:16:19 +00:00
Simon Willnauer fc13ac3112 use codec ID to create postings file in SimpleTextCodec
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044089 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 19:00:59 +00:00
Robert Muir 013cc3e216 print the reproduce line too, for uncaught exceptions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044069 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 18:28:54 +00:00
Robert Muir 621cd9955e print seed/debug info on uncaught exceptions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044066 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 18:23:10 +00:00
Michael McCandless c2305ff91b missing copyright
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044064 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 18:20:34 +00:00
Shai Erera c669127dc7 LUCENE-2804: port to trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044008 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 15:46:23 +00:00
Yonik Seeley f6d9b703d6 LUCENE-2671: optimizations for numeric sort-missing-last
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1043820 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 02:05:58 +00:00
Robert Muir f0f1d62071 when running sequential (e.g. -Dtestcase) use a plain formattter
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1043693 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 21:42:34 +00:00
Simon Willnauer 064e8dc60a LUCENE-2802: NRT DirectoryReader returned incorrect values from getVersion, isOptimized, getCommitUserData, getIndexCommit and isCurrent due to a mutable reference to the IndexWriters SegmentInfos
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1043277 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 02:02:02 +00:00
Simon Willnauer 6c9052d231 LUCENE-2805: SegmentInfos shouldn't blindly increment version on commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1043148 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 17:57:14 +00:00
Robert Muir 620b2a0619 LUCENE-2747: Deprecate/remove language-specific tokenizers in favor of StandardTokenizer
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1043114 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 16:19:17 +00:00
Yonik Seeley 5b2e0f786b LUCENE-2803: ignore deleted docs when populating field cache
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042888 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 01:46:20 +00:00
Robert Muir 0308402397 LUCENE-2791: set the optimal buffersize by default
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042373 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 15:24:34 +00:00
Robert Muir 4e44804c38 the string can be null, for example failed assertions getMessage(), dont throw NPE
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042359 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 14:24:02 +00:00
Shai Erera 9597e666ad LUCENE-2790: replace Version.LUCENE_40 with TEST_VERSION_CURRENT
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042309 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 10:42:33 +00:00
Shai Erera 7439439fd7 LUCENE-2790: added CHANGES entry
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042278 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 04:13:52 +00:00
Robert Muir f87ca310ec LUCENE-2797: Upgrade icu to 4.6
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042185 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 14:08:03 +00:00
Shai Erera 30af48bda8 LUCENE-2790: IndexWriter should call MP.useCompoundFile and not LogMP.getUseCompoundFile
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042101 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 05:58:35 +00:00
Robert Muir 7249ebe483 use less RAM/reclaim for the formatter console buffer (e.g. VERBOSE/logging)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1042008 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 21:18:51 +00:00
Robert Muir 8ec36c3f56 LUCENE-2787: disable atime for DirectIOLinuxDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1041954 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 18:59:44 +00:00
Robert Muir aecb6709a7 LUCENE-2791: cleanup for no-copy case, remove VERBOSE prints in tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1041914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 17:09:49 +00:00
Robert Muir 8352332b1d LUCENE-2791: add WindowsDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1041844 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 14:54:27 +00:00
Shai Erera 49508c277b LUCENE-2779: fix listAll()
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1041039 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 15:03:27 +00:00
Uwe Schindler 86d8937f3a Clean up changes my merging in 2.9/3.0 fixes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1041007 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 13:37:53 +00:00
Michael McCandless e7214a0f6f LUCENE-1737: make field name -> number congruent so we always use bulk merge for merging doc stores
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040940 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 10:46:46 +00:00
Michael McCandless f1ce9abcfb LUCENE-2785: add new TotalHitCountCollector (only counts hits); don't allow numHits=0 to TSDC or TFC
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040935 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 10:25:38 +00:00
Michael McCandless 297b3b75c4 remove dead code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040933 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 10:22:37 +00:00
Robert Muir 88a97b22f8 LUCENE-2781: remove nocommits, this is a TODO if we want more test coverage
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040465 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 11:34:16 +00:00
Robert Muir a58c26978f LUCENE-2781: drop deprecations from trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040463 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 11:22:39 +00:00
Michael McCandless 14305d9e3c fix false random test failure (take 2)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040447 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 09:22:02 +00:00
Robert Muir 04a44b515d LUCENE-2784: Change all FilteredTermsEnum impls into TermsEnums decorators
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040379 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 01:22:15 +00:00
Robert Muir 937a9981d1 don't use the slowwrapper for all of these tests... just the ones that require it
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040376 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 01:06:12 +00:00
Michael McCandless ef914b348a fix false random test failure; make private random instance for RandomIndexWriter and MockDirWrapper so tests are reproducible from seeds when using eg CMS
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040290 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 21:01:19 +00:00
Shai Erera 7f443f67ea LUCENE-2779: Use ConcurrentHashMap in RAMDirectory
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040138 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 15:07:41 +00:00
Robert Muir 4c724b958b SOLR-2257: fix contrib/spellchecker to be deterministic by adding a tertiary comparison (term text)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1040064 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 11:07:05 +00:00
Koji Sekiguchi 115ef9b8dc LUCENE-2393: use class.getName()
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039967 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 22:40:47 +00:00
Koji Sekiguchi 522a98f6a0 LUCENE-2393: fix package name in usage message
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039962 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 22:16:29 +00:00
Michael McCandless 46d2aa6f12 fix false test failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039917 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 18:26:45 +00:00
Robert Muir 031237d921 make RandomCodecProvider insensitive to the order of fields being indexed... its a defined mapping now computed up front in ctor
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039869 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 11:57:47 +00:00
Robert Muir feb3a59875 make sure tests.verbose works in solr, print test params when verbose is set
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039868 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 11:08:43 +00:00
Uwe Schindler 668fcb76f2 Fix javadoc warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039773 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:22:47 +00:00
Michael McCandless d7fe260c11 fix false intermittent test failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039759 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 21:01:14 +00:00
Michael McCandless cdab6ed653 LUCENE-2782: fix rare thread hazard with IW.commit; also make tests slightly more evil
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039737 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 19:38:41 +00:00
Michael McCandless 6ca2755ae7 remove dead code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039688 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 14:18:54 +00:00
Simon Willnauer 4067f5aaad LUCENE-2777: Revise PagedBytes#fillUsingLengthPrefix* methods names
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039382 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 14:36:10 +00:00
Michael McCandless 57a7862f82 LUCENE-2776: don't create term vectors files if no doc uses term vectors
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039314 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 11:25:42 +00:00
Shai Erera b57c84611b LUCENE-2778: port from 3x
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039156 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 19:42:50 +00:00
Michael McCandless 66c8234469 prevent too many open files in test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039068 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 15:12:29 +00:00
Simon Willnauer 3c47af1bf0 fixed toString method for SegmentCodecs to print the actual codecs used
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1039001 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 11:05:40 +00:00
Simon Willnauer 2d3849f0b4 removed unnecessary import
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1038998 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 10:52:31 +00:00
Michael McCandless 86922c495c LUCENE-2773: don't de-optimize an optimize index that's already in CFS format
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1038785 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 19:48:18 +00:00
Michael McCandless a1678b7d81 LUCENE-2773: don't build compound files for large merged segments (by default); default maxMergeMB to 2GB
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1038562 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 11:36:09 +00:00
Michael McCandless fb4bb95ef2 fix intermittent test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037458 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 14:10:47 +00:00
Michael McCandless 3f73a2ec04 fix intermittent false test fail
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037429 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 11:51:31 +00:00
Michael McCandless 7853af4298 fix intermittant false test fail
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037406 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 10:28:39 +00:00
Uwe Schindler 0b1a67945b LUCENE-2772: SlowMultiReaderWrapper should be closeable. The wrap() method was removed, so even for 1-segment indexes its better to wrap which is no real overhead at all.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037294 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 18:46:55 +00:00
Michael McCandless 88e48eb867 LUCENE-2764: tests use random codec per field
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037226 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 14:39:09 +00:00
Michael McCandless fc9c09ea1e factor out test method to configure IW to reduce open file count
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037223 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 14:27:46 +00:00
Michael McCandless bd4a69fb94 LUCENE-2762: fix IW to not hold open but deleted files when CFS is true
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037154 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 10:11:29 +00:00
Uwe Schindler 3430ee0ea5 LUCENE-2770: Optimize memory allocation on norms merging
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037077 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 23:18:59 +00:00
Michael McCandless 23f3a7c311 fix jdoc typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036986 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 19:20:47 +00:00
Uwe Schindler 7a86d09aea LUCENE-2769: FilterIndexReader in trunk does not implement getSequentialSubReaders() correctly
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036977 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 18:49:54 +00:00
Uwe Schindler 24178a6eb8 LUCENE-2770: Make SegmentMerger always work on atomic subreaders, even when IndexWriter.addIndexes(IndexReader...) is used with DirectoryReaders or other MultiReaders. This saves lots of memory during merge of norms
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036970 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 18:22:04 +00:00
Robert Muir 58f7005a8e LUCENE-2764: switch existing tests to per-field API
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036583 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 19:26:36 +00:00
Robert Muir 90323ccff5 LUCENE-2764: back out temporarily for now
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036570 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 18:47:21 +00:00
Robert Muir 6a2955fc61 improve readability: no bug since getStartPoints numbered the states anyway
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036548 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 17:33:54 +00:00
Robert Muir 30c2ff16b6 remove code duplication by making getSortedTransitions public
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036544 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 17:28:27 +00:00
Simon Willnauer a5d73e7dec LUCENE-2764: Allow tests to use random codec per field
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036543 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 17:28:27 +00:00
Robert Muir e60764241b LUCENE-2768: add support to LuceneTestCase for @Nightly annotated tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036088 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 15:58:55 +00:00
Michael McCandless 204abfb17d LUCENE-2767: add 2 missing sync's in IW when it invokes IFD
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035651 13f79535-47bb-0310-9956-ffa450edef68
2010-11-16 15:03:50 +00:00
Yonik Seeley fdff9344de LUCENE-2631: only change ord if we are changing the reader gen
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035535 13f79535-47bb-0310-9956-ffa450edef68
2010-11-16 05:31:51 +00:00