Daniel Naber
8bf11bc856
cleanup: don't declare exceptions that can never be thrown
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150585 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:44:45 +00:00
Daniel Naber
a25fdef56d
call static methods via class, not via object (better style, no functional change)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150584 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:44:09 +00:00
Daniel Naber
ef02d9af38
copied from TestPhrasePrefixQuery, added a test for toString() and added a test where the first term is expanded
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150583 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:33:56 +00:00
Daniel Naber
59f20d1ada
Deprecate PhrasePrefixQuery and copy it to MultiPhraseQuery; also fix toString() in MultiPhraseQuery
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150582 13f79535-47bb-0310-9956-ffa450edef68
2004-10-10 15:27:15 +00:00
Doug Cutting
e56faa3097
Optimize term dictionary lookup to allocate fewer terms.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150581 13f79535-47bb-0310-9956-ffa450edef68
2004-10-08 15:58:49 +00:00
Daniel Naber
1f11f2e937
print usage information if user requests it with -h or -help
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150580 13f79535-47bb-0310-9956-ffa450edef68
2004-10-07 18:19:16 +00:00
Daniel Naber
135f24a875
don't declare an Exception that can never be thrown
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150579 13f79535-47bb-0310-9956-ffa450edef68
2004-10-07 18:10:52 +00:00
Daniel Naber
5738ff629e
small typo fixes
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150578 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:15:02 +00:00
Daniel Naber
32879aea8d
import cleanup
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150577 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:02:26 +00:00
Daniel Naber
c37a40f444
don't declare an Exception that can never be thrown
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150576 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:01:55 +00:00
Daniel Naber
aca15c3e1d
call static methods via class, not via object (better style, no functional change)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150575 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 21:01:12 +00:00
Daniel Naber
251d0f5a54
make toString() output slightly more logical (compressed only refers to stored fields)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150574 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 20:03:25 +00:00
Daniel Naber
01e3ab0d13
small fixes for javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150573 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 19:55:42 +00:00
Christoph Goller
a433e2c1de
FuzzyQuery is now using a default prefix length of 2 in
...
order to become usable for big indices. Furthermore, it
no longer throws TooManyClausesException.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150572 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 16:19:52 +00:00
Christoph Goller
435e471111
*** empty log message ***
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150571 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 12:15:05 +00:00
Christoph Goller
bcafc0d719
readResolve has to be accessible from all subclasses.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150570 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 11:26:43 +00:00
Christoph Goller
4953fa5c71
Remove synchronization from TermVectors
...
(Patch #30736 )
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150569 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 10:40:23 +00:00
Christoph Goller
3e955f8c77
Introduce a serializable Parameter Class.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150568 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 09:19:04 +00:00
Christoph Goller
bbf79a5ad0
Remove some deprecated warnings from core.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150567 13f79535-47bb-0310-9956-ffa450edef68
2004-10-06 09:05:56 +00:00
Christoph Goller
f1667be0fc
Grant's nw termvector patch (Bug #18927 ) applied with
...
some modifications.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150566 13f79535-47bb-0310-9956-ffa450edef68
2004-10-05 17:30:48 +00:00
Doug Cutting
c6d6a390df
Fix so that tests run with alternate Directory implementations.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150565 13f79535-47bb-0310-9956-ffa450edef68
2004-10-04 19:46:23 +00:00
Doug Cutting
36fab121e3
Remove mention of limitation that no longer exists.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150564 13f79535-47bb-0310-9956-ffa450edef68
2004-10-04 19:45:27 +00:00
Doug Cutting
d82e2362f4
Improved version by Paul Elschot that can handle files longer than 2^31.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150563 13f79535-47bb-0310-9956-ffa450edef68
2004-10-04 19:44:11 +00:00
Doug Cutting
07c48aa589
Disable optimized implementation with compound format.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150562 13f79535-47bb-0310-9956-ffa450edef68
2004-10-04 19:05:05 +00:00
Doug Cutting
7fec8b5ff9
Updated docs for 1.4.2 release.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150561 13f79535-47bb-0310-9956-ffa450edef68
2004-10-01 21:49:26 +00:00
Daniel Naber
360d91dde7
Adding a small comment that says people should use only one IndexSearches for all searches.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150554 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 20:53:07 +00:00
Christoph Goller
d187ef261c
Use byte instead of short as bit-mask.
...
No functional change.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150548 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 13:36:57 +00:00
Christoph Goller
75c4b52722
*** empty log message ***
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150547 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 12:44:05 +00:00
Christoph Goller
3edae1d01c
Allow stored fields to be compressed (see Bug#31149)
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150546 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 12:40:28 +00:00
Christoph Goller
168a155a8b
Bug# 31240
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150545 13f79535-47bb-0310-9956-ffa450edef68
2004-09-30 09:19:43 +00:00
Doug Cutting
e2c1b9b313
Describe some recent changes.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150543 13f79535-47bb-0310-9956-ffa450edef68
2004-09-29 16:54:44 +00:00
Doug Cutting
260dcbe4ef
Note the GCJ bug that this is a workaround for.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150542 13f79535-47bb-0310-9956-ffa450edef68
2004-09-29 16:29:48 +00:00
Christoph Goller
370639d43e
Patch for Bug# 31240. This patch hopefully removes a
...
memory leak in the sort code.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150541 13f79535-47bb-0310-9956-ffa450edef68
2004-09-29 15:09:02 +00:00
Christoph Goller
8b1fd56ae0
Wrong cast corrected.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150540 13f79535-47bb-0310-9956-ffa450edef68
2004-09-29 15:06:56 +00:00
Doug Cutting
197e907924
Fixed so that file is no longer kept open.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150539 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 21:55:59 +00:00
Doug Cutting
8a241604da
Add an nio mmap based Directory implementation.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150538 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 21:40:11 +00:00
Doug Cutting
b32c045d35
Updated FSDirectory and RAMDirectory to no longer use deprecated methods.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150537 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 20:45:26 +00:00
Doug Cutting
79892c1f40
Replace OutputStream with IndexOutput and BufferedIndexOutput to permit unbuffered Directory implementations.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150536 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 18:15:52 +00:00
Doug Cutting
1b8843fa04
Oops. Fixed a bug I introduced in my last change. Thanks to
...
Cristoph for catching this! I overgeneralized. Sorted results are
not always the highest scoring.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150535 13f79535-47bb-0310-9956-ffa450edef68
2004-09-28 16:54:44 +00:00
Doug Cutting
5a3cfc5372
Compile most of Lucene's core code with a single call to gcj. This
...
permits more cross-class inlining. In particular, the final method
PriorityQueue.size() can inline, which speeds things 7.5% in my
benchmarks. Note that 'final' declarations *do* sometimes make things
faster in GCJ. So let's not remove them all!
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150534 13f79535-47bb-0310-9956-ffa450edef68
2004-09-23 16:59:10 +00:00
Doug Cutting
a71929fe4e
Remvoe dead code that GCJ doesn't like.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150533 13f79535-47bb-0310-9956-ffa450edef68
2004-09-23 16:43:47 +00:00
Doug Cutting
a69db22983
Add an import so that GCJ can compile this.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150532 13f79535-47bb-0310-9956-ffa450edef68
2004-09-23 16:42:44 +00:00
Doug Cutting
69d4dc5d06
Add GCJ native code for SegmentTermDocs.read(int[],int[]) to accellerate TermScorer. TermScorer and BooleanScorer are now usually a bit faster under GCJ than under Sun's JVM.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150531 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 18:32:27 +00:00
Doug Cutting
8ca05a3deb
Inline decodeNorm() in TermQuery to make searches faster in Java implementations, like GCJ, where simple methods are not inlined.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150530 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 18:18:27 +00:00
Doug Cutting
e1e3d71cc8
Optimize TermQuery within BooleanQuery, a common case.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150529 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 17:56:00 +00:00
Doug Cutting
b85006589c
Do not construct a ScoreDoc for every non-zero hit, but only for those
...
in the current top scoring set. This makes a substantial performance
improvement for queries that match lots of documents.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150528 13f79535-47bb-0310-9956-ffa450edef68
2004-09-22 17:03:00 +00:00
Daniel Naber
0a5fab187b
Add this file again, but deprecate it. It had been removed already, but re-adding it has the advantage that people will get deprecation warnings instead of compile errors if they use this class. Just like for all the other API changes we have done.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150527 13f79535-47bb-0310-9956-ffa450edef68
2004-09-20 19:27:01 +00:00
Doug Cutting
a5302cb962
Add GCJ target. Also change datestamp of jar to per-day rather than
...
per-second so that other targets can be based on the jar file without
having to be rebuilt every second. And fixed a typo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150526 13f79535-47bb-0310-9956-ffa450edef68
2004-09-20 18:16:50 +00:00
Doug Cutting
ae6229c8cb
Add native GCJ Directory implementation.
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150525 13f79535-47bb-0310-9956-ffa450edef68
2004-09-20 18:14:25 +00:00
Daniel Naber
49d0e47491
document fix for bug #31241
...
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150524 13f79535-47bb-0310-9956-ffa450edef68
2004-09-18 18:27:21 +00:00