|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.lucene.messages.advsearch.DQueryExpression
public class DQueryExpression
| Constructor Summary | |
|---|---|
DQueryExpression()
Constructs a new QueryExpression. |
|
DQueryExpression(java.lang.String indexName,
int maxHits)
Constructs a new QueryExpression. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a new instance of QueryExpression with the exact same properties as the current instance. |
boolean |
equals(java.lang.Object obj)
Calls the toString() method on the given Object and THIS instance and then compares the resulting Strings with the equals() method. |
java.lang.String |
getIndexName()
Returns the name of the index that will be used for this QueryExpression. |
int |
getMaxHits()
Returns the maximum number of hits in the search result. |
int |
getMinSimilarity()
Returns the minimum similarity score for matches in this QueryExpression. |
boolean |
getShowHitDistribution()
|
java.lang.Integer |
getStartHits()
|
ITerm |
getTerm()
Returns the term below this QueryExpression. |
void |
setIndexName(java.lang.String indexName)
Sets the name of the index that will be used for this QueryExpression. |
void |
setMaxHits(int maxHits)
Sets the maximum number of hits to be retrieved by the search. |
void |
setMinSimilarity(int minSimilarity)
Sets the minimum similarity score for matches in this QueryExpression. |
void |
setShowHitDistribution(boolean showHitDistribution)
|
void |
setStartHits(java.lang.Integer startHits)
|
ITerm |
setTerm(ITerm term)
Sets the term below this QueryExpression. |
java.lang.String |
toString()
Returns this instance's contents as an XML String. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DQueryExpression(java.lang.String indexName,
int maxHits)
indexName - name of the index to use with this querymaxHits - maximum number of hits to be retrievedpublic DQueryExpression()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic int getMaxHits()
getMaxHits in interface IQueryExpressionpublic void setMaxHits(int maxHits)
setMaxHits in interface IQueryExpressionmaxHits - maximum number of hits that will be included in the search result.public java.lang.String getIndexName()
getIndexName in interface IQueryExpressionpublic void setIndexName(java.lang.String indexName)
setIndexName in interface IQueryExpressionindexName - of the index.public void setShowHitDistribution(boolean showHitDistribution)
setShowHitDistribution in interface IQueryExpressionpublic boolean getShowHitDistribution()
getShowHitDistribution in interface IQueryExpressionpublic ITerm getTerm()
term below this QueryExpression.
getTerm in interface IQueryExpressionterm field.public ITerm setTerm(ITerm term)
term below this QueryExpression. Each QueryExpression must have exactly one
term.
setTerm in interface IQueryExpressionterm - -
term field.public int getMinSimilarity()
getMinSimilarity in interface IQueryExpressionpublic void setMinSimilarity(int minSimilarity)
setMinSimilarity in interface IQueryExpressionminSimilarity - similarity to be set for this QueryExpression.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - -
public java.lang.Integer getStartHits()
getStartHits in interface IQueryExpressionpublic void setStartHits(java.lang.Integer startHits)
setStartHits in interface IQueryExpression
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||