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
Yonik Seeley
4194ef01c4
SOLR-2243: support group.limit=0
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1037068 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 22:42:15 +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
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