@Deprecated
public class DSQuery
extends java.lang.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(java.lang.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(java.lang.String[] args)
Deprecated.
|
public static QueryResults doQuery(Context c, QueryArgs args) throws java.io.IOException
c - contextargs - query arguments in QueryArgs objectjava.io.IOExceptionpublic static QueryResults doQuery(Context c, QueryArgs args, Collection coll) throws java.io.IOException
c - contextargs - query argscoll - collection to restrict tojava.io.IOExceptionpublic static QueryResults doQuery(Context c, QueryArgs args, Community comm) throws java.io.IOException
c - contextargs - query argscomm - community to restrict tojava.io.IOExceptionpublic static void doCMDLineQuery(java.lang.String query)
public static void close()
public static void main(java.lang.String[] args)
protected static org.apache.lucene.index.IndexReader getIndexReader()
throws java.io.IOException
java.io.IOExceptionprotected static org.apache.lucene.search.IndexSearcher getSearcher(Context c) throws java.io.IOException
java.io.IOExceptionCopyright © 2018 DuraSpace. All Rights Reserved.