|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ultrasearch.query.QueryTemplate
Find documents that contains some text within its content, QueryTemplate does not apply to Date or Number attribute.
QueryTemplate operates on the document content. Nevertheless, a match found in the title or url attribute of the document will have higher score than a match in the document content.
Constructor Summary | |
QueryTemplate(Query[] query) Constructs a QueryTemplate instance, the sequence in Query array will be the sequence in query relaxation, the argument cannot be a n array of QueryTemplate |
|
QueryTemplate(java.lang.String val, InstanceMetaData instmd) Constructs a QueryTemplate instance using query string |
|
QueryTemplate(java.lang.String val, Query advancedCondition, InstanceMetaData instmd) Constructs a QueryTemplate instance, each query sequence in the QueryTempate will a a logic AND of query string and the advancedCondition, the advancedCondition cannot be a QueryTemplate. |
Method Summary | |
java.lang.String |
compile() compile into a query string. |
java.lang.String |
compileForCount() compile into a query string for counting hits. |
java.lang.String |
expand(java.lang.String str, InstanceMetaData instmd, int seq) Translate an user query string into a text query The default translator uses + and -, see Ultra Search sample query documentation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryTemplate(java.lang.String val, Query advancedCondition, InstanceMetaData instmd)
public QueryTemplate(java.lang.String val, InstanceMetaData instmd)
public QueryTemplate(Query[] query)
Method Detail |
public java.lang.String compile()
compile
in interface Query
public java.lang.String compileForCount()
compileForCount
in interface Query
public java.lang.String expand(java.lang.String str, InstanceMetaData instmd, int seq)
str
- the main query stringinstmd
- the InstanceMetaData objectseq
- the expand sequence
|
Oracle® Ultra Search Java API Reference 10g Release 2 (10.2) B14221-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |