Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Add Elasticsearch articles table #618

@FrancescoCasalegno

Description

@FrancescoCasalegno

Context

  • In the past, we had a SQL database with the two tables sentences and articles.
  • After Semantic search + Exact matches in ElasticSearch #610 we decided to use Elasticsearch instead of a SQL db to store our texts (i.e. sentences table).
  • Moreover, Question-Answering systems need to work with contexts longer than a single sentence, so rather than sentences we want now a paragraph table (but still with a FOREIGN KEY linking each row to the article it comes from).
  • After moving the paragraph table to Elasticsearch, it becomes natural to have also the article table on Elasticsearch, rather than on a separate SQL database.

Actions

  • Create an articles table on Elasticsearch, with the same schema (here) of the SQL table we had until now.
  • Perform some testing to make sure that it is possible to perform joins in Elasticsearch, i.e. retrieve the article rows from articles table given the article_ids of some rows in paragraphs, and vice versa retrieve all paragraphs given some article_ids.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🗄️ databaseCreation and maintenance of a database of scientific literature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions