|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.catalog.discovery.DiscoveryQueryAdapter
com.esri.gpt.catalog.lucene.LuceneQueryAdapter
public class LuceneQueryAdapter
Adapts a catalog discovery query to the Lucene model.
| Constructor Summary | |
|---|---|
LuceneQueryAdapter()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
execute(RequestContext context,
DiscoveryQuery discoveryQuery)
Executes a query for metadata documents. |
protected void |
executeQuery(DiscoveryQuery discoveryQuery)
Executes a query against a Lucene index. |
protected boolean |
getHasScoredExpression()
Gets the flag indicating whether or not a scored expression exists within the query. |
protected LuceneIndexAdapter |
getIndexAdapter()
Gets the index adapter. |
protected int |
getMaxDoc()
Gets the maxDoc() count returned by the Lucene IndexSearcher. |
protected void |
setHasScoredExpression(boolean hasScoredExpression)
Sets the flag indicating whether or not a scored expression exists within the query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneQueryAdapter()
| Method Detail |
|---|
protected boolean getHasScoredExpression()
protected void setHasScoredExpression(boolean hasScoredExpression)
hasScoredExpression - true if a scored expression existsprotected LuceneIndexAdapter getIndexAdapter()
protected int getMaxDoc()
public void execute(RequestContext context,
DiscoveryQuery discoveryQuery)
throws DiscoveryException
execute in class DiscoveryQueryAdaptercontext - the active request contextdiscoveryQuery - the query to execute
DiscoveryException - if an exception occurs
protected void executeQuery(DiscoveryQuery discoveryQuery)
throws DiscoveryException,
ParseException,
CorruptIndexException,
IOException
discoveryQuery - the query to execute
DiscoveryException
ParseException
CorruptIndexException
IOException
|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||