es_swish.pl -- SWISH integration of Elastic Search
This module hooks into storage.pl
to provide full text and metadata
search over the file storage. This module listens to saved files to
index new or updated files.
- es_create_index
- Create an Elastic Search index to represent commits.
- es_add_since(+Time)
- Update entries that have been added or modified less than Time
seconds ago.
- es_add(+Offset, +Limit) is det
- Add files to the index iven an offset and limit.
- To be done
- - : see whether the bulk insert option of Elastic search provides
a significant speedup. See
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html)
- es_add_file(+File) is det
- Add a file to the
swish
index.
- Errors
- - May throw Gitty, Redis or Elastic errors. Bulk adding
should typically ignore these.
- es_query(+Query, -Result) is det
- Run a query against the Elastic database.
- web_storage:search_sources_hook(+Query, -Results) is det[multifile]
- Run full text and/or metadata search over the stored files.
- swish_search:typeahead(+Set, +Query, -Result, +Options) is nondet[multifile]
- Search for typeahead of the top-right search box.