Daniel-KM / Omeka-S-module-SearchSolr

Search Omeka resources instantly and deeply with Apache Lucene / Solr
Other
3 stars 1 forks source link

Feature request: add annotations to SOLR index #14

Open Xentropics opened 8 months ago

Xentropics commented 8 months ago

Great module, especially for large and complex datasets, where the Omeka REST API takes many queries to get results or just becomes to slow. One thing I'm missing right now is the inclusion of annotations in the index. Would be great to see them in the SOLR index one day.

So if I have field called schema:name in Omeka that I annotated with two properties (e.g. multiple annotations using the dcterms:source and skos:note properties). The SOLR-output for that item could look like this:

...
"docs":[{
      "id":"items/0000001",
      ....
      "schema_name_txt": ["The Answer to the Ultimate Question of Life, the Universe and Everything", "foo"],
      "schema_name_annotation_dcterms_source_txt": ["https://hitchhikers.fandom.com/wiki/", "https://en.wikipedia.org/wiki/Foobar"],
      "schema_name_annotation_skos_note": ["42 of course", "baz"],
      ...
      }]

This way it would be possible to search by specific annotations, while a roundtrip to the Omeka API is still an options to get more precise details about the annotations of found items. Happy to further discuss use cases and possible implementations.

Daniel-KM commented 1 month ago

Yes, something to implement.