Interface ScoredFieldOrSubQuery<T>
-
- Type Parameters:
T
-
public interface ScoredFieldOrSubQuery<T>
Scored query allows to build Google like queries.- Since:
- 6.5
- See Also:
Query
- API:
- This is a public API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScoredTextFieldOperation<T>
allTextFields()
Queries values contained anywhere (in all text fields) in the business data value object tree.ScoredTextFieldOperation<T>
textField(String fieldName)
Restricts the following query to the text (String) field with the given name or name path.ScoredTextFieldOperation<T>
textFields(String... fieldNames)
Restricts the following queries to the text (String) fields with the given names or name pathes.
-
-
-
Method Detail
-
textField
ScoredTextFieldOperation<T> textField(String fieldName)
Restricts the following query to the text (String) field with the given name or name path.
The name of the field may contain
.
to provide a field name path (E.g.person.address.country
)Example:
import workflow.business.data.Dossier; List<Dossier> result = ivy.repo.search(Dossier.class) .score().textField("person.address.country").query("Switzerland Germany Austria"") .execute() .getAll();
- Parameters:
fieldName
- name or name path of the field- Returns:
- query operations
- Since:
- 6.5
- See Also:
textFields(String...)
,allTextFields()
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
allTextFields
ScoredTextFieldOperation<T> allTextFields()
Queries values contained anywhere (in all text fields) in the business data value object tree.
Example:
import workflow.business.data.Dossier; List<Dossier> result = ivy.repo.search(Dossier.class) score().allTextFields().query("Alan Euler Hungary") .execute() .getAll();
- Returns:
- query operations
- Since:
- 6.5
- See Also:
textField(String)
,textFields(String...)
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
textFields
ScoredTextFieldOperation<T> textFields(String... fieldNames)
Restricts the following queries to the text (String) fields with the given names or name pathes.
The name of a field may contain
.
to provide a field name path (E.g.person.address.country
)Example:
import workflow.business.data.Dossier; List<Dossier> result = ivy.repo.search(Dossier.class) score().textFields("person.firstName", "person.lastName").query("Alan Euler") .execute() .getAll();
- Parameters:
fieldNames
- name or name path of the field- Returns:
- query operations
- Since:
- 6.5
- See Also:
textField(String)
,allTextFields()
- API:
- This public API is available in IvyScript and Java. It has the visibility ADVANCED.
-
-