{
"query": {
"function_score": {
"query": {
"bool": {
"must": [
{
"bool": {
"must": [
{
"bool": {
"should": [
{
"term": {
"area_id": "000003"
}
},
{
"term": {
"area_id": "000035"
}
}
]
}
},
{
"bool": {
"should": [
{
"term": {
"star": "5"
}
},
{
"term": {
"is_must_sell ": "1"
}
}
]
}
},
{
"bool": {
"should": [
{
"term": {
"house_type": "一室一厅"
}
},
{
"term": {
"house_type": "两室"
}
}
]
}
}
]
}
},
{
"bool": {
"must": [
{
"term": {
"rs_type": "1"
}
},
{
"range": {
"total_price": {
"gt": "3000.00",
"lt": "5000.00"
}
}
},
{
"term": {
"city_id": "000002"
}
}
]
}
},
{
"bool": {
"must_not": [
{
"term": {
"others": "2"
}
},
{
"term": {
"layer_type": "低楼层"
}
},
{
"term": {
"has_elevator": "0"
}
},
{
"term": {
"orientation_name": "朝西"
}
},
{
"term": {
"orientation_name": "朝北"
}
}
]
}
}
]
}
},
"functions": [
{
"script_score": {
"script": {
"source": "houseMatch_df",
"lang": "houseMatch",
"params": {
"furniture_name": "不限",
"yx_place": [
{
"areaCode": "000003",
"cityCode": "000002",
"placeCode": "0"
},
{
"areaCode": "000035",
"cityCode": "000002",
"placeCode": "0"
}
],
"house_type": [
"一室一厅",
"两室"
],
"fitment_type": [
"简装"
]
}
}
}
}
],
"boost_mode": "replace"
}
},
"from": "0",
"size": "1",
"sort": [],
"aggs": {}
}