Commit Graph

1204 Commits

Author SHA1 Message Date
Peter Carlson 3940b6ff1c I have modified the SortedField to not access deleted documents. This caused an exception when filling the initial arrays.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150812 13f79535-47bb-0310-9956-ffa450edef68
2002-09-07 01:00:57 +00:00
Peter Carlson a75302f000 I added a static field for the default search Field.
I have added a SearchBean.close() to people can close the searcher.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150811 13f79535-47bb-0310-9956-ffa450edef68
2002-09-07 01:00:52 +00:00
Peter Carlson 18d1f6e5df Now if there are no hits, I return a HitsIterator that will return 0 for all appropriate fields instead of returning null
I put the string "relevance" into a static variable.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150810 13f79535-47bb-0310-9956-ffa450edef68
2002-09-07 01:00:47 +00:00
Kelvin Tan 0a7e5168e5 Although HitsIterator doesn't implement Iterator, it follows the Iterator idiom so this is just a simple adapter
(really more of a wrapper) which does implement Iterator.

Useful when you want to pass the HitsIterator object into Velocity as a collection
and you want to be able to do something like
#foreach($hit in $hitIterator)
  ##display stuff
#end


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150809 13f79535-47bb-0310-9956-ffa450edef68
2002-08-31 01:19:42 +00:00
Kelvin Tan 4474e5fd64 Initial import of source and libs.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150808 13f79535-47bb-0310-9956-ffa450edef68
2002-08-30 18:03:53 +00:00
Kelvin Tan 6a2e1270e2 First attempt at a tutorial for Indyo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150807 13f79535-47bb-0310-9956-ffa450edef68
2002-08-30 17:58:04 +00:00
Kelvin Tan 297c09a863 Default configuration file.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150806 13f79535-47bb-0310-9956-ffa450edef68
2002-08-30 17:57:41 +00:00
Kelvin Tan 6cd81f3a4b First attempt at an introduction to Indyo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150805 13f79535-47bb-0310-9956-ffa450edef68
2002-08-30 17:57:30 +00:00
Kelvin Tan c67ef9db70 Initial import of build file and properties.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150804 13f79535-47bb-0310-9956-ffa450edef68
2002-08-30 17:56:01 +00:00
Erik Hatcher 7ef3d9ff37 a build file would be nice too.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150803 13f79535-47bb-0310-9956-ffa450edef68
2002-07-11 01:12:56 +00:00
Erik Hatcher 03cb5af2b3 fixed build file to work with pre Ant 1.5. Relocated to contributions area.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150802 13f79535-47bb-0310-9956-ffa450edef68
2002-07-11 01:12:31 +00:00
Erik Hatcher 6bf08ccff7 my long promised index task. its in need of refactoring, but it does the job it was intended to do. docs and cleanup will follow.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150801 13f79535-47bb-0310-9956-ffa450edef68
2002-07-10 02:20:40 +00:00
cmarschner 2bd4df4bcb added with -kb option
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150800 13f79535-47bb-0310-9956-ffa450edef68
2002-06-30 18:05:15 +00:00
cmarschner 407fadc3bb was empty
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150799 13f79535-47bb-0310-9956-ffa450edef68
2002-06-30 15:12:54 +00:00
cmarschner c7e103618b .doc doesn't seem to work. let's try rtf
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150798 13f79535-47bb-0310-9956-ffa450edef68
2002-06-30 15:12:04 +00:00
Otis Gospodnetic 1a0a676354 - Added oro.jar property.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150797 13f79535-47bb-0310-9956-ffa450edef68
2002-06-30 14:58:49 +00:00
Otis Gospodnetic 05d752d877 - Fixed Usage text.
- Added oro.jar property.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150796 13f79535-47bb-0310-9956-ffa450edef68
2002-06-30 14:58:27 +00:00
Kelvin Tan d53f677efd Fixed horrible bug in returning results within a range.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150795 13f79535-47bb-0310-9956-ffa450edef68
2002-06-29 07:58:59 +00:00
Otis Gospodnetic 5b16894b93 - Unpacked the .zip file, for easier access to the source code.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150794 13f79535-47bb-0310-9956-ffa450edef68
2002-06-21 15:02:51 +00:00
Otis Gospodnetic 6af8f0a0c2 - Initial checkin.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150793 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 22:30:17 +00:00
Otis Gospodnetic a2ec870f44 - Renamed the assert(boolean) method to affirm(boolean) to avoid warnings
about assert being a reserved word (JDK 1.4).


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150792 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 21:57:00 +00:00
Otis Gospodnetic e6aeb1c4d8 - This is not needed any more.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150791 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 21:55:49 +00:00
cmarschner 138b3d3b1f not much changed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150790 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 11:42:54 +00:00
cmarschner bea35900d5 see file
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150789 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 11:39:51 +00:00
cmarschner 91b3058b38 added LuceneStorage
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150788 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 00:49:57 +00:00
cmarschner be12c931f4 lucene.jar is now necessary for building lucene storage
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150787 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 00:47:39 +00:00
cmarschner 42c33097b3 changed web doc. to field/value pairs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150786 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 00:46:35 +00:00
cmarschner 8790e328db added experimental version of LuceneStorage
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150785 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 00:45:10 +00:00
cmarschner bdd627d35c added experimental version of a LuceneStorage
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150784 13f79535-47bb-0310-9956-ffa450edef68
2002-06-18 00:44:22 +00:00
cmarschner 8ed5fa47fd added URLNormalizer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150783 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 14:16:12 +00:00
cmarschner 8e18fa1cb0 moved HostInfo/HostManager to larm.net package; added URLNormalizer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150782 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 14:00:13 +00:00
cmarschner 5b90c10cb5 added URLNormalizer. Changed filters to use normalized URLs if possible
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150781 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 13:59:28 +00:00
cmarschner 14fdfb458f removed bug: doc is saved under new URL if 301/302 error occured
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150780 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 13:58:33 +00:00
Kelvin Tan 574ec2994b Imported from http://www.mail-archive.com/lucene-user@jakarta.apache.org/msg00795/PdfTextExtractor.java.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150779 13f79535-47bb-0310-9956-ffa450edef68
2002-06-17 01:29:56 +00:00
cmarschner 6fd283db33 added storage pipeline; some fixes on Tokenizer
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150778 13f79535-47bb-0310-9956-ffa450edef68
2002-06-01 18:55:16 +00:00
Kelvin Tan e5dfadde8e Method of acquiring and releasing index lock could have resulted in a deadlock (thanks to Otis for pointing it out).
Made the acquire and release lock methods synchronized and centralized the point of access of the lock.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150777 13f79535-47bb-0310-9956-ffa450edef68
2002-05-25 10:19:22 +00:00
Peter Carlson d27d39befb Initial submit of SerachBean and related classes
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150776 13f79535-47bb-0310-9956-ffa450edef68
2002-05-23 00:45:09 +00:00
cmarschner 7a3b5acf37 added license info; added anchor text extraction
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150775 13f79535-47bb-0310-9956-ffa450edef68
2002-05-22 23:09:22 +00:00
Otis Gospodnetic 296a06ce90 - Syntax fix.
PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150774 13f79535-47bb-0310-9956-ffa450edef68
2002-05-21 16:14:29 +00:00
Peter Carlson 46e1e54350 First submittal of SearchBean, a bean that wraps many of the Lucene functionality to perform searches.
It supports:
1) Paging
2) Iterating through the search results a HitsIterator
3) Sorting by a field

