Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: View Creation #9

Open
cw00dw0rd opened this issue Feb 2, 2021 · 3 comments
Open

Backend: View Creation #9

cw00dw0rd opened this issue Feb 2, 2021 · 3 comments

Comments

@cw00dw0rd
Copy link
Collaborator

Need to determine the most appropriate view creation that will support desired AQL queries. Will need to come after query decisions.

@cw00dw0rd cw00dw0rd added this to To do in ArangoBnB Board via automation Feb 2, 2021
@cw00dw0rd cw00dw0rd added this to the Initial Release milestone Feb 10, 2021
@Simran-B
Copy link
Collaborator

Simran-B commented Feb 11, 2021

Analyzers

Geo

arangosh:

db._useDatabase("arangobnb");
var analyzers = require("@arangodb/analyzers");
analyzers.save("geo", "geojson", {}, []) // properties and features?

Views

Main

What should we call it? arangobnb?

{
  "links": {
    "listings": {
      "analyzers": [
        "identity"
      ],
      "fields": {
        "description": {
          "analyzers": [
            "text_en"
          ]
        },
        "amenities": {
          "analyzers": [
            "text_en",
            "identity"
          ]
        },
        "room_type": {},
        "location": {
          "analyzers": [
            "geo"
          ]
        },
        "host_id": {},
        "price": {}
      }
    }
  }
}

links.listings.analyzers defined the default Analyzer, i.e. the one which is used for the fields without explicit analyzers attribute (e.g. "price": {}).

@cw00dw0rd cw00dw0rd moved this from To do to In progress in ArangoBnB Board Feb 16, 2021
@cw00dw0rd
Copy link
Collaborator Author

Need to update to include GeoJSON point #16 (comment)

@Simran-B
Copy link
Collaborator

Simran-B commented Mar 4, 2021

Should always include _analyzers system collection in dump. Could use exclude/full masking types: https://www.arangodb.com/docs/stable/programs-arangodump-maskings.html#masking-types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
ArangoBnB Board
In progress
Development

No branches or pull requests

2 participants