default void |
Search.createIndex(App app) |
Creates a new search index for the given app.
|
default void |
Search.deleteIndex(App app) |
Deletes the search index for a given app.
|
<P extends ParaObject> P |
Search.findById(String appid,
String id) |
Simple id search.
|
<P extends ParaObject> List<P> |
Search.findByIds(String appid,
List<String> ids) |
Simple multi id search.
|
<P extends ParaObject> List<P> |
Search.findNearby(String appid,
String type,
String query,
int radius,
double lat,
double lng,
Pager... pager) |
Search for Address objects in a radius of X km from a given point.
|
<P extends ParaObject> List<P> |
Search.findNestedQuery(String appid,
String type,
String field,
String query,
Pager... pager) |
Searches within a nested field.
|
<P extends ParaObject> List<P> |
Search.findPrefix(String appid,
String type,
String field,
String prefix,
Pager... pager) |
Searches for objects that have a property which value starts with a given prefix.
|
<P extends ParaObject> List<P> |
Search.findQuery(String appid,
String type,
String query,
Pager... pager) |
Query string search.
|
<P extends ParaObject> List<P> |
Search.findSimilar(String appid,
String type,
String filterKey,
String[] fields,
String liketext,
Pager... pager) |
Searches for objects that have similar property values to a given text.
|
<P extends ParaObject> List<P> |
Search.findTagged(String appid,
String type,
String[] tags,
Pager... pager) |
Searches for objects tagged with one or more tags.
|
<P extends ParaObject> List<P> |
Search.findTags(String appid,
String keyword,
Pager... pager) |
Searches for Tag objects.
|
<P extends ParaObject> List<P> |
Search.findTermInList(String appid,
String type,
String field,
List<?> terms,
Pager... pager) |
Searches for objects having a property value that is in list of possible values.
|
<P extends ParaObject> List<P> |
Search.findTerms(String appid,
String type,
Map<String,?> terms,
boolean matchAll,
Pager... pager) |
Searches for objects that have properties matching some given values.
|
<P extends ParaObject> List<P> |
Search.findWildcard(String appid,
String type,
String field,
String wildcard,
Pager... pager) |
Searches for objects that have a property with a value matching a wildcard query.
|
Long |
Search.getCount(String appid,
String type) |
Counts indexed objects.
|
Long |
Search.getCount(String appid,
String type,
Map<String,?> terms) |
Counts indexed objects matching a set of terms/values.
|
boolean |
Search.rebuildIndex(DAO dao,
App app,
String destinationIndex,
Pager... pager) |
Reads all objects from the database and indexes them into a new index.
|