This can easily be used with a JSP page.

This passes the inital Testcase, but sorting has not been tested in this code yet.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150773 13f79535-47bb-0310-9956-ffa450edef68
2002-05-21 06:29:07 +00:00
cmarschner e16a9e73df added documentation
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150772 13f79535-47bb-0310-9956-ffa450edef68
2002-05-13 21:26:09 +00:00
Kelvin Tan 6ba56b4a9d Fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150771 13f79535-47bb-0310-9956-ffa450edef68
2002-05-13 10:56:54 +00:00
Kelvin Tan 5420a95069 Refactored to use typed arrays instead of generic lists. (thanks to Otis)
However, the array of objects returned are no longer guaranteed to be unique.
Clients should construct a Set out of the objectResults if uniqueness is required.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150770 13f79535-47bb-0310-9956-ffa450edef68
2002-05-11 07:01:10 +00:00
Kelvin Tan 06e1cc92d3 An object to encapsulate the results of a search.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150769 13f79535-47bb-0310-9956-ffa450edef68
2002-05-11 00:47:25 +00:00
Kelvin Tan 5f191db11b Implementation of SearchService.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150768 13f79535-47bb-0310-9956-ffa450edef68
2002-05-11 00:46:59 +00:00
Kelvin Tan 5ab813ac72 Fulcrum-based service declaration of a search service. This is actually quite a Lucene-specific interface declaration.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150767 13f79535-47bb-0310-9956-ffa450edef68
2002-05-11 00:46:14 +00:00
Kelvin Tan bcfa0cbc60 Added simple README and GETTING STARTED docs. Hope it will ease the learning curve somewhat,
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150766 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 17:20:29 +00:00
Kelvin Tan bb68f17330 Fix typo.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150765 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 17:19:17 +00:00
Kelvin Tan f2d83b18c9 Updated with entry on javascript contributions.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150764 13f79535-47bb-0310-9956-ffa450edef68
2002-05-10 09:41:49 +00:00
Kelvin Tan b84ac2fb26 Merged the various add* methods into a single method. Added constants for AND, NOT and OR prefix modifiers.
Added a default modifier.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150763 13f79535-47bb-0310-9956-ffa450edef68
2002-05-09 02:39:26 +00:00