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

Support full-text search in metadata.search #46

Open
micahjsmith opened this issue Jul 12, 2021 · 0 comments
Open

Support full-text search in metadata.search #46

micahjsmith opened this issue Jul 12, 2021 · 0 comments

Comments

@micahjsmith
Copy link
Contributor

The FF metadata web app supports full-text real-time search using jQuery DataTables. It first downloads the 18mb file containing the entirety of the metadata and then filters it in the browser, rather than exposing any full-text search API.

Ideas to support full-text search in metadata.search:

  1. download and cache the entire metadata json (http://metadata.fragilefamilies.princeton.edu/api/variable?details=1&q={%22filters%22:[]}) and filter it locally
  2. construct a query over all of the text fields locally and issue that query against the metadata server

Note also that this json file is available which shows the full set of available filters:

curl -H 'Accept: application/json' http://metadata.fragilefamilies.princeton.edu/advanced_search
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

No branches or pull requests

1 participant