ArangoDB-Community / ArangoBnB

16 stars 3 forks source link

Implement search neigtborhood on react frontend #42

Closed couds closed 3 years ago

couds commented 3 years ago

This PR does

Note: Also add eslint rules to the backend

cw00dw0rd commented 3 years ago

@couds Thanks for the updates, getting results via neighborhoods is definitely something we wanted to do. I have two notes though:

couds commented 3 years ago

I forgot to add that the view need to be updated like this

{
  "writebufferIdle": 64,
  "type": "arangosearch",
  "writebufferSizeMax": 33554432,
  "consolidationPolicy": {
    "type": "tier",
    "segmentsBytesFloor": 2097152,
    "segmentsBytesMax": 5368709120,
    "segmentsMax": 10,
    "segmentsMin": 1,
    "minScore": 0
  },
  "primarySort": [],
  "globallyUniqueId": "hBBD5E7538BF1/7888121",
  "id": "7888121",
  "storedValues": [],
  "writebufferActive": 0,
  "consolidationIntervalMsec": 1000,
  "cleanupIntervalStep": 2,
  "commitIntervalMsec": 1000,
  "links": {
    "listings": {
      "analyzers": [
        "identity"
      ],
      "fields": {
        "room_type": {},
        "description": {
          "analyzers": [
            "text_en"
          ]
        },
        "price": {},
        "amenities": {
          "analyzers": [
            "text_en",
            "identity"
          ]
        },
        "host_id": {},
        "location": {
          "analyzers": [
            "geo"
          ]
        }
      },
      "includeAllFields": false,
      "storeValues": "none",
      "trackListPositions": false
    },
    "neighborhoods": {
      "analyzers": [
        "identity"
      ],
      "fields": {
        "properties": {
          "fields": {
            "neighborhood": {
              "analyzers": [
                "text_en"
              ]
            }
          }
        },
        "geometry": {
          "analyzers": [
            "geo"
          ]
        }
      },
      "includeAllFields": false,
      "storeValues": "none",
      "trackListPositions": false
    }
  },
  "primarySortCompression": "lz4"
}
cw00dw0rd commented 3 years ago

This is very cool! Now I want to add it to the Vue map ;-D

Uploaded new dump that includes the updated view here: https://drive.google.com/drive/folders/1KF4tkD1pnejx3kroQFMzsedT_bGajww3?usp=sharing