此查询在Kibana的控制台中效果很好:
Error:FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
Output: C:\Users\[path]\build\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:376: error: resource android:attr/fontStyle not found.
C:\Users\[path]\build\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:376: error: resource android:attr/font not found.
C:\Users\[path]\build\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:376: error: resource android:attr/fontWeight not found.
error: failed linking references.
Command: C:\Users\jaimemontoya\.gradle\caches\transforms-2\files-2.1\ea0620af930b84caf3e943ec51a7a3cc\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
C:\Users\jaimemontoya\AppData\Local\Android\Sdk\platforms\android-23\android.jar\
--manifest\
C:\Users\[path]\build\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\[path]\build\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@C:\Users\[path]\build\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\[path]\build\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--proguard-main-dex\
C:\Users\[path]\build\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\debug\processDebugResources\manifest_keep.txt\
--custom-package\
com.couponclub\
-0\
apk\
--output-text-symbols\
C:\Users\[path]\build\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
Output: C:\Users\jaimemontoya\.gradle\caches\transforms-2\files-2.1\1c4ab5294eb582683d1d0ae5418e25a1\res\values\values.xml:28:1-40:21: AAPT: error: resource android:attr/fontStyle not found.
C:\Users\jaimemontoya\.gradle\caches\transforms-2\files-2.1\1c4ab5294eb582683d1d0ae5418e25a1\res\values\values.xml:28:1-40:21: AAPT: error: resource android:attr/font not found.
C:\Users\jaimemontoya\.gradle\caches\transforms-2\files-2.1\1c4ab5294eb582683d1d0ae5418e25a1\res\values\values.xml:28:1-40:21: AAPT: error: resource android:attr/fontWeight not found.
error: failed linking references.
Command: C:\Users\jaimemontoya\.gradle\caches\transforms-2\files-2.1\ea0620af930b84caf3e943ec51a7a3cc\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
C:\Users\jaimemontoya\AppData\Local\Android\Sdk\platforms\android-23\android.jar\
--manifest\
C:\Users\jaimemontoya\Dropbox\CuponClub\androidapp\build\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\jaimemontoya\Dropbox\CuponClub\androidapp\build\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@C:\Users\jaimemontoya\Dropbox\CuponClub\androidapp\build\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\jaimemontoya\Dropbox\CuponClub\androidapp\build\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--proguard-main-dex\
C:\Users\jaimemontoya\Dropbox\CuponClub\androidapp\build\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\debug\processDebugResources\manifest_keep.txt\
--custom-package\
com.couponclub\
-0\
apk\
--output-text-symbols\
C:\Users\jaimemontoya\Dropbox\CuponClub\androidapp\build\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 27s
但是,如果我在“发现”选项卡上的“ Lucene”搜索框中搜索GET /_search
{
"query": {
"query_string": {
"query": "_exists_:my.field"
}
}
}
,则不会得到任何结果。
答案 0 :(得分:0)
要么:
禁用new search syntax并恢复为Lucene语法,此查询将在此语法下工作。这位于搜索字段最右侧的“选项”按钮下。
使用新语法,查询改为_exists_:my.field
。