You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The add_* and update_* methods need to be split into separate importable files. The way these files are written depends 100% on the schema, so they aren't independent of the Search object, but being in separate files makes them easier to edit, duplicate, and modify as the schema changes.
Documentation: one page for centillion_gdocs, one page for centillion_ghissue, etc.
Portability: ultimately there is no way to make centillion drop-in, because everything depends so much on the schema. The schema is what makes your search engine what it is, what makes it useful. Your schema determines your frontend (what info is presented from each search record) and your backend (how documents in collections are turned into search index records).
The text was updated successfully, but these errors were encountered:
what if each class had their own definition of columns to add to the schema?
then you could say, register schema X, schema Y, and schema Z with the search index, and the search index would determine what fields X/Y/Z each add, and put them all together into a super-schema that includes all fields.
add each new type of document into the schema by having each field of document type X be prefixed, e.g., markdown_title, markdown_url, ... - this offers logical separation but makes it really hard to search on fields. this approach is out.
each document has a schema specified - what columns and what types. the search index schema is similarly defined (yaml file?). there is a validation step that sets up the index, then checks each specified field and type to ensure it is safe.
Organize things in a modular plugin way, have one file per "collection type" (github issues, github markdown, google drive, groups.io emails).
Current schema:
The
add_*
andupdate_*
methods need to be split into separate importable files. The way these files are written depends 100% on the schema, so they aren't independent of the Search object, but being in separate files makes them easier to edit, duplicate, and modify as the schema changes.New schema:
Documentation: one page for centillion_gdocs, one page for centillion_ghissue, etc.
Portability: ultimately there is no way to make centillion drop-in, because everything depends so much on the schema. The schema is what makes your search engine what it is, what makes it useful. Your schema determines your frontend (what info is presented from each search record) and your backend (how documents in collections are turned into search index records).
The text was updated successfully, but these errors were encountered: