|
Oracle Ultra Search Java API Reference 9.0.3 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ultrasearch.query.Contains
Find documents that contains some text within its content, or its string attributes. Contains query does not apply to Date or Number attribute.
If no attribute is specified, then Contains operates on the document content, instead of any attribute. Nevertheless, a match found in the title attribute of the document will have higher score than a match in the document content.
Constructor Summary | |
Contains(StringAttribute att, java.lang.String val, InstanceMetaData instmd) Construct a contains query on a string attribute. |
|
Contains(java.lang.String val, InstanceMetaData instmd) Construct a contains query on the document content |
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(StringAttribute att, java.lang.String str, InstanceMetaData instmd) Translate an user's attribute contains query string into a text query The default translator uses + and -, see Ultra Search sample query documentation. |
java.lang.String |
expand(java.lang.String str, InstanceMetaData instmd) 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 Contains(StringAttribute att, java.lang.String val, InstanceMetaData instmd)
public Contains(java.lang.String val, InstanceMetaData instmd)
Method Detail |
public java.lang.String compile()
public java.lang.String compileForCount()
public java.lang.String expand(StringAttribute att, java.lang.String str, InstanceMetaData instmd)
att
- a string attributestr
- the main query stringinstmd
- the InstanceMetaData objectpublic java.lang.String expand(java.lang.String str, InstanceMetaData instmd)
str
- the main query stringinstmd
- the InstanceMetaData object
|
Oracle Ultra Search Java API Reference 9.0.3 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |