Commit Graph

2974 Commits

Author SHA1 Message Date
Michael Busch 14f3663f56 Set eol-style to native for BooleanFilterTest.java
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659732 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 00:48:12 +00:00
Michael Busch 0ebfcc663e LUCENE-1187: ChainedFilter and BooleanFilter now work with new Filter API and DocIdSetIterator-based filters.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659635 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 19:25:05 +00:00
Michael Busch 08a2eb4665 LUCENE-1290: Deprecate org.apache.lucene.search.Hits, Hit and HitIterator.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659626 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 18:57:55 +00:00
Michael Busch eb0596c721 LUCENE-1195: Improve term lookup performance by adding a LRU cache to the TermInfosReader.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659602 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 17:20:31 +00:00
Michael Busch a7f1cbc5be Fixed TestIndexReaderReopen.java to fail when a thread hits an error in testThreadSafety().
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659326 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 00:20:32 +00:00
Otis Gospodnetic ce557ee4b3 LUCENE-852: Let the SpellChecker caller specify IndexWriter mergeFactor and RAM buffer size.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659021 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 06:47:36 +00:00
Otis Gospodnetic b4f7c37bd1 LUCENE-1046: Removed dead code in SpellChecker
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659019 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 06:34:18 +00:00
Otis Gospodnetic f68c9544de LUCENE-1183: Optimized TRStringDistance class (in contrib/spell) that uses less memory than the previous version
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659016 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 06:24:55 +00:00
Otis Gospodnetic a379a67875 LUCENE-1152 Fix for calling indexDictionary after clearIndex call
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@659013 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 06:21:17 +00:00
Michael McCandless 2175d84d64 LUCENE-1282: added workaround for nasty JRE bug that strikes when merging very large segments; also added safety to abort the merge (preventing index corruption) if we detect the bug has struck
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@658902 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 22:14:16 +00:00
Michael Busch 4eb8692588 Set eol-style to native for all files in src/java and src/test that did not
have this property set before.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@658136 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 07:40:54 +00:00
Otis Gospodnetic 90be0daa46 - Made PlainTextDictionary(Reader) public from protected
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657728 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 05:45:31 +00:00
Michael Busch b2035b1d9a Add Lucene 2.3.2 section to CHANGES.txt in trunk
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657651 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 22:09:36 +00:00
Michael McCandless 6bafbdf98f LUCENE-1283: factor out ByteSliceWriter from DocumentsWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657397 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 16:49:18 +00:00
Michael McCandless 73ab487b7b fix intermittant failure when random byte sequence creates invalid UTF16 string
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657320 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 08:12:09 +00:00
Otis Gospodnetic f5df30327e - Fixed messed up indentation/tabs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657281 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 01:57:32 +00:00
Otis Gospodnetic 1d5ba345cc - Javadocs fixes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657280 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 01:56:46 +00:00
Otis Gospodnetic d5c708a161 - Renamed vars a bit, so test is easier to understand
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657279 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 01:55:48 +00:00
Otis Gospodnetic a32375551e LUCENE-1060 Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657278 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 01:47:53 +00:00
Grant Ingersoll 7a27cdcbc9 LUCENE-1166: Added token filter for decomposing compound words
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@657027 13f79535-47bb-0310-9956-ffa450edef68
2008-05-16 12:22:50 +00:00
Otis Gospodnetic aa0074f5db LUCENE-1003: Don't let RussianAnalyzer drop numbers.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@656111 13f79535-47bb-0310-9956-ffa450edef68
2008-05-14 05:37:45 +00:00
Otis Gospodnetic b182881092 - Made ant compile-core and build-contrib run again
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@656110 13f79535-47bb-0310-9956-ffa450edef68
2008-05-14 05:29:57 +00:00
Otis Gospodnetic 6a8bef8c74 - Made ant compile-core and build-contrib run again
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@656109 13f79535-47bb-0310-9956-ffa450edef68
2008-05-14 05:29:16 +00:00
Michael McCandless b591e8c580 LUCENE-1282: upgrade an assert to a real check, to work around Sun JRE hotspot bug to prevent index corruption
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@655030 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 08:48:50 +00:00
Michael McCandless 39651e029d LUCENE-510: fix backwards compatibility bug when bulk-merging stored fields from pre-UTF8 segments that contain non-ascii stored fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@654774 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 12:04:46 +00:00
Michael McCandless 5a4f2572c0 fix incorrect javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@654767 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 11:31:51 +00:00
Michael McCandless 8540820fe1 LUCENE-1274: add preparCommit() to IW to do phase 1 of 2-phase commit
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@653878 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 18:41:10 +00:00
Michael Busch 38d1caf56f LUCENE-1277: Remove println in highlighter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@652625 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 18:59:06 +00:00
Grant Ingersoll afa040e9da LUCENE-1276: Fixed contrib highlighter build
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@652471 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 10:34:50 +00:00
Mark Harwood 35c7eb36df Commit of LUCENE-794 patch - adding phrase/span query support to highlighter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@652164 13f79535-47bb-0310-9956-ffa450edef68
2008-04-29 22:07:18 +00:00
Michael McCandless 8f1feaa484 LUCENE-1255: revert this change (allow pos=-1 again) since it's not backwards compatible
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@652116 13f79535-47bb-0310-9956-ffa450edef68
2008-04-29 21:01:55 +00:00
Michael McCandless aecd167b05 LUCENE-1267: record per-segment deletion count in segments file; add maxDoc() & numDocs() in IW; deprecate docCount() in favor of maxDoc()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@651919 13f79535-47bb-0310-9956-ffa450edef68
2008-04-27 11:14:10 +00:00
Michael McCandless 963ec9e522 LUCENE-1270: fix intermittant case where IW.close() can hang after IW.addIndexesNoOptimize is called
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@651026 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 19:37:21 +00:00
Michael McCandless e35d9f6c62 LUCENE-1255: in CheckIndex, accept pos=-1 if index is < 2.4; added NOTE to remind user to turn on assertions for more thorough checking
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@650984 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 18:26:07 +00:00
Doron Cohen abc0d25a52 LUCENE-1157 and LUCENE-1256: HTML changes log, created automatically from CHANGES.txt.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649949 13f79535-47bb-0310-9956-ffa450edef68
2008-04-20 18:29:15 +00:00
Michael McCandless 59c8f9cd76 add warnings to javadoc for IndexModifier.docCount
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649598 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 16:35:08 +00:00
Michael McCandless 074df18090 LUCENE-1266: actually use the doWait param in IndexWriter.optimize(boolean doWait)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649429 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 09:35:44 +00:00
Karl-Johan Wettin 6a4ae85775 minor javadocs change
First paragraph is used as description in javadocs index so I added the sentance from build/pom. And it gave me an excuse to test my karma.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649312 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 22:19:41 +00:00
Michael McCandless 44daebab7c LUCENE-1150: put back public tokenImage/TOKEN_TYPES in StandardTokenizer and WikipediaTokenizer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@648183 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 08:48:41 +00:00
Michael McCandless a6ff3c93df LUCENE-1262: fix issue that causes BufferedIndexInput to return incorrect bytes after exception was hit during refill
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@647639 13f79535-47bb-0310-9956-ffa450edef68
2008-04-13 22:55:17 +00:00
Chris M. Hostetter 360051ec49 clarify slightly confusing comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@647364 13f79535-47bb-0310-9956-ffa450edef68
2008-04-12 02:25:54 +00:00
Michael McCandless 62cf2ecb7f fix typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@645539 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 14:30:34 +00:00
Michael McCandless 5cfd9c8244 LUCENE-1255: if position is negative, silently change it to 0
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@644400 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 16:42:06 +00:00
Michael McCandless 378442872f LUCENE-1254: don't reject segments > maxMergeDocs/Size in IW.addIndexesNoOptimize
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@643303 13f79535-47bb-0310-9956-ffa450edef68
2008-04-01 06:58:42 +00:00
Chris M. Hostetter 21b22f8515 some javadoc building cleanup for contrib/instantiated -- notably moving docs to doc-files
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@643170 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 22:00:57 +00:00
Grant Ingersoll cc955c9748 LUCENE-400: Added ShingleFilter (token based ngram)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@642612 13f79535-47bb-0310-9956-ffa450edef68
2008-03-29 21:11:33 +00:00
Michael McCandless 09b3a56ae2 LUCENE-1251: be sure to close the descriptor even if super.close() hits an exception, in FSIndexOutput.close
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@642339 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 19:10:58 +00:00
Michael McCandless 828333ab52 LUCENE-1247: remove always-true assert
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@642152 13f79535-47bb-0310-9956-ffa450edef68
2008-03-28 09:06:17 +00:00
Otis Gospodnetic 758e123591 - Cosmetics
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@641497 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 19:22:28 +00:00
Michael McCandless 8af3598b74 LUCENE-510: change index format to store strings as true UTF8 not modified UTF8
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@641303 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 13:39:25 +00:00