Creating an "everything ANDNOT this" collection

Joe Wittwer
Joe Wittwer Member Posts: 10 ✭✭
edited November 2024 in English Forum

I cannot figure out how to create a collection that contains everything in my library except the Perseus collection (which is huge).  

Can anyone tell me how to do that?  What would I write in the rule?  It should be something like "everything ANDNOT publisher:perseus".  

Help?

Thanks, Joe

Comments

  • Levi Durfey
    Levi Durfey Member Posts: 2,218 ✭✭✭

    Try this: rating:<=5 ANDNOT publisher:perseus

  • Randy W. Sims
    Randy W. Sims Member Posts: 2,272 ✭✭✭

    I use  "* -publisher:perseus"

     

    All Resources =  3432

    publisher:perseus = 819

    * -publisher:perseus = 2613

     

    Explanation: publisher:perseus finds everything where perseus is the publisher. Putting the negation symbol (dash, hyphen, minus) negates the express so it finds everything EXCEPT perseus. There is a bug that manifests in several ways when trying to use an expression that contains a single operand that is negated. Adding the asterisk to the express (which finds 0 or more of any character) is a workaround for that bug.

  • Rosie Perera
    Rosie Perera Member Posts: 26,194 ✭✭✭✭✭

    You can also omit publisher: in this case because the word perseus on its own will pick up any resource that mentions perseus in its metadata, and there aren't any other resources that mention that because the Perseus collection ones.

  • Dave Hooton
    Dave Hooton MVP Posts: 36,343

    I use  "* -publisher:perseus"

    This is very inefficient (can cause hangs, takes several seconds) and I recommend you replace the wildcard in all collections e.g. rating:<=5  -publisher:perseus

     

    Dave
    ===

    Windows 11 & Android 13

  • Randy W. Sims
    Randy W. Sims Member Posts: 2,272 ✭✭✭

    I use  "* -publisher:perseus"

    This is very inefficient (can cause hangs, takes several seconds) and I recommend you replace the wildcard in all collections e.g. rating:<=5  -publisher:perseus

     

     

    Thanks for pointing that out, Dave. I didn't think that through very well. The expressions you and Integ suggested are much more efficient.

  • Milford Charles Murray
    Milford Charles Murray Member Posts: 5,004 ✭✭✭

    Peace!                  Since collections are "dynamic," would such a collection actually slow down Logos 5?

    For example when opening the program?  Some Forum posters have mentioned that they have over 100 collections.  Does that amount of collections slow the program?  If so, when?  When starting?

    Philippians 4:  4 Rejoice in the Lord always; again I will say, Rejoice. 5 Let your reasonableness be known to everyone. The Lord is at hand..........

  • Dave Hooton
    Dave Hooton MVP Posts: 36,343

    Does that amount of collections slow the program?  If so, when?  When starting?

    When loading a panel during startup Logos may check the collection(s) it uses e.g. a Resource panel that uses Parallel Resources. Otherwise, collections will be checked after startup. Checking one collection is very fast -> less than 0.1s even for rating:<=5  -publisher:perseus. Checking 100 collections might take 8s or less but is run in the background.

    Overall, you would only notice the checking with collections that use a wildcard, as I mentioned previously.

    Dave
    ===

    Windows 11 & Android 13

  • Milford Charles Murray
    Milford Charles Murray Member Posts: 5,004 ✭✭✭

    Overall, you would only notice the checking with collections that use a wildcard, as I mentioned previously.

    Thank you very much, Dave!              I feel better about my extensive collections now!        *smile*                        Peace!

    Philippians 4:  4 Rejoice in the Lord always; again I will say, Rejoice. 5 Let your reasonableness be known to everyone. The Lord is at hand..........

  • Wiki has => http://wiki.logos.com/Example_Collections that includes:

    English Library without Perseus

    • Library Size: 4,096
    • Collection Size: 1,889 Excludes 825 Perseus by including one collection and excluding another collection
    • Rule:
    • Manually Included Items: {Language:English}
    • Manually Excluded Items: {Perseus}

    English Library without Perseus

    • Library Size: 4,096
    • Collection Size: 1,889 Excludes 825 Perseus via rule equivalent to including a collection while excluding another
    • Rule: Language:English -Publisher:Perseus
    • Manually Included Items: none
    • Manually Excluded Items: none

    Keep Smiling [:)]


  • George Somsel
    George Somsel Member Posts: 10,150 ✭✭✭


    Does that amount of collections slow the program?  If so, when?  When starting?

    When loading a panel during startup Logos may check the collection(s) it uses e.g. a Resource panel that uses Parallel Resources. Otherwise, collections will be checked after startup. Checking one collection is very fast -> less than 0.1s even for rating:<=5  -publisher:perseus. Checking 100 collections might take 8s or less but is run in the background.

    Overall, you would only notice the checking with collections that use a wildcard, as I mentioned previously.


    I note that "ANDNOT perseus" doesn't work, but the wildcard "*" (asterisk) with it does.  It takes longer than usual though.

    george
    gfsomsel

    יְמֵי־שְׁנוֹתֵינוּ בָהֶם שִׁבְעִים שָׁנָה וְאִם בִּגְבוּרֹת שְׁמוֹנִים שָׁנָה וְרָהְבָּם עָמָל וָאָוֶן

  • NB.Mick
    NB.Mick MVP Posts: 16,332

    I note that "ANDNOT perseus" doesn't work, but the wildcard "*" (asterisk) with it does.  It takes longer than usual though.

    This is because the rule parser doesn't iomplicitly assume "all" when you have a rule that just gives "minus". The * wildcard stands for all, but seems to be poorly implemented perfomancewise, that's the reason for supplying other, faster ways of selecting all, such as rating:>=0 

    Have joy in the Lord! Smile