View Single Post
Old 02-12-2024, 02:12 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by groob View Post
Thanks for your help,
I'll try to be more clear:
- I have some books that have the top category only, and some books that have the top category AND any of the subcategories.
- I need to search which books having the top category don't have any additional subcategories assigned.

So logically it would be: lookup the top category only AND exclude any subcategory, but again, my example and also your examples do not work.

To me this should be correct:
Code:
#genre:"=entertainment" AND NOT #genre:"=.entertainment"
but it's not.
That is question #1 again.

This search, produced by the tag browser when the single green plus is showing
Code:
#genre:"=entertainment"
finds all books with the genre "entertainment" but no subgenres of entertainment.

Examples:
  • Only the top level genre entertainment. Note that the number of books shown, 1, equals the count in the total count of the category minus the sum of the count of the children:
    Click image for larger version

Name:	Clipboard01.jpg
Views:	155
Size:	24.5 KB
ID:	206319
  • The top level and all its children. The number of books, 13, equals the total on the top level item:
    Click image for larger version

Name:	Clipboard03.jpg
Views:	152
Size:	93.6 KB
ID:	206320
  • Only the children. This search combines the 2 above searches. The count, 12, equals the sum of the counts of the children:
    Click image for larger version

Name:	Clipboard04.jpg
Views:	154
Size:	89.1 KB
ID:	206321
chaley is offline   Reply With Quote