Skip to content

Instantly share code, notes, and snippets.

View tamert's full-sized avatar
:octocat:
Edit status

Tamer Ağaoğlu tamert

:octocat:
Edit status
View GitHub Profile
@tamert
tamert / Dockerfile
Created December 2, 2021 18:13 — forked from tobiasfriden/Dockerfile
Gstreamer WebRTC python demo working Dockerfile
FROM maxmcd/gstreamer:1.14-buster
WORKDIR /usr/src
RUN apt-get update && apt-get install -y python3-pip \
pkg-config \
libcairo2-dev \
gcc \
python3-dev \
libgirepository1.0-dev \

This demonstrates the implementation of full text search for documents in Indexed DB.

  • Word-breaking and stemming is used to create a list of terms for each document.
  • Document records are annotated with the list of terms when added to the database.
  • A multi-entry index on the list of terms is populated.
  • A query is similarly processed into a list of terms.
  • A join over the terms is implemented using multiple cursors on the index.

The necessity of annotating records with the word list to populate the index is a limitation of the current Indexed DB API. A feature request to support custom