Commit Graph

32826 Commits

Author SHA1 Message Date
Doug Cutting 58bcd780a9 Added index lock files. Indexing and search are now not just thread
safe, but also "process safe": multiple processes may may now search
an index while it is being updated from another process.

Two lock files are used in an index.  One is "commit.lock".  This is
used to synchronize commits [IndexWriter.close()] with opens
[IndexReader.open()].  Since these actions are short-lived, attempts
to obtain this lock will block for up to ten seconds, which should be
plenty of time, before an exception is thrown.

The second lock file is "write.lock".  This is used to enforce the
restriction that only one process should be adding documents to an
index at a time.  This is created when an IndexWriter is constructed
and removed when it is closed.  If index writing is aborted then this
file must be manually removed.  Attempts to index from another process
will immediately throw an exception.

It should be impossible to corrupt an index through the Lucene API.
However if a Lucene process exits unexpectedly it can leave the index
locked.  The remedy is simply to, at a time when it is certain that no
processes are accessing the index, remove all lock files.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149595 13f79535-47bb-0310-9956-ffa450edef68
2001-09-27 16:27:02 +00:00
Scott Ganyo 9bd3152b06 Fix compile error: Was referring to old com.lucene.* packages.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149594 13f79535-47bb-0310-9956-ffa450edef68
2001-09-26 14:38:34 +00:00
Scott Ganyo 891209bfd3 Added support for RangeQuery. The syntax is expressed as follows:
inclusive range = field:[lowerTerm-upperTerm]
exclusive range = field:{lowerTerm-upperTerm}


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149593 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 21:54:18 +00:00
Scott Ganyo 7a28132692 Added ability to search for documents containing an ordered range of terms.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149592 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 21:53:20 +00:00
Doug Cutting 6c282c6a4e Removed makefiles. Ant has replaced 'make' as the primary build system.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149591 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 21:03:18 +00:00
Doug Cutting a2ac9a68f1 Changed javadoc to not include private classes, to include links to JDK docs, and to have correct copyright.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149590 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 19:07:06 +00:00
Doug Cutting adbb6adcec added package-level javadoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149589 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 19:05:33 +00:00
Doug Cutting cf3414a123 Incorporated Joanne Sproston's changes to extend lower-level HitCollector-based search API to MultiSearcher. I have not yet tested this.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149588 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 19:03:35 +00:00
Doug Cutting 4b0fe4cfa2 Fixed broken javadoc links.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149587 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 18:38:50 +00:00
Doug Cutting 53b8f808b4 Adding German analysis code contributed by Gerhard Schwarz
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149586 13f79535-47bb-0310-9956-ffa450edef68
2001-09-25 17:29:05 +00:00
Doug Cutting b08e28c383 fixed javadoc target
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149585 13f79535-47bb-0310-9956-ffa450edef68
2001-09-24 22:33:21 +00:00
Jason van Zyl 1e4142469c - don't need the basedir def, forgot about the implicit ${basedir}.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149584 13f79535-47bb-0310-9956-ffa450edef68
2001-09-19 01:12:59 +00:00
Jason van Zyl ee21057865 - fixing the "package" target so that the package-zip and package-tgz
targets will work.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149583 13f79535-47bb-0310-9956-ffa450edef68
2001-09-19 01:09:28 +00:00
Jason van Zyl 98becb89d7 - fixing a typo pointed out by sam.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149582 13f79535-47bb-0310-9956-ffa450edef68
2001-09-19 01:03:54 +00:00
Jason van Zyl f62bf88dbc - cleaning up some more files for the test target
- trying to generate the docs with ant installed and not
  the script and am having no luck.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149581 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 17:49:23 +00:00
Jason van Zyl 4fc06ae583 - import fixes in the test src tree
- the test target appears to depend on classes in the demo src
  tree so i added the dep to the test target. test target
  still isn't working but getting there.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149580 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 17:35:57 +00:00
Jason van Zyl 864293c622 - fixes required to make the demo build. i missed some import statements.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149579 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 17:21:38 +00:00
Jason van Zyl 4e68f4be90 - getting the "demo" target to work.
the build.properties is a bit of a mess. i'll get the test target(s)
  working than i'll clean it up.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149578 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 17:04:21 +00:00
Jason van Zyl 1a3dd53ada - a few stray pieces of documentation. ted you can put them where you like,
i just wanted to make sure they were visible so they are put in the
  appropriate place.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149577 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 16:32:51 +00:00
Jason van Zyl 412a00a07d - adding ignore file
- removing velocity.log
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149576 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 16:31:51 +00:00
Jason van Zyl 7fb01d68ac - build file for lucene, incorporates ted's work. i have only tried
building the jar but i will keep testing. figured i would get
  everything into the repository.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149575 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 16:31:24 +00:00
Jason van Zyl 903b4b0178 - properties for the lucene build
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149574 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 16:30:35 +00:00
Jason van Zyl bd3948c539 Initial revision
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149570 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 16:29:48 +00:00
Jason van Zyl 749b4aaf7e - adding some additional libs that were part of the original lucene
cvs. not sure about the javacc zip file being in our repository, i'm
  not sure the license agreement agreed upon with metamata/webgain applies
  with the transition to apache.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149569 13f79535-47bb-0310-9956-ffa450edef68
2001-09-18 16:24:12 +00:00
Sam Ruby 5a2615650e Initial revision
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149565 13f79535-47bb-0310-9956-ffa450edef68
2001-09-11 21:44:36 +00:00
(no author) a0e7ee9d0d New repository initialized by cvs2svn.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149564 13f79535-47bb-0310-9956-ffa450edef68
2001-09-11 21:44:36 +00:00