From: <bi...@us...> - 2009-10-28 22:06:53
|
Revision: 2864 http://archive-access.svn.sourceforge.net/archive-access/?rev=2864&view=rev Author: binzino Date: 2009-10-28 22:06:07 +0000 (Wed, 28 Oct 2009) Log Message: ----------- Add constructor which takes IndexReader. Modified Paths: -------------- trunk/archive-access/projects/nutchwax/archive/src/nutch/src/java/org/apache/nutch/searcher/IndexSearcher.java Modified: trunk/archive-access/projects/nutchwax/archive/src/nutch/src/java/org/apache/nutch/searcher/IndexSearcher.java =================================================================== --- trunk/archive-access/projects/nutchwax/archive/src/nutch/src/java/org/apache/nutch/searcher/IndexSearcher.java 2009-10-28 22:03:37 UTC (rev 2863) +++ trunk/archive-access/projects/nutchwax/archive/src/nutch/src/java/org/apache/nutch/searcher/IndexSearcher.java 2009-10-28 22:06:07 UTC (rev 2864) @@ -71,6 +71,14 @@ init(IndexReader.open(getDirectory(index)), conf); } + public IndexSearcher( IndexReader reader, Configuration conf ) + throws IOException + { + this.conf = conf; + this.fs = FileSystem.get( conf ); + init( reader, conf ); + } + private void init(IndexReader reader, Configuration conf) throws IOException { this.reader = reader; this.luceneSearcher = new org.apache.lucene.search.IndexSearcher(reader); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |