0
在搜索索引架構中使用GeographyPoint類型字段更新我的索引文檔時發生問題。 更新索引文件時,它會拋出400個錯誤的請求錯誤。我使用了一些下面的數據格式來更新Edm.GeographyPoint類型的字段。Azure搜索索引更新文檔問題
- 「點(-125.2251 253365)」 - > '點(長,LAT)'
- 「SSID = 1426;點(-125.2511 256255)」
- 「{」 類型 「:」點「,」座標「:[-127.892345987345,45.598345897]}」
當我除了這個字段和更新索引文檔它更新成功。 「Edm.GeographyPoint」類型字段的數據格式還是有其他問題。 還有一個人認爲我有這個領域的得分情況。
"scoringProfiles":{ "name": "ratingAll",
"functions": [
{
"type": "magnitude",
"fieldName": "rating_all",
"boost": 10,
"interpolation": "linear",
"magnitude": {
"boostingRangeStart": 1,
"boostingRangeEnd": 10,
"constantBoostBeyondRange": false
}
}
]
},
{ "name": "geoDistance",
"functions": [
{
"type": "distance",
"fieldName": "geolocation",
"boost": 20,
"interpolation": "logarithmic",
"distance": {
"referencePointParameter": "currentLocation",
"boostingDistance": 10
}
}
]
}
這是我對搜索索引
{ "value": [{"@search.action": "mergeOrUpload","id_art": "ID8106","name": "Hakone","summary": "Authentic Japanese cuisine, buffet style","description": "Hakone is located in the [AID:7794] and offers up buffet style sushi and Japanese cuisine for dinner only.","city": "Honolulu","zip": "96815","date_entered": "2014-06-10T00:31:00Z","description_category": "Restaurants","description_location": "O'ahu","rating_all": 0,"geolocation": "{"type": "Point", "coordinates": [-157.840011566877, 21.286421555374])}"},{"@search.action": "mergeOrUpload","id_art": "ID8110","name": "Aloha Trolley","summary": "Trolley that stops at several convenient locations around the Waikiki area.","description": "The Aloha Trolley is is geared toward visitors that really enjoy being tourists. You simply buy a day pass from JBT Global Travel Services which operates the trolley, and you can cruise around Waikiki all day long with on/off privileges.","city": "Honolulu","zip": "96814","date_entered": "2014-02-14T06:19:00Z","description_category": "Shops/Services","description_location": "O'ahu","rating_all": 6,"geolocation": "{"type": "Point", "coordinates": [0, 0])}"}] }
我更新了我的問題,請查看我的json。 感謝您的幫助。 – Ravi 2014-10-20 15:35:57
我自己解決它。 josn格式有問題。 – Ravi 2014-10-21 18:43:23