Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Scripts and microservice to feed an ElasticSearch with Wikidata and Inventaire entities, and keep those up-to-date

Notifications You must be signed in to change notification settings

inventaire/entities-search-engine

 
 

Repository files navigation

Wikidata Subset Search Engine

Tools to setup an ElasticSearch instance fed with subsets of Wikidata, to answer questions like "give me all the humans with a name starting by xxx" in a super snappy way, typically for the needs of an autocomplete field.

For the version tailored to inventaire's needs, see the #integrateInvEntities branch

Summary

Setup

Dependencies

see setup to install dependencies:

Start server

see Wikidata per-entity import

Data imports

add

2 ways to import entities data into your ElasticSearch instance

remove

To un-index entities that were mistakenly added, pass the path of a results json file, supposedly made of an array of ids. All those ids' documents will be deleted

npm run delete-from-results ./queries/results/mistakenly_added_ids.json

Query ElasticSearch

curl "http://localhost:9200/wikidata/humans/_search?q=Victor%20Hugo"

References

Donate

We are developing and maintaining tools to work with Wikidata from NodeJS, the browser, or simply the command line, with quality and ease of use at heart. Any donation will be interpreted as a "please keep going, your work is very much needed and awesome. PS: love". Donate

See Also

You may also like

inventaire banner

Do you know inventaire.io? It's a web app to share books with your friends, built on top of Wikidata! And its libre software too.

License

MIT

About

Scripts and microservice to feed an ElasticSearch with Wikidata and Inventaire entities, and keep those up-to-date

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published