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

Store and route semantic search queries #486

Closed
jgonggrijp opened this issue Jun 30, 2021 · 1 comment
Closed

Store and route semantic search queries #486

jgonggrijp opened this issue Jun 30, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jgonggrijp
Copy link
Member

A last remaining "rough edge" after #471/#455 is the lack of proper routing. Semantic search queries can be arbitrarily complex, so I'm inclined to store the full JSON representation to the backend and represent it with a numerical ID in the route. In order for users to more easily recognize their past queries from a list (#163), I'm planning to allow them to give the query a mnemonic label as well.

@jgonggrijp jgonggrijp added the enhancement New feature or request label Jun 30, 2021
@jgonggrijp jgonggrijp added this to the Search milestone Jun 30, 2021
@jgonggrijp jgonggrijp self-assigned this Jun 30, 2021
@jgonggrijp
Copy link
Member Author

jgonggrijp commented Jul 16, 2021

A summary of progress because I'm on vacation next week:

  • backend
    • model
      • label
      • query as JSON
      • creator (user)
      • creation date
    • serializer (id, label, query only)
      • version without query for efficiency
    • viewset
      • list, create, retrieve (no update or delete)
      • list only own queries
      • exclude query field in list and create (dynamically switch serializer)
      • automatically set creator on save
    • routing
  • frontent
    • model corresponding to backend API
      • two-way conversion between IR and backend JSON representation
      • (unanticipated) abstractDeepEqual algorithm in order to be able to test the above
    • collection (basically just the backend API url)
    • <input> for the label in the semantic search form
    • routing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant