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

Add params to add full text search and drop unwanted columns #73

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wragge
Copy link
Sponsor

@wragge wragge commented Jan 12, 2024

Don't know if you want to include this, but I'm finding it handy in my own fork, so I thought I'd submit it for consideration.

This pull request adds two new url parameters:

  • fts: column/s that you want to have a full text index (multiple values separated by commas)
  • drop: column/s that you want to drop from the db (multiple values separated by commas)

For example, this url opens a CSV dataset with oral history metadata, indexes the title column, and drops the publisher column: https://glam-workbench.net/datasette-lite/?csv=https://github.com/GLAM-Workbench/trove-oral-histories-data/blob/main/trove-oral-histories.csv&fts=title&drop=publisher

See also my GLAM Workbench Datasette-Lite fork.

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

Successfully merging this pull request may close these issues.

None yet

1 participant