Commit Graph

4199 Commits

Author SHA1 Message Date
Michael McCandless 4902849fb5 LUCENE-2017: improve javadocs of CloseableThreadLocal; forcefully remove calling threads entry on close
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@831248 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 10:06:54 +00:00
Robert Muir 8861ba2ffd LUCENE-2014: add a thai test to prevent any similar regression
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@831189 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 03:26:44 +00:00
Robert Muir 19e55ea991 LUCENE-1257: port smartchineseanalyzer to java 5
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@831121 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 22:29:50 +00:00
Michael McCandless de0aaadb81 LCUENE-2016: remap invalid U+FFFF char during indexing, to prevent silent corruption
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@831041 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 17:30:46 +00:00
Mark Robert Miller 88d3d41992 LUCENE-2013: SpanRegexQuery does not work with QueryScorer.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@831024 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 16:41:04 +00:00
Robert Muir 1b38f9c24d LUCENE-2014: SmartChineseAnalyzer position increment bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830871 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 09:22:37 +00:00
Uwe Schindler 5c40eb4715 no branching needed, return value of version compare is already boolean
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830868 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 09:18:58 +00:00
Mark Robert Miller 8d1e2ddf0e move default similarity declaration back to top
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830800 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 23:52:47 +00:00
Uwe Schindler 786457c0e3 LUCENE-1257: Generics in contrib/memory, contrib/wordnet (previously memory), contrib/misc, contrib/benchmark
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830790 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 23:21:25 +00:00
Robert Muir 36b65637fc LUCENE-1904: Move wordnet synonym code from contrib/memory to contrib/wordnet
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830699 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 17:49:53 +00:00
Uwe Schindler f2d0d94d7e No need to extend TokenStream here, a simple AttributeSource is enough for single-token-fields. This prevents us from implementing the incrementToken() throwing UOE.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830668 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 16:44:31 +00:00
Uwe Schindler 964bab48d4 LUCENE-2012: Add @Override annotations to the rest of core
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830661 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 16:16:46 +00:00
Michael McCandless 66d8e773b1 LUCENE-1994: fix thread safety of EnwikContentSource and DocMaker
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830488 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 10:06:23 +00:00
Uwe Schindler 578761c635 The variable was not used but initialized. This was caused by merge from 2.9, fixed to use the final boolean.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830456 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 08:01:55 +00:00
Uwe Schindler c0f3e62ed4 No need to use Arrays.deep* methods (there are no nested arrays, the array itsself is strongly typed to a non-array).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830453 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 07:27:32 +00:00
Uwe Schindler 1be4db5d9e One more Thread.holdsLock(writer) assert...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830410 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 00:16:48 +00:00
Uwe Schindler 4f4ffb9589 More Java 5 cleanup (Arrays.hashCode, Arrays.deepEquals, Arrays.deepHashCode)
Also added the commented out "assert !Thread.holdsLock(writer);" in CMS

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830408 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 00:07:22 +00:00
Uwe Schindler 00f4efde1f LUCENE-2011: Remove deprecated Scorer.explain(int) and replace by Weight.explain(IR,int) calls in tests and PhraseQuery/SpanQuery explanations methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830377 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 22:29:41 +00:00
Mark Robert Miller b14fd4bccc credit where credits due ;)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@830000 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 22:21:07 +00:00
Uwe Schindler e4fdf4856e LUCENE-1929: Merge missing changes entry
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829999 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 22:17:51 +00:00
Uwe Schindler 54041dfbaa LUCENE-1929: Merge NumericRangeQuery tests for highlighter from 2.9 branch. The bug was already fixed by a different impl in trunk, but the test was missing.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829995 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 22:06:40 +00:00
Uwe Schindler c61fa48daf LUCENE-1960: Add support for reading Field.Store.COMPRESS fields again and decompress on merge/optimize. Also convert to a new stored file version number.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829972 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 21:16:57 +00:00
Michael McCandless 6a1f2d5729 LUCENE-1973: un-deprecate IndexSearcher.setDefaultFieldSortScoring
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829882 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 18:04:22 +00:00
Michael McCandless 74f872182e fix some javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829817 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 14:55:51 +00:00
Michael McCandless c2bc750e48 LUCENE-2002: move changes entry back to 'API changes'
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829814 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 14:37:25 +00:00
Michael McCandless 2e4dc5b003 LUCENE-2002: move CHANGES entry under 'Changes in back compat policy' section, since it deprecates APIs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829774 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 12:44:02 +00:00
Michael McCandless ea2883c40a LUCENE-2008: javadoc improvements
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829568 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 13:08:50 +00:00
Uwe Schindler fbe28af914 add changes.txt
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829531 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 10:56:09 +00:00
Uwe Schindler 1ccd81ce81 Some more cleanups and removal of deprecated SegmentReader GCJ settings
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829530 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 10:51:53 +00:00
Uwe Schindler 8086aad514 LUCENE-1257: Add generics to highlighter and more for benchmark
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829524 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 10:12:58 +00:00
Uwe Schindler 519095db6e Remove generics for Comparable in FieldDoc again, because we have no type and <?> makes more problems than it helps
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829319 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 08:05:22 +00:00
Uwe Schindler ce4dd93a94 This changes entry was somehow at the wrong position, I think the merge broke it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829276 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 23:14:41 +00:00
Uwe Schindler 6f6afbe1bc LUCENE-2006: Optimization for FieldDocSortedHitQueue
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829274 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 23:09:49 +00:00
Uwe Schindler 7902c4b729 Remove the remaining deprecated ctors from TokenStream API test base class (BaseTokenStreamTestCase). They were used to test old and new TokenStream API.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829244 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 21:21:17 +00:00
Michael McCandless 3b50c11e42 remove TestStressSort
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829241 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 21:15:41 +00:00
Uwe Schindler 1686dac7f9 Generics got lost during merge. Seen by the only unchecked warning (core now compiles without any unchecked warning!)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829231 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 20:52:26 +00:00
Uwe Schindler 35fb2e4950 Fix javadoc problem (there are a lot more, see separate issue). We need some cleanup after removing all deprecated APIs!
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829219 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 20:42:41 +00:00
Michael McCandless 831f665ba8 LUCENE-2002: Fix HighlighterTest to consistently use the same version compat
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829208 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 20:28:56 +00:00
Michael McCandless aaddac8992 LUCENE-2002: add Version to QueryParser & contrib analyzers
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829206 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 20:25:17 +00:00
Mark Robert Miller 0557d2ce5a LUCENE-2003 Changes entry
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829132 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 17:13:21 +00:00
Mark Robert Miller 9609a2cb4d LUCENE-2003: Highlighter doesn't respect position increments other than 1 with PhraseQuerys
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829129 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 17:08:50 +00:00
Grant Ingersoll 0f76b3139d Move Lucene-1708 blurb to back compat. section.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829095 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 15:43:43 +00:00
Uwe Schindler 0a36a22599 Remove my warning and also prevent creation of additional variable. Moved @SuppressWarnings up to the method. Also do some tab->spaces cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829077 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 14:37:05 +00:00
Uwe Schindler 6a06b0f0dd We can only remove this in 3.x at earliest (depending on our policy change).
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829033 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 12:44:44 +00:00
Uwe Schindler 1b59256ab8 LUCENE-1973: Remove deprecated BoostingTermQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829020 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 12:21:43 +00:00
Uwe Schindler a5df94c249 LUCENE-1257: More Java5 updates
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829013 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 11:54:03 +00:00
Uwe Schindler 04d00642e4 LUCENE-1973: Remove Similarity deprecations
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@829002 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23 11:25:48 +00:00
Uwe Schindler a08a64ddaf Fix version constant, if the manifest version does not start with LUCENE_MAIN_VERSION
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@828636 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 10:21:52 +00:00
Uwe Schindler abf2f86302 LUCENE-2004: Constants.LUCENE_MAIN_VERSION may not be inlined in code compiled against Lucene JAR
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@828331 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 06:50:37 +00:00
Robert Muir d1fc6bece6 LUCENE-1359: FrenchAnalyzer tokenstream does not honor the contract of Analyzer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@828298 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 04:03:12 +00:00