sist2 icon indicating copy to clipboard operation
sist2 copied to clipboard

Update attribues (e.g. time stamp of doc) from external source

Open robertpfau opened this issue 2 years ago • 3 comments

Which SIST2 component is your Feature Request related to? Index (i guess?)

What would you like to see happen? Ability to provide additional meta-data to each document entry (via CSV?), potentially index that as well?

Additional context All documents get assigned the timestamp from the last-edited attribute. In my case that edit date is not the relevant date. I have a csv of additional meta data available with a specified report-date for each file (back to 1910). I would like to have that report-date as a slide-filter in the front-end so I can filter by year/decade. I can open the sqlite DB and edit the dates in theory but any subsequent reindex will probably erase that. Is there a way to edit the sqlite permanently or to provide additional user-meta-data that can be filtered on?

Thank you 😃

robertpfau avatar Aug 22 '23 08:08 robertpfau

ignore for now. I found the updated user scripts which I believe will do the trick. will post solution here. thank you! :)

robertpfau avatar Aug 22 '23 09:08 robertpfau

Yes, that would have to be done with user scripts (3.2.x)

Let me know if you have any issues while developing the script as you're probably one of the first person trying them. Make sure that you're using the python library for best stability

simon987 avatar Aug 22 '23 12:08 simon987

@robertpfau I was messing around with changing dates on docs too.

Here is my not very safe and not very good script to set a minimum and maximum date on files:

https://gist.github.com/dpieski/e3d4ae8f2f3ecbc94f95ef6e63dbefc3

dpieski avatar Dec 06 '23 16:12 dpieski