8315 Commits

Author SHA1 Message Date
Michael McCandless
2ba78a2ba0 LUCENE-2565: don't enter infinite random loop
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@979452 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 21:30:47 +00:00
Robert Muir
2b988eafaa don't generate invalid random regexps: the toString method of RegExp doesnt escape
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@979422 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 20:02:49 +00:00
Michael McCandless
aac4e16774 LUCENE-2554: add comment explaining why we can't assert valid UTF8 when dancing
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@979415 13f79535-47bb-0310-9956-ffa450edef68
history/branches/lucene-solr/preflexfixes
2010-07-26 19:31:34 +00:00
Michael McCandless
a604160149 remove remaining nocommits
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@979327 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 15:36:58 +00:00
Mark Robert Miller
dbbf0489c0 remove dead code
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@979305 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 14:26:48 +00:00
Koji Sekiguchi
071fdc3148 SOLR-1984: typo in javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@979302 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 14:21:47 +00:00
Shai Erera
42634c54f7 LUCENE-2537: merging from 3x
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@979185 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 07:23:12 +00:00
Uwe Schindler
6487d5caf2 remove empty file
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@979059 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 16:23:17 +00:00
Yonik Seeley
da7655c72a SOLR-2015: add boolean attribute autoGeneratePhraseQueries to TextField
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@979049 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 15:13:05 +00:00
Robert Muir
a5430edf83 LUCENE-2458: revert r978898
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@978900 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 16:56:27 +00:00
Yonik Seeley
68ce463907 LUCENE-2458: implement Uwe's suggestion for restoring Solr's default behavior
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@978898 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 16:49:18 +00:00
Robert Muir
249c678054 LUCENE-2458: revert r978879
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@978891 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 16:22:51 +00:00
Robert Muir
9be334589d random codec tests by default
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@978881 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 14:39:26 +00:00
Yonik Seeley
b62cff9fc0 LUCENE-2458: keep Solr's default QP behavior wrt compound words and phrases
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@978879 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 14:38:58 +00:00
Robert Muir
15cc2d6c2a clean up
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@978878 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 14:38:40 +00:00
Michael McCandless
a964231882 LUCENE-2554: pick a random codec for each unit test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@978877 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 14:31:22 +00:00
Michael McCandless
94dbf446ed LUCENE-2554: make PreFlexRW codec use finer-grained impersonation, so we can test dancing NRT/deletions too
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@978872 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 13:40:22 +00:00
Michael McCandless
483266f22b LUCENE-2554: fix PreFlexRW's reader to dynamically decide whether terms should be UTF16 or codepoint
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@978857 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 11:55:26 +00:00
Michael McCandless
b797b021ee remove some dead code; make RIW/RIWC more hairy
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967224 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:40:31 +00:00
Robert Muir
c8fd7fccc1 factor random defaults out of RandomIW into newIndexWriterConfig
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967214 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:25:13 +00:00
Robert Muir
69597e5a87 add support for -Dtests.codec to solr tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967179 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 17:44:21 +00:00
Robert Muir
9098d7ea17 add support for -Dtests.codec=random... all core tests pass with this
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967177 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 17:33:26 +00:00
Robert Muir
68fe4bfc74 fix the core tests to pass (with any -Dtests.codec). pull codec randomization from RIW... we should support -Dtests.codec=random instead!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967165 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 17:09:00 +00:00
Robert Muir
3582913027 remove nocommits, this isnt really evil
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967137 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 15:41:43 +00:00
Michael McCandless
c3627f9205 LUCENE-2554: add some verbosity to TRR2
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967135 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 15:32:33 +00:00
Robert Muir
af4a9deb16 commit my current state
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967130 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 15:26:25 +00:00
Michael McCandless
7216e5b7d2 LUCENE-2554: making branch for faster iterations
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@967126 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 15:17:01 +00:00
Robert Muir
2fe80c49e6 warn if you fix a random seed (so we dont leave the test de-randomized)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@967080 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 12:47:25 +00:00
Mark Robert Miller
cec16f399a SOLR-2009: Contrib ant test targets do not respect sys props testcase,testpackage,and testpackageroot
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966880 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 22:17:16 +00:00
Robert Muir
c6432e97a7 add randomRealisticUnicodeString, all chars in the same unicode block
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966878 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 22:15:36 +00:00
Uwe Schindler
55b373f5ed As BytesRef has now native order use them in numeric tests. The contents are raw byte[] and no strings, it should compare native
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966633 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 13:02:20 +00:00
Robert Muir
06a753ff72 add random prefixquerytest (hopefully easy to debug preflex issues with)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966574 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 11:00:48 +00:00
Robert Muir
907cd33672 fix some bytesref abuse in these tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966546 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 09:08:01 +00:00
Yonik Seeley
40028d3f1a LUCENE-2542: remove final from some TopDocsCollector methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966354 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 18:48:30 +00:00
Robert Muir
824f5bbefe LUCENE-2514: consume tokenstreams in QP like the indexer: dont create intermediate string
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966254 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 14:37:09 +00:00
Uwe Schindler
0b475af7dc revert accidental commit by buschmi
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966180 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 11:02:53 +00:00
Michael Busch
fc970ef01c LUCENE-2324: Committing second version of the patch to the real-time branch. It's not done yet, but easier to track progress using the branch.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@966168 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 10:27:20 +00:00
Grant Ingersoll
f18502ed41 SOLR-1568: moved DistanceUtils up one package, as it isn't tier specific
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965984 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 20:17:54 +00:00
Chris M. Hostetter
f521e84c5a SOLR-2008: avoid possible RejectedExecutionException w/autoCommit by making SolreCore close the UpdateHandler before closing the SearchExecutor
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965938 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 18:06:39 +00:00
Uwe Schindler
f608d4efc6 LUCENE-2523: Modify the test to check only for failure on IR.open(), add TODO to make IW.ctor() fail early, too
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965883 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 15:40:54 +00:00
Uwe Schindler
72d4191588 LUCENE-2523: Add IndexFormatTooOldException and IndexFormatTooNewException
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965868 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 14:55:47 +00:00
Robert Muir
cc5882ab75 LUCENE-2458: queryparser turns all CJK queries into phrase queries
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965585 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 18:58:30 +00:00
Robert Muir
7912d72cfe convert some more tests to junit4
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965330 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 00:06:18 +00:00
Robert Muir
1f10f8ba7f SOLR-2002: improve TestReplicationHandler
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965327 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 23:58:48 +00:00
Uwe Schindler
828d00a3c7 LUCENE-2549: Fix TimeLimitingCollector#TimeExceededException to record the absolute docid
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965299 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 22:02:34 +00:00
Robert Muir
898430be9b SOLR-2002: add timeouts for this test in case the site is having problems
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965230 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 14:09:06 +00:00
Robert Muir
bd1a237061 print exactly which files cant be removed (e.g. spellchecker/xyz.cfs) when cleaning up test temp data
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965222 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 12:55:50 +00:00
Uwe Schindler
658c5f01bd Generics und Classloader Policeman fixes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965218 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 12:25:16 +00:00
Uwe Schindler
19a14cbefa A small improvement in FuzzyTermsEnum, as the ArrayList was initially allocated with one element less so internal array reallocated every time. This removes the use of ArrayList at all.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965216 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 12:08:21 +00:00
Uwe Schindler
42aa9a20b3 LUCENE-2541: Improve readability of TestNumericUtils by using autoboxing and varargs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@965110 13f79535-47bb-0310-9956-ffa450edef68
2010-07-17 17:16:14 +00:00