|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.demo.SearchFiles
public class SearchFiles
Simple command-line based search demo.
Method Summary | |
---|---|
static void |
doPagingSearch(java.io.BufferedReader in,
Searcher searcher,
Query query,
int hitsPerPage,
boolean raw,
boolean interactive)
This demonstrates a typical paging search scenario, where the search engine presents pages of size n to the user. |
static void |
doStreamingSearch(Searcher searcher,
Query query)
This method uses a custom HitCollector implementation which simply prints out the docId and score of every matching document. |
static void |
main(java.lang.String[] args)
Simple command-line based search demo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static void doStreamingSearch(Searcher searcher, Query query) throws java.io.IOException
java.io.IOException
public static void doPagingSearch(java.io.BufferedReader in, Searcher searcher, Query query, int hitsPerPage, boolean raw, boolean interactive) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |