|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.indexer.lucene.LuceneQuery
public class LuceneQuery
Implementation of IQuery based on Lucene.
| Constructor Summary | |
|---|---|
LuceneQuery()
|
|
| Method Summary | |
|---|---|
org.apache.lucene.search.Filter |
getFilter()
Get the underlying Filter object. |
org.apache.lucene.search.Query |
getQuery()
Get the underlying Query object |
void |
initialize(java.util.Properties properties)
Initializes the query with the properties object. |
void |
initialize(java.lang.String queryStr)
Initializes the query based on the queryStr |
void |
initialize(java.lang.String defaultField,
java.lang.String text)
Initializes a simple query. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneQuery()
| Method Detail |
|---|
public void initialize(java.util.Properties properties)
throws IndexerException
initialize in interface IQueryproperties - configuration for this query
IndexerException
public void initialize(java.lang.String queryStr)
throws IndexerException
initialize in interface IQueryqueryStr - query string, can use Lucene Query constructs
IndexerException
public void initialize(java.lang.String defaultField,
java.lang.String text)
throws IndexerException
initialize in interface IQuerydefaultField - default field to search in this querytext - text query to search for, can use Lucene Query constructs
IndexerExceptionpublic org.apache.lucene.search.Query getQuery()
public org.apache.lucene.search.Filter getFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||