search

Perform a full-text search in contact storage.

This overloaded version performs unlimited search and does not resolve information about match spans.

Return

Array of matched documents. Use id to get ID of the matched contact.

Parameters

query

Query to search for. Wildcards can be used in query terms.


Perform a full-text search in contact storage.

This overloaded version does not resolve information about match spans.

Return

Array of matched documents. Use id to get ID of the matched contact.

Parameters

query

Query to search for. Wildcards can be used in query terms.

limit

Query result limit; 0 for no limit;


open fun search(@NonNull query: IndexQuery, @IntRange(from = 0) limit: Int, resolveSpans: Boolean, @Nullable searchText: String): Array<IndexMatch>


open fun search(@NonNull query: IndexQuery, @IntRange(from = 0) limit: Int, resolveSpans: Boolean): Array<IndexMatch>

Perform a full-text search in contact storage.

Return

Array of matched documents. Use id to get ID of the matched contact.

Parameters

query

Query to search for. Wildcards can be used in query terms.

limit

Query result limit; 0 for no limit;

resolveSpans

Whether to resolve information about match spans. Using true can be pretty expensive.