@Deprecated public class DSQuery extends Object
| Constructor and Description |
|---|
DSQuery()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
close()
Deprecated.
Close any IndexSearcher that is currently open.
|
static void |
doCMDLineQuery(String query)
Deprecated.
Do a query, printing results to stdout largely for testing, but it is
useful
|
static QueryResults |
doQuery(Context c,
QueryArgs args)
Deprecated.
Do a query, returning a QueryResults object
|
static QueryResults |
doQuery(Context c,
QueryArgs args,
Collection coll)
Deprecated.
Do a query, restricted to a collection
|
static QueryResults |
doQuery(Context c,
QueryArgs args,
Community comm)
Deprecated.
Do a query, restricted to a community
|
protected static org.apache.lucene.index.IndexReader |
getIndexReader()
Deprecated.
get an IndexReader.
|
protected static org.apache.lucene.search.IndexSearcher |
getSearcher(Context c)
Deprecated.
get an IndexSearcher, hopefully a cached one (gives much better
performance.) checks to see if the index has been modified - if so, it
creates a new IndexSearcher
|
static void |
main(String[] args)
Deprecated.
|
public static QueryResults doQuery(Context c, QueryArgs args) throws IOException
c - contextargs - query arguments in QueryArgs objectIOExceptionpublic static QueryResults doQuery(Context c, QueryArgs args, Collection coll) throws IOException
c - contextargs - query argscoll - collection to restrict toIOExceptionpublic static QueryResults doQuery(Context c, QueryArgs args, Community comm) throws IOException
c - contextargs - query argscomm - community to restrict toIOExceptionpublic static void doCMDLineQuery(String query)
public static void close()
public static void main(String[] args)
protected static org.apache.lucene.index.IndexReader getIndexReader()
throws IOException
IOExceptionprotected static org.apache.lucene.search.IndexSearcher getSearcher(Context c) throws IOException
IOExceptionCopyright © 2015 DuraSpace. All Rights Reserved.