Commit Graph

1997 Commits

Author SHA1 Message Date
Michael McCandless 4b6474f60c LUCENE-1654: IndexWriter now records basic diagnostics into each segment it writes; commit metadata upgraded from String to Map<String,String>
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@778490 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 20:07:24 +00:00
Michael McCandless 78659bb804 LUCENE-1655: get unit tests back to 1.4 only
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@778024 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23 21:00:03 +00:00
Michael McCandless 28fe2523d9 LUCENE-1647: fix case where IndexReader.undeleteAll would make the segment's deletion count incorrect
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@777686 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 19:57:53 +00:00
Michael McCandless caeedf1233 LUCENE-1636: catch null input passed to AttributeSource ctor
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@777525 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 13:52:28 +00:00
Michael McCandless 83e440bf6d LUCENE-1636: make TokenFilter.input final
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@777197 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 17:36:53 +00:00
Michael McCandless 7c071d5c8e LUCENE-1648: carry over hasChanges/deletionsDirty/normsDirty/pendingDeleteCount when a SegmentReader w/ pending changes is cloned
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@777080 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 11:45:21 +00:00
Michael McCandless 0769f8130a don't let new merges start after finishMerges when closing
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@776877 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 21:54:35 +00:00
Michael McCandless a4c96b1738 LUCENE-1645: clone child SegmentReaders on reopening/cloning MultiSegmentReader so changes remain private
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@776819 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 19:38:59 +00:00
Michael McCandless 2f675d1e27 clarify constantScoreRewrite for MultiTermQuery/RangeQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@776805 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 18:46:55 +00:00
Uwe Schindler 6156cc18a4 LUCENE-1641: Correct spatial and trie documentation links in JavaDocs and website
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@776190 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 05:11:26 +00:00
Michael McCandless af71c1829d LUCENE-1640: fix MockRAMDir's internal synchronization (used only by unit tests)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@776053 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 19:07:32 +00:00
Michael McCandless 571a058767 LUCENE-1634: add calibrateSizeByDeletes to LogMergePolicy
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@775489 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16 15:58:36 +00:00
Michael McCandless 130c568b44 LUCENE-1638: fix thread hazard when autoCommit=true and multiple threads are committing
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@775249 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 17:30:43 +00:00
Yonik Seeley ca5a7436fa LUCENE-1596: check that enum and termdocs came from same reader before invoking optimization
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@775201 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 15:50:12 +00:00
Yonik Seeley f4415a3924 LUCENE-1596: MultiTermDocs speedup when set with MultiTermDocs.seek(MultiTermEnum)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@774846 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 16:40:23 +00:00
Mark Robert Miller cc240447d4 pendingOutput is a bit generic for a field in a large class - changed to pendingSegnOutput
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@774626 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 03:57:09 +00:00
Michael McCandless 549996ec70 fix javadoc typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@774289 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 12:16:35 +00:00
Yonik Seeley dc0ba58d0e LUCENE-1633: fix toString typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@773863 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 12:21:21 +00:00
Michael McCandless d4f9809520 LUCENE-1593: optimize core Collectors for in-docID-order scorer case
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@773194 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 10:36:41 +00:00
Michael McCandless 4a41b8c229 LUCENE-1625: properly set openReaderPassed in CheckIndex
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@773190 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 10:21:41 +00:00
Mark Robert Miller 3c434afb8f LUCENE-1621: deprecate MultiTermQuery:getTerm
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@772156 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 11:42:05 +00:00
Michael McCandless 703f1d794b add getters to FSD; change listAll to directly create String[]
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@771260 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 10:16:21 +00:00
Michael McCandless 3a3223639c LUCENE-1618: added FileSwitchDirectory, which will be used for NRT readers in IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770841 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 22:12:24 +00:00
Michael McCandless a068b83719 LUCENE-1623: fix case that was swallowing IOException; use .clear() instead of creating new ArrayList/HashMap
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770839 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 22:08:43 +00:00
Chris M. Hostetter 582356dc2e LUCENE-1494: Added FieldMaskingSpanQuery which can be used to cross-correlate Spans from different fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770794 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 19:14:31 +00:00
Michael McCandless ab1254b4e6 fix Bollean -> Boolean typo
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770715 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 15:34:43 +00:00
Michael McCandless 311640cd35 LUCENE-1623: properly handle back-compatibility of field names with non-ascii characters
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770625 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 10:37:08 +00:00
Michael McCandless baa4034c01 LUCENE-1624: don't write a new empty commit when create=true and autoCommit=false on creating IndexWriter, unless dir has no index yet
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770615 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 10:25:52 +00:00
Chris M. Hostetter 9620458453 another bit of sanity checking for queries: rewriting should be equal to cloning and rewriting
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770483 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 23:18:13 +00:00
Michael McCandless b58e470eb7 LUCENE-1611: fix case where OutOfMemoryException in IndexWriter could cause infinite merging to happen
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@770414 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 19:50:34 +00:00
Michael McCandless 888a897063 LUCENE-1616: switch to single setOffset API
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769543 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 21:17:38 +00:00
Michael McCandless e4d9711c97 remove dead code (exceptions list) from ConcurrentMergeScheduler; add comment to the 250 msec sleep
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769533 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 20:59:44 +00:00
Michael McCandless 72d1873533 LUCENE-1604: allow IndexReader.norms to return null if the field has no norms; this is off by default but will be hardwired to on in 3.0
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769524 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 20:38:47 +00:00
Michael McCandless f3189d8063 LUCENE-1617: add -Dtestpackage=XXX and -Dtestpackageroot=lucene to run a package's tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769522 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 20:23:52 +00:00
Michael McCandless 8c8500d1f8 make default exception handler in ConcurrentMergeHandler pause for 250 msec after each exception, to prevent saturating CPU
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769431 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 15:12:53 +00:00
Michael McCandless ea90d1152d add missing interrupt restore on InterruptedException
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769409 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 14:05:43 +00:00
Michael McCandless 3b71cc921a LUCENE-1619: remove unnecessary initTermBuffer()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769300 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 08:46:25 +00:00
Michael McCandless 984ac64054 add defensive asserts for the indexInterval / skipInterval in tis/tii files
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@769294 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 08:33:37 +00:00
Michael McCandless 6fd8d227d9 LUCENE-1615: remove some more deprecated uses of Fieldable.omitTf
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768908 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 09:34:05 +00:00
Michael McCandless 65fd24fbc4 LUCENE-1610: fix changes-to-html to properly format <code>...</code>
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768427 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 22:21:38 +00:00
Mark Robert Miller b839a65395 move detectType to SortField
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768385 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 17:59:04 +00:00
Michael McCandless 91dcc5cfcb LUCENE-1516: add missing getter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768378 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 17:32:30 +00:00
Mark Robert Miller b8bb58c1ca put in warning about fvhq not doing auto resolution on the SortFields passed to it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768371 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 17:00:39 +00:00
Otis Gospodnetic 09c6c1a44c - Fixed javadoc and some crazy indentation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768337 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 15:51:31 +00:00
Mark Robert Miller 2bed56df6a put back auto resolution that LUCENE-1483 moved out - needed for those using fshq without indexsearcher
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@768275 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 12:30:10 +00:00
Doron Cohen 6a57acf9d4 update to search/function javadocs.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@767283 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 20:19:55 +00:00
Michael McCandless 0a828c2f9d LUCENE-1573: add missing synchronized in test case
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@766440 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 09:38:26 +00:00
Michael McCandless 33f6b48d1a message (to infoStream) when a merge exception is handled
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@765663 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 15:22:09 +00:00
Michael McCandless f5831d86ae LUCENE-1605: add BitVector.subset
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@765649 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 14:29:26 +00:00
Mark Robert Miller 4560d9da77 update to TermEnum#skipTo javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@765620 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 13:02:12 +00:00
Mark Robert Miller 45986b246c feed junit found and expected in assertMatchesPattern
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@765584 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 11:50:36 +00:00
Michael McCandless 55c0cc3922 LUCENE-1603: improve MultiTermQuery for better sharing, and so Trie(Numeric)RangeQuery can use it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@765581 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 11:37:23 +00:00
Michael McCandless 1699ee9d7f LUCENE-1603: some improvements to MultiTermQuery/FilteredTermEnum
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@764930 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 19:35:43 +00:00
Michael McCandless 26be4aa353 don't swallow unexpected IOException in TestLockFactory
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@764734 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 10:49:23 +00:00
Michael McCandless f6f1d00d72 LUCENE-1600: don't over-intern String field names
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@764596 13f79535-47bb-0310-9956-ffa450edef68
2009-04-13 20:07:28 +00:00
Michael McCandless 6cab0952aa fix SnapshotDeletionPolicy to remove the test dir if present to prevent false failures
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@764579 13f79535-47bb-0310-9956-ffa450edef68
2009-04-13 19:35:32 +00:00
Michael McCandless ad79d914e4 LUCENE-1575: switch to new Collector API
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@764551 13f79535-47bb-0310-9956-ffa450edef68
2009-04-13 18:33:56 +00:00
Mark Robert Miller d74d56d9c9 LUCENE-1587: RangeQuery#equals() could consider a RangeQuery without a collator equal to one with a collator.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@763840 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 00:40:31 +00:00
Michael McCandless 3c91517add LUCENE-1516: add near real-time search to IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@763737 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 17:17:46 +00:00
Michael McCandless bb8b2e1462 LUCENE-1590: don't allow stored-only fields to mess up the index-only attrs like omitNorms and omitTermFreqAndPositions
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@763591 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 10:37:50 +00:00
Michael McCandless cb95e45419 LUCENE-1561: don't change Fieldable interface for the rename; add deprecated to AbstractField's omitTf methods
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@763354 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 19:17:56 +00:00
Michael McCandless 9fc1c180b2 LUCENE-1546: also declare all subclasses' doCommit() to be deprecated
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@763024 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 22:52:49 +00:00
Michael McCandless b86ded6fae LUCENE-1582: enable FieldCache.Parser to stop early
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@762684 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 10:59:22 +00:00
Michael McCandless c7fe3c5cb0 LUCENE-1586: add IndexReader.getUniqueTermCount
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@762647 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:25:14 +00:00
Michael McCandless 3fc80aa239 clarify limitations of implementation vs file format itself
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@761886 13f79535-47bb-0310-9956-ffa450edef68
2009-04-04 10:18:05 +00:00
Michael McCandless 47ee1d3c27 make it clear that IW.commit() commits all changes, not just added/deleted docs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@761414 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 20:16:57 +00:00
Michael McCandless fe475f0176 small optimization: re-use a single TermDocs instance when deleting-by-Term
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@761000 13f79535-47bb-0310-9956-ffa450edef68
2009-04-01 18:25:18 +00:00
Michael McCandless 12e212ccae LUCENE-1579: make sure cloned SegmentReaders share the same entry in FieldCache
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@760486 13f79535-47bb-0310-9956-ffa450edef68
2009-03-31 15:41:08 +00:00
Michael McCandless 7be6fa54f0 fix javadocs for optimize, on transient disk usage
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@760186 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 21:31:01 +00:00
Grant Ingersoll c2b6731cc4 Add StopFilter makeStopSet methods that take a list, since we just call Arrays.asList() again anyway and we might already have a list
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@760058 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 17:26:55 +00:00
Michael McCandless 7aa012ca27 LUCENE-1573: don't ignore, or enter spinloop, when Thread.interrupt() is called
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@759556 13f79535-47bb-0310-9956-ffa450edef68
2009-03-28 19:10:55 +00:00
Michael McCandless 2d221f79ad add javadoc NOTE about package-private APIs for MergePolicy & MergeScheduler
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@759068 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 09:19:05 +00:00
Michael McCandless c6f7aa41a3 fix clone() case that could incorrectly leave stored fields files open
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@757185 13f79535-47bb-0310-9956-ffa450edef68
2009-03-22 13:21:58 +00:00
Michael McCandless 04c0d1f81a LUCENE-652: deprecate FieldSelectorResult.LOAD_FOR_MERGE, since it's really an internal option and is used only for dealing with compressed fields, which are now externalized
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@756911 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 10:35:52 +00:00
Michael McCandless a00257a7ba LUCENE-652: add compress/decompressString, too
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@756760 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 21:10:12 +00:00
Michael Busch a7697e8cef LUCENE-1327: Fix TermSpans#skipTo() to behave as specified in javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@756669 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 17:31:43 +00:00
Michael McCandless c443dcc662 LUCENE-1561: rename omitTf -> omitTermFreqAndPositions in Field*
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@756663 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 17:26:01 +00:00
Michael McCandless 39c8421992 LUCENE-652: add org.apache.lucene.document.CompressionTools; deprecate Field.Store.COMPRESS
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@756635 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 17:13:42 +00:00
Michael McCandless 7d18c4997a LUCENE-1543: allow MatchAllDocsQuery to specify a field whose norms are used to set document scores
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@756029 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 14:40:55 +00:00
Michael McCandless 6bf0e6e09b LUCENE-1435: add contrib/collation (CollationKeyFilter), to convert tokens into indexable CollationKeys
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@755914 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 10:51:55 +00:00
Michael McCandless 787e518048 term vectors use 3 (not 4) files in the index
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@755747 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 21:42:32 +00:00
Michael McCandless 5d05762169 LUCENE-1434: add IndexableBinaryStringTools
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@755742 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 21:35:51 +00:00
Michael McCandless 68f4d8b1a8 revert accidental changes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@755652 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 17:06:46 +00:00
Michael McCandless 7004e8c042 LUCENE-1145: small improvements to DisjunctionSumScorer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@755639 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 16:44:50 +00:00
Michael McCandless cd5028b79a improve IndexWriter.rollback javadoc src/java/org/apache/lucene/index/IndexWriter.java
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@755535 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 10:22:51 +00:00
Michael McCandless 904b7967c1 LUCENE-1564: don't let Field.setValue switch between binary & non-binary fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@754789 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 23:24:39 +00:00
Michael McCandless 75d6fab25b LUCENE-1551: add expert IndexReader.reopen(IndexCommit)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@752538 13f79535-47bb-0310-9956-ffa450edef68
2009-03-11 17:32:37 +00:00
Michael McCandless cce1e98416 small javadoc fixes to IndexWriter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@752432 13f79535-47bb-0310-9956-ffa450edef68
2009-03-11 12:43:00 +00:00
Michael McCandless 7f6c38fc77 remove references to getDirectory methods from FSDirectory javadocs since we've deprecated them
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@751276 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 14:21:26 +00:00
Michael McCandless 2e2eafd3d2 make IndexReader.getRefCount() expert and public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@751241 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 10:47:44 +00:00
Michael McCandless 7f32bbf72f remove javadoc sentence about synchronizing on FSDirectory instance
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@751077 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 21:30:51 +00:00
Michael McCandless 48fbdad305 fix javadoc for addIndexes(IndexReader[]) to remove incorrect warning that a writer cannot be changing the underlying index
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@750851 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 11:24:55 +00:00
Michael McCandless 11079efed4 LUCENE-1554: remove false-positive assert that may (rarely) trip when it's not supposed to
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@750849 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 11:22:12 +00:00
Michael McCandless ebb8c8ec3d LUCENE-1553: fix test-only method addMyself to keep track of more than 1 ConcurrentMergeScheduler created during tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@750405 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 09:54:07 +00:00
Michael McCandless cf28799cb0 LUCENE-1552: reset success to false in addIndexes(IndexReader[])
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@750162 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 21:34:53 +00:00
Mark Robert Miller 480c2afd15 LUCENE-689: NullPointerException thrown by equals method in SpanOrQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@750009 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 13:50:06 +00:00
Michael McCandless 90f52a651e replace java 5 only constructs w/ java 1.4 equivalents
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@749875 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 01:50:27 +00:00
Michael McCandless 8062dc0814 add dates to changes2html.pl
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@749403 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 18:38:37 +00:00
Michael McCandless dcd63a35e7 LUCENE-1186: add Analyzer.close() to close the internal ThreadLocal
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@749326 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 15:08:54 +00:00
Michael McCandless ae19121e4c LUCENE-1314: change reference counting to properly track deleted docs & shared core readers inside SegmentReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@749009 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 12:12:36 +00:00
Michael McCandless 166b92281f LUCENE-1549: add some more checks to CheckIndex
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@748826 13f79535-47bb-0310-9956-ffa450edef68
2009-02-28 12:01:19 +00:00
Michael McCandless 1afef18d4a LUCENE-1546: add IndexReader.flush(String commitUserData)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@748493 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 12:20:23 +00:00
Michael McCandless 5cbdc2b8f2 fix make newComparator public in TestSort
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@748150 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 13:46:54 +00:00
Michael McCandless f6fe5a1fe0 make abstract FieldComparatorSource.newComparator public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@748123 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 12:59:58 +00:00
Michael McCandless 5e56337374 make TopFieldDocs ctor public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@747745 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25 11:02:57 +00:00
Michael McCandless 6fc659a345 LUCENE-1547: fix rare thread hazard in IndexWriter.commit()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@747251 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24 01:30:35 +00:00
Michael McCandless 90d98045d8 clarify IndexWriter.rollback javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@747247 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24 01:20:11 +00:00
Michael McCandless fa48227f98 LUCENE-1483: add missing deprecations
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@747019 13f79535-47bb-0310-9956-ffa450edef68
2009-02-23 13:59:50 +00:00
Michael McCandless 657a887e95 LUCENE-1544: fix deadlock in IW.addIndexes(IndexReader[])
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@746661 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22 12:20:27 +00:00
Michael McCandless f8dc3bbd7d LUCENE-1314: add asserts during *Reader.clone() that the incoming SegmentInfo/s matches the current reader
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@746343 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 19:37:25 +00:00
Mark Robert Miller 107da37d21 update javadoc for allowDocsOutOfOrder
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@745886 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 14:44:53 +00:00
Michael McCandless cd89bc9de3 LUCENE-1314: allow clone of subreaders; add note to getSequentialSubReaders javadoc to not use sub-readers to make changes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@744653 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 10:56:36 +00:00
Michael McCandless 18b819abe0 correct java code fragment in javadocs for reopen
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@743303 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 11:14:47 +00:00
Michael McCandless c45b701113 LUCENE-1538: don't bottlneck threads on IndexReader.isDeleted in ValueSourceQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@742406 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 11:26:20 +00:00
Yonik Seeley 5388a5c7ac LUCENE-1314: fix reopen bug wrt fields that don't have norms
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@741838 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 03:30:24 +00:00
Michael McCandless dbe0898d63 LUCENE-1535: use random seed for randomness, but print the seed on failure for reproducibility
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@741311 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 21:53:40 +00:00
Michael McCandless 396cfd9fe1 fix javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@740855 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 20:15:42 +00:00
Michael McCandless 8846fd359e replace 'if' with 'assert' to eek performance in BitVector.get
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@740806 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 17:34:02 +00:00
Michael McCandless 35d2b765be LUCENE-1506: add FilteredDocIdSet
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@740361 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 17:53:46 +00:00
Michael McCandless 62d56d9410 LUCENE-1483: add expert IndexSearcher ctor to search sub-readers in natural order (vs default sort-by-numDocs order)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@740021 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 16:21:49 +00:00
Michael McCandless 4d7f92be9b LUCENE-1314: add IndexReader.clone(boolean readOnly) and reopen(boolean readOnly)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@739238 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 11:12:48 +00:00
Michael McCandless 20753f2e31 LUCENE-1507: add DocIdSet.EMPTY_DOCIDSET
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@738895 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 15:39:11 +00:00
Michael McCandless 48c3220021 LUCENE-1487: improve javadoc for FieldCacheTermsFilter
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@738862 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 14:13:35 +00:00
Michael McCandless 994ae0e18a LUCENE-1487: add FieldCacheTermsFilter, to filter by multiple terms on single-valued fields
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@738622 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 21:05:26 +00:00
Michael Busch 13d5245314 LUCENE-1528: Add support for Ideographic Space to the queryparser.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@738592 13f79535-47bb-0310-9956-ffa450edef68
2009-01-28 19:24:28 +00:00
Michael McCandless 96e0aaf49e LUCENE-1483: switch to newly added MultiReaderHitCollector for all core collectors, that is aware of segment transitions during searching, to improve performance of searching and warming
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@738219 13f79535-47bb-0310-9956-ffa450edef68
2009-01-27 20:15:21 +00:00
Michael McCandless c6f6f01643 LUCENE-1316: don't call synchronized IndexReader.isDeleted when scoring MatchAllDocsQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@737513 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 14:38:43 +00:00
Michael McCandless 8a5dce7ac3 LUCENE-1523: make Directory.isOpen protected
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@736039 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 17:05:36 +00:00
Mark Robert Miller 3382933ff4 remove unused import
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@735586 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 00:11:03 +00:00
Mark Robert Miller 8bf2fda5bd LUCENE-1224: Short circuit FuzzyQuery.rewrite when input token length is small compared to minSimilarity.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@735517 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 18:24:14 +00:00
Michael McCandless 8c58de6092 LUCENE-1521: fix 2 more cases of int overflow
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@735043 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 16:18:33 +00:00
Michael McCandless e91fb48db1 LUCENE-1520: re-use single byte[] for all fields when testing norms
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@734974 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 11:11:24 +00:00
Michael McCandless 5c948da5fb LUCENE-1520: prevent OOM in CheckIndex with large segment that has many fields w/ norms
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@734967 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 10:48:11 +00:00
Michael McCandless 888af0337d LUCENE-1519: upcast to long to prevent overflow
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@734415 13f79535-47bb-0310-9956-ffa450edef68
2009-01-14 15:09:57 +00:00
Michael McCandless d666ae5eda LUCENE-1502: a few small cleanups to CharArraySet
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@732141 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 22:01:35 +00:00
Michael McCandless 873fbbc1f1 LUCENE-1509: don't return dup file names from IndexCommit.getFileNames
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@731747 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 22:31:04 +00:00
Michael McCandless 0b3705a012 remove 2 invalid tests of modified utf8 null byte
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@731727 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 21:11:44 +00:00
Grant Ingersoll c40a7d8397 minor javadoc edits
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@731152 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 01:29:16 +00:00
Michael McCandless 5c8ea7a321 LUCENE-1499: enforce IndexFileNameFilter as singleton
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@728746 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 19:21:40 +00:00
Michael McCandless 7abe0311bc LUCENE-1444: fix broken site links in javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@728262 13f79535-47bb-0310-9956-ffa450edef68
2008-12-20 09:43:06 +00:00
Michael McCandless 4561cb369d add comments from Doug describing how BooleanScorers work
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@727475 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 19:16:10 +00:00
Michael McCandless d3987d9ed4 LUCENE-1484: remove synchronization on SegmentReader.document by using ThreadLocal to maintain thread-private clones of FieldsReader
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@727338 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 10:36:30 +00:00
Michael McCandless f92d3cc82f LUCENE-1478: small cosmetic cleanups
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724552 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 23:27:34 +00:00
Grant Ingersoll ffa2ee2203 LUCENE-1462: Make TermVectorOffsetInfo serializable
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724501 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 21:51:39 +00:00
Michael McCandless efc985cbf4 LUCENE-1478: allow SortField to use a custom numeric FieldCache parser
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724484 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 21:07:45 +00:00
Michael McCandless e0efcd52ea LUCENE-1481: implement equals() and hashCode() for Sort & SortField
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724379 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 15:28:16 +00:00
Mark Robert Miller 8660ccb303 LUCENE-1390: Added ASCIIFoldingFilter, a Filter that converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if one exists. ISOLatin1AccentFilter, which handles a subset of this filter, has been deprecated.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724053 13f79535-47bb-0310-9956-ffa450edef68
2008-12-06 23:25:42 +00:00
Michael McCandless 19c82a230d don't construct verbose message Strings unless infoStream is non-null
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724033 13f79535-47bb-0310-9956-ffa450edef68
2008-12-06 20:05:40 +00:00
Mark Robert Miller 36a03da823 A couple changes with the new token api went into QueryParser.java but not in QueryParser.jj. A fresh javacc would lead to compilation errors.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@724032 13f79535-47bb-0310-9956-ffa450edef68
2008-12-06 19:40:53 +00:00
Michael McCandless 4a0a5664dd LUCENE-1468: switch Directory.list() to Directory.listAll(), which does no filtering of returned array
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@723789 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 17:03:13 +00:00