Commit Graph

9017 Commits

Author SHA1 Message Date
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
Yonik Seeley 09a526f57b tests: enable grouping tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1036064 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 14:36:54 +00:00
Robert Muir de3d057abc SOLR-2237: Added StempelPolishStemFilterFactory to contrib/analysis-extras
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035996 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 12:26:15 +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 608e646da9 LUCENE-2631: only change ord if we are changing the reader gen
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035538 13f79535-47bb-0310-9956-ffa450edef68
2010-11-16 05:35:27 +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
Mark Robert Miller 3d3e103188 keep trying on this test...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035517 13f79535-47bb-0310-9956-ffa450edef68
2010-11-16 02:28:57 +00:00
Robert Muir a8768256de LUCENE-2761: specialize payload processing in DandPEnum, speed up scanning through positions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035473 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 22:18:54 +00:00
Yonik Seeley 401ae6a621 LUCENE-2631: avoid redundant checks/sets of readerGen
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035420 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 19:40:33 +00:00
Robert Muir 0123357efa LUCENE-2760: Optimize SpanFirstQuery,SpanPositionRangeQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035397 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 18:41:26 +00:00
Yonik Seeley fd8ab58a85 LUCENE-2631: convert ord[bototmSlot] as well as bottomOrd
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035395 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 18:39:58 +00:00
Simon Willnauer c36161abba LUCENE-2741: Added support for codecs using the same file extension within the same segment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035355 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 17:09:27 +00:00
Simon Willnauer 62f9291625 LUCENE-2741: Added support for codecs using the same file extension within the same segment
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035354 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 17:01:26 +00:00
Mark Robert Miller 467a25a8f5 harden test against slowness (again...)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035274 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 13:46:58 +00:00
Mark Robert Miller e9e615fe9f raise another timeout for this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035240 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 12:05:14 +00:00
Michael McCandless 0630ca3119 LUCENE-2618: if normal merges run at same time as optimize, upgrade them to optimize merges if they involve segments marked for optimize; add random thread yield to MockDirWrapper
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035214 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 10:31:12 +00:00
Uwe Schindler ebad5443b2 LUCENE-2757, LUCENE-2690: Add test for BQ.maxClauseCount checking. Also the original test was missing duplicate terms in the MultiReader case, added this.
This also fixes a "bug" in the TooManyClauses exception which can be seen in failing tests: The message may not contain the value of maxClauses at the time the exception was thrown. Tests have exactly this problem, because they print the message when the default is already restored.


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035205 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 10:15:39 +00:00
Uwe Schindler 6c4f3a10c5 LUCENE-2757: Remove unneeded casts
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035194 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 09:14:39 +00:00
Uwe Schindler 1d0515124e LUCENE-2757: Fix hackish max clause count handling in trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035173 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 08:22:13 +00:00
Yonik Seeley 63555ce48d SOLR-236: grouping - set bottom on the pq if changed
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035137 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 03:57:07 +00:00
Yonik Seeley 7b33f0d80c SOLR-236: grouping - remove redundant setBottom
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035117 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 01:30:54 +00:00
Yonik Seeley fffce11f1a SOLR-236: grouping - fix collectors when sort != group.sort
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035115 13f79535-47bb-0310-9956-ffa450edef68
2010-11-15 00:55:57 +00:00
Uwe Schindler 65c09c5119 LUCENE-2754, LUCENE-2757: Missed to clean up imports
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035103 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 23:48:29 +00:00
Uwe Schindler ac71ebc237 LUCENE-2754, LUCENE-2757: Added a wrapper around MultiTermQueries to add span support: SpanMultiTermQueryWrapper<Q extends MultiTermQuery>. Using this wrapper its easy to add fuzzy/wildcard to e.g. a SpanNearQuery. This patch also refactors all RewriteMethods and Attributes in MTQ (class was unmaintainable).
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035096 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 23:13:46 +00:00
Yonik Seeley 18c317a1e6 SOLR-236: grouping - fix NPE if rows=0, add prototype string grouping speedup
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035074 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 21:34:10 +00:00
Yonik Seeley a73f5e279c SOLR-2236: random testing for grouping
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035064 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 20:45:03 +00:00
Yonik Seeley 19697da59f SOLR-2236: random testing support
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1035060 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 20:19:58 +00:00
Mark Robert Miller d699bec7ee raise another timeout for this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034994 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 13:26:49 +00:00
Michael McCandless 8c1ecb0ef0 fix intermittent fail: prevent unexpected merging
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034977 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 11:09:36 +00:00
Michael McCandless da01024477 fix intermittent fail: prevent unexpected merging
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034975 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 11:01:28 +00:00
Michael McCandless 3a994f36ad LUCENE-2759: fix MockDirWrapper to catch opening file for input that's still open for output; fix 2 cases where we could do that
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034921 13f79535-47bb-0310-9956-ffa450edef68
2010-11-14 00:33:39 +00:00
Yonik Seeley ef0b5cd553 SOLR-236: default group.sort to sort
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034890 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 21:45:58 +00:00
Michael McCandless 6e28ea8fff LUCENE-2758: fix intermittent fail
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034804 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 16:43:12 +00:00
Michael McCandless 5f4872152d don't mark merged reader with 'hasChanges' if delCount == 0
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034763 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 14:23:53 +00:00
Mark Robert Miller 0485fd6351 raise another timeout for this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034752 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 13:18:11 +00:00
Mark Robert Miller 20c7f9064d raise another timeout for this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034646 13f79535-47bb-0310-9956-ffa450edef68
2010-11-13 04:51:31 +00:00
Mark Robert Miller 95d93d52c5 make test more robust to slowness
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034580 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12 21:43:35 +00:00
Simon Willnauer e95fbfd1df Renamed getCodecInfo to getSegmentCodecs for consistency
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034570 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12 21:17:23 +00:00
Robert Muir 69313c1d47 allow static resources to be gced
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034361 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12 12:06:46 +00:00
Michael McCandless 15d4b3d65e LUCENE-2576: change segments_N retry logic to re-list the directory before falling back to segments_(N-1)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034342 13f79535-47bb-0310-9956-ffa450edef68
2010-11-12 11:01:21 +00:00
Shai Erera e71363700c LUCENE-2753: port 3x to trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034140 13f79535-47bb-0310-9956-ffa450edef68
2010-11-11 21:22:24 +00:00
Michael McCandless 2103675ff0 minor improvements to IW's infoStream output, .toString for various classes, etc.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034017 13f79535-47bb-0310-9956-ffa450edef68
2010-11-11 18:08:02 +00:00
Michael McCandless c23af909ad LUCENE-2118: fix separate failure in TestIndexWriter.testOptimizeMaxNumSegments2; cutover to IndexWriter.waitForMerges
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034011 13f79535-47bb-0310-9956-ffa450edef68
2010-11-11 17:58:26 +00:00
Michael McCandless 3701a49475 LUCENE-2118: fix intermittent failure in TestIndexWriterMergePolicy.testMaxBufferedDocsChange
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034007 13f79535-47bb-0310-9956-ffa450edef68
2010-11-11 17:37:36 +00:00
Simon Willnauer b8d51b6ce0 LUCENE-2742: Enable native per-field codec support
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1033577 13f79535-47bb-0310-9956-ffa450edef68
2010-11-10 16:36:31 +00:00
Michael McCandless c715623936 LUCENE-2576: fix one case of intermittent failure (unclosed files when using PreFlex codec)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1033417 13f79535-47bb-0310-9956-ffa450edef68
2010-11-10 11:23:00 +00:00
Robert Muir e3232c3289 this 'Priv' wrapper trick isn't portable (seems to work on sun-only
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1033074 13f79535-47bb-0310-9956-ffa450edef68
2010-11-09 16:34:34 +00:00
Grant Ingersoll 48cfdf0738 trunk only works w/ 1.6
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1033003 13f79535-47bb-0310-9956-ffa450edef68
2010-11-09 15:01:07 +00:00