Rebuilding the searchable tag index?

Bugs & Suggestions
Post Reply
hardaker
Posts: 9
Joined: Mon Aug 20, 2012 7:14 pm
operating_system: Linux
System_Drive: B
32bit or 64bit: 64 Bit
processor: Intel Core i7-2760QM
ram: 8GB
Video Card: NVidia Quadro 1000M
Hard_Drive_Capacity: 1.25TB

Rebuilding the searchable tag index?

Post by hardaker »

I have images that I had tagged in the past with various keywords. Lets say "sort". But when I remove the tag from the image, in some cases (I haven't figured out the exact trigger) the images still show up in the metadata browser for the "sort" (or similar) keywords. I was hoping that by retagging them and then removing the tag again that the index would be changed, but no... It appears there is no easy way to fix the corrupted database. Let alone keep it from happening again, as it happens fairly frequently.

So...
1) anyone else have this problem (me: linux and it happened with the latest production release, though I've switched to the beta now and still can't get it to rebuild but haven't been running it long enough yet to determine if the underlying bug is reproducible under it).
2) anyone know how to rebuild the search index to reflect the real corruption that already exists?
afx
Posts: 1675
Joined: Thu Jan 12, 2012 1:38 pm
operating_system: Linux
System_Drive: N/A
32bit or 64bit: 64 Bit
Video Card: FirePro 4900
Monitor/Display Make & Model: NEC PA301w, ColorMunki
Location: München
Contact:

Re: Rebuilding the searchable tag index?

Post by afx »

Ensure all images have XMPs.
Nuke the DB
Create a new one.

cheers
afx
Send bugs to the Monkey // AfterShot Kickstart Guide // sRGB clipping sucks and Adobe RGB is just as bad
Bibble since 2005 // W7 64 on quad Phenom // Ubuntu 14.4 on quad i7 and dualcore AMD // Images
kaymann
Posts: 238
Joined: Tue Dec 14, 2010 5:25 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS P8P67 PRO REV 3.1
processor: Intel i-7 6800K
ram: 32 GB
Video Card: NVidia GeForce RTX 2060
sound_card: Onboard
Hard_Drive_Capacity: 3.5 T
Monitor/Display Make & Model: MSI MAG 341CQ & Dell 2470
Corel programs: PSP 2019 Ult, Painter 2020, CorelDraw X7

Re: Rebuilding the searchable tag index?

Post by kaymann »

It happens in Win 7 as well and the fix afx proposes is the only one I have found that works...
binoyte
Posts: 115
Joined: Thu Jan 12, 2012 1:53 pm
operating_system: Linux
System_Drive: Z
32bit or 64bit: 64 Bit

Re: Rebuilding the searchable tag index?

Post by binoyte »

Old bug from Bibble times. No choice to do as afx said.
Darktable 3. Bye bye aftershot.
ogrizzo
Posts: 60
Joined: Fri Jan 13, 2012 7:45 pm
operating_system: Mac
System_Drive: Q
32bit or 64bit: 64 Bit
processor: 2.8 Ghz Intel Core i7
ram: 8 GB
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Integrated Apple iMac 27"

Re: Rebuilding the searchable tag index?

Post by ogrizzo »

binoyte wrote:Old bug from Bibble times. No choice to do as afx said.
Problem with reimporting the whole catalogue — apart from speed — is that often the erroneous keywords are saved in the xmp file!
What I do is modify the sidecar file with sed (the '-i ~' option comes quite handy), nuke the pictures from the catalogue and then reimport them.

I suggest you experiment your regular expression on a copy of the xmp file until you're confident you can do it right.

Of course, you'd better back everything up before proceeding in such a way!
binoyte
Posts: 115
Joined: Thu Jan 12, 2012 1:53 pm
operating_system: Linux
System_Drive: Z
32bit or 64bit: 64 Bit

Re: Rebuilding the searchable tag index?

Post by binoyte »

Usually, the xmp files are ok and the database only is bugged.

Except if you use single quote (apostrophe) ' in your keywords.

Apostrophes cause main bugs in the keywords handling, and then errors are also reproduced in the xmp.
Darktable 3. Bye bye aftershot.
abrianb
Posts: 5
Joined: Sat Nov 17, 2012 4:41 pm
operating_system: Linux
System_Drive: D
32bit or 64bit: 32 Bit
motherboard: LENOVO 87445BU
processor: 2.00 gigahertz Intel Core 2 Duo
ram: 4gb
Video Card: ATI Mobility Radeon X1400 [Display adapter]
sound_card: SoundMAX Integrated Digital HD Audio
Hard_Drive_Capacity: 320 gb
Monitor/Display Make & Model: ThinkPad Display 1680x1050 (15.4"vis)

Re: Rebuilding the searchable tag index?

Post by abrianb »

@binoyte ; 'good info/Thank You'
hardaker
Posts: 9
Joined: Mon Aug 20, 2012 7:14 pm
operating_system: Linux
System_Drive: B
32bit or 64bit: 64 Bit
processor: Intel Core i7-2760QM
ram: 8GB
Video Card: NVidia Quadro 1000M
Hard_Drive_Capacity: 1.25TB

Re: Rebuilding the searchable tag index?

Post by hardaker »

Thanks for all the suggestions (vacation for a week took me offline)... I was going to try the "delete just those files after ensuring a fresh xmp export" and see if that worked. I'd really rather not reimport the entire DB as that was way too slow last time (near 24 hours if I recall) when I manually messed with all the xmp files to pull in tags from another program.
ogrizzo
Posts: 60
Joined: Fri Jan 13, 2012 7:45 pm
operating_system: Mac
System_Drive: Q
32bit or 64bit: 64 Bit
processor: 2.8 Ghz Intel Core i7
ram: 8 GB
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: Integrated Apple iMac 27"

Re: Rebuilding the searchable tag index?

Post by ogrizzo »

hardaker wrote:I was going to try the "delete just those files after ensuring a fresh xmp export" and see if that worked. I'd really rather not reimport the entire DB as that was way too slow last time (near 24 hours if I recall) when I manually messed with all the xmp files to pull in tags from another program.
That definitively works for me!

Ottavio
Post Reply