Commit Graph

9 Commits

Author SHA1 Message Date
Erik Hatcher 5320408426 code cleanup. tests pass
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150937 13f79535-47bb-0310-9956-ffa450edef68
2004-01-23 16:51:56 +00:00
Erik Hatcher f667465102 my changes to make it compile, also minor build file cleanup
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150887 13f79535-47bb-0310-9956-ffa450edef68
2003-05-12 14:32:23 +00:00
Peter Carlson cc71858047 I added the Unit Test to include a test on an unoptimized index.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150813 13f79535-47bb-0310-9956-ffa450edef68
2002-09-07 01:01:01 +00:00
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
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
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