本文整理了Java中com.algolia.search.saas.Query.getQuery
方法的一些代码示例,展示了Query.getQuery
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getQuery
方法的具体详情如下:
包路径:com.algolia.search.saas.Query
类名称:Query
方法名:getQuery
暂无
代码示例来源:origin: algolia/instantsearch-android
private Spanned applyTemplate(@NonNull String template, @NonNull Query query, @NonNull AlgoliaException error) {
final String templated = template
.replace("{query}", String.valueOf((query.getQuery())))
.replace("{error}", String.valueOf((error.getLocalizedMessage())));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
return Html.fromHtml(templated, Html.FROM_HTML_MODE_LEGACY);
} else {
return Html.fromHtml(templated);
}
}
代码示例来源:origin: algolia/instantsearch-android
@Override
public void onError(@NonNull Query query, @NonNull AlgoliaException error) {
Log.e("Algolia|Hits", "Error while searching '" + query.getQuery() + "':" + error.getMessage());
}
代码示例来源:origin: algolia/instantsearch-android-examples
queryObj.putOpt("query", query.getQuery() != null ? query.getQuery() : "");
代码示例来源:origin: algolia/instantsearch-android-examples
queryObj.putOpt("query", query.getQuery() != null ? query.getQuery() : "");
代码示例来源:origin: algolia/algoliasearch-client-android
@Test
public void query() {
Query query = new Query();
assertNull(query.getQuery());
query.setQuery("supercalifragilisticexpialidocious");
assertEquals("supercalifragilisticexpialidocious", query.getQuery());
assertEquals("supercalifragilisticexpialidocious", query.get("query"));
assertEquals(query.getQuery(), Query.parse(query.build()).getQuery());
}
内容来源于网络,如有侵权,请联系作者删除!