Comment 3 for bug 592599

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Seif: No. Since all the subject templates are ORed together you end up matching everything. In fact just these two lines match everything:

 su1 = Subject.new_for_values(interpretation="!"+DOCUMENT)
 su2 = Subject.new_for_values(interpretation="!"+AUDIO)

So the only way to construct "Others" would be via inclusive queries:

 su_1 = Subject.new_for_values(interpretation=MINDMAP)
 ...
 su_n = Subject.new_for_values(interpretation=VCARD)

Including everything except the predefined categories. Needlnes to say this approach breaks down as soon as someone adds another file of unknown type since that will not match this query.