|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.eos.config.Configured net.sf.eos.lucene.DefaultEosQuery
public class DefaultEosQuery
Use internally AnalyzerSupplier
, SearcherSupplier
and
CommonNameResolver
if configured.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.eos.lucene.CommonDocument |
---|
CommonDocument.FieldName |
Constructor Summary | |
---|---|
DefaultEosQuery()
|
Method Summary | |
---|---|
DefaultEosQuery |
and(String phrase)
Adds a phrase to lookup with the boolean and operation. |
DefaultEosQuery |
andMeta(String fieldName,
String value)
Adds a meta entry for a special field to lookup with the boolean and operation. |
DefaultEosQuery |
andMetaRange(String fieldName,
String lowerBound,
String upperBound)
Adds a meta entry for a special field to lookup with the boolean and operation. |
DefaultEosQuery |
andNot(String phrase)
Adds a phrase not to lookup with the boolean and operation. |
DefaultEosQuery |
andNotMeta(String fieldName,
String value)
Adds a meta entry for a special field to not lookup with the boolean and operation. |
List<LookupEntry> |
execute()
Creates the executable query. |
DefaultEosQuery |
or(String phrase)
Adds a phrase to lookup with the boolean or operation. |
DefaultEosQuery |
orMeta(String fieldName,
String value)
Adds a meta entry for a special field to lookup with the boolean or operation. |
DefaultEosQuery |
orMetaRange(String fieldName,
String lowerBound,
String upperBound)
Adds a meta entry for a special field to lookup with the boolean or operation. |
Methods inherited from class net.sf.eos.config.Configured |
---|
configure, getConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.eos.config.Configurable |
---|
configure |
Constructor Detail |
---|
public DefaultEosQuery()
Method Detail |
---|
public DefaultEosQuery and(String phrase)
EosQuery
and
in interface EosQuery
phrase
- the phrase to lookup
public DefaultEosQuery andNot(String phrase) throws EosException
EosQuery
andNot
in interface EosQuery
phrase
- the phrase to lookup
EosException
- if an error occurspublic DefaultEosQuery andMeta(String fieldName, String value)
EosQuery
andMeta
in interface EosQuery
fieldName
- the meta field name to lookupvalue
- the meta value to lookup
public DefaultEosQuery andNotMeta(String fieldName, String value)
EosQuery
andNotMeta
in interface EosQuery
fieldName
- the meta field name to lookupvalue
- the meta value to lookup
public DefaultEosQuery andMetaRange(String fieldName, String lowerBound, String upperBound)
EosQuery
andMetaRange
in interface EosQuery
fieldName
- the meta field name to lookuplowerBound
- the meta lower bound value to lookupupperBound
- the meta upper bound value to lookup
public DefaultEosQuery or(String phrase)
EosQuery
or
in interface EosQuery
phrase
- the phrase to lookup
public DefaultEosQuery orMeta(String fieldName, String value)
EosQuery
orMeta
in interface EosQuery
fieldName
- the meta field name to lookupvalue
- the meta value to lookup
public DefaultEosQuery orMetaRange(String fieldName, String lowerBound, String upperBound)
EosQuery
orMetaRange
in interface EosQuery
fieldName
- the meta field name to lookuplowerBound
- the meta lower bound value to lookupupperBound
- the meta upper bound value to lookup
public List<LookupEntry> execute() throws EosException
EosQuery
execute
in interface EosQuery
EosException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |