|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.searcher.LuceneSearchBean
public class LuceneSearchBean
Field Summary | |
---|---|
static long |
VERSION
|
Fields inherited from interface org.apache.nutch.searcher.SearchBean |
---|
LOG |
Constructor Summary | |
---|---|
LuceneSearchBean(Configuration conf,
Path indexDir,
Path indexesDir)
Construct in a named directory. |
Method Summary | |
---|---|
void |
close()
|
HitDetails |
getDetails(Hit hit)
Returns the details for a hit document. |
HitDetails[] |
getDetails(Hit[] hits)
Returns the details for a set of hits. |
String |
getExplanation(Query query,
Hit hit)
Return an HTML-formatted explanation of how a query scored. |
long |
getProtocolVersion(String protocol,
long clientVersion)
|
boolean |
ping()
|
Hits |
search(Query query)
Return the top-scoring hits for a query. |
Hits |
search(Query query,
int numHits,
String dedupField,
String sortField,
boolean reverse)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long VERSION
Constructor Detail |
---|
public LuceneSearchBean(Configuration conf, Path indexDir, Path indexesDir) throws IOException
conf
- dir
-
IOException
Method Detail |
---|
@Deprecated public Hits search(Query query, int numHits, String dedupField, String sortField, boolean reverse) throws IOException
Searcher
search
in interface Searcher
IOException
public Hits search(Query query) throws IOException
Searcher
search
in interface Searcher
IOException
public String getExplanation(Query query, Hit hit) throws IOException
Searcher
getExplanation
in interface Searcher
IOException
public HitDetails getDetails(Hit hit) throws IOException
HitDetailer
getDetails
in interface HitDetailer
IOException
public HitDetails[] getDetails(Hit[] hits) throws IOException
HitDetailer
getDetails
in interface HitDetailer
IOException
public boolean ping() throws IOException
ping
in interface SearchBean
IOException
public void close() throws IOException
close
in interface Closeable
IOException
public long getProtocolVersion(String protocol, long clientVersion) throws IOException
getProtocolVersion
in interface VersionedProtocol
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |