我有一個看起來像下面ElasticSearch過濾器不返回結果...語法問題?
{
_index: ecw
_type: grails.gorm.tests.Person
_id: Nb0tHzNDRtq3-rGSO3yVTw
_score: 1
_source: {
firstName: Bart
lastName: Simpson
age: 0
pets: [ ]
}
}
{
_index: ecw
_type: grails.gorm.tests.Person
_id: RxD7mGsvR3i5LT52MAdSLA
_score: 1
_source: {
firstName: Bob
lastName: Builder
age: 0
pets: [ ]
}
}
{
_index: ecw
_type: grails.gorm.tests.Person
_id: rJMEbBqeRcqx3K0HtfGrLg
_score: 1
_source: {
firstName: Bart
lastName: Simpson
age: 9
pets: [ ]
}
}
彈性搜索文檔但是,當我在本地主機上運行[文章]以下過濾器:9200/ECW/grails.gorm.tests.Person/_search用頭將沒有返回值。有什麼想法嗎?
{
"filter": {
"and": {
"filters": [
{
"term": {
"lastName": "Simpson"
}
}
]
}
}
}
哇太感謝你了,我的過濾器,通過ES Java客戶端創建。只有將姓氏縮減爲小寫才能工作!謝謝 – Sap