5.2a sr3 search glitch

abondservant
abondservant Member Posts: 4,796 ✭✭✭

May be my index needs rebuilt... BUT never the less the image that follows shows me searching without success for a title in my library (thats been in my library for some time) and not being able to find it.

Not sure if its unique to this particular title, or if my index has become corrupt. anyway:



I picked up this as part of the Schaff collection if I remember right (so its been in there a while). This is the first time I've gone looking for this particular title.

L2 lvl4 (...) WORDsearch, all the way through L10,

Comments

  • abondservant
    abondservant Member Posts: 4,796 ✭✭✭

    Also it says my library is being indexed - but - that should be for a few titles that I picked up over the last two days.

    Edit: Suppose you're going to ask to see my logs next, give me a few.

    L2 lvl4 (...) WORDsearch, all the way through L10,

  • Dave Hooton
    Dave Hooton MVP Posts: 36,095

    Also it says my library is being indexed - but - that should be for a few titles that I picked up over the last two days.

    For a proper Search you need to wait until indexing is finished. But searching for a title is done in Library, preferably with quotes around the text, or using title:"creeds of christendom"!

    Dave
    ===

    Windows 11 & Android 13

  • abondservant
    abondservant Member Posts: 4,796 ✭✭✭

    Should be able to search the title from anywhere and get a hit; the New Hampshire Baptist Confession is what I was searching for - something referenced repeatedly in that work. Searching for the name of the confession turned up nothing either.

    L2 lvl4 (...) WORDsearch, all the way through L10,

  • Dave Hooton
    Dave Hooton MVP Posts: 36,095

    Should be able to search the title from anywhere and get a hit;

    That is not the design:

    • the hardcopy title page is not included with every resource
    • if you get a hit it could be a reference in another resource  e.g. the single hit for "1890 Darby Bible" comes from "Versions of the Bible" in FSB Infographics. The only hit in the Darby Bible is for "Darby".
    • title search is explicitly provided from Library and Command box

    the New Hampshire Baptist Confession is what I was searching for - something referenced repeatedly in that work.

    I can get that sort of result e.g. "English Standard Version" occurs 9 times in the ESV, but I don't have your resource.Others may be able to comment.

    Dave
    ===

    Windows 11 & Android 13

  • fgh
    fgh Member Posts: 8,948 ✭✭✭

    Or to express it differently: 

    • Search searches the content (inside) of a book.
    • Library searches the metadata for it (essentially the outside of the cover).

    So using Search to find a title means that you will find every mention of that book in other books, but are unlikely to find the book itself unless it includes a title page.

    Mac Pro (late 2013) OS 12.6.2

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

    fgh said:

    Or to express it differently: 

    • Search searches the content (inside) of a book.
    • Library searches the metadata for it (essentially the outside of the cover).

    So using Search to find a title means that you will find every mention of that book in other books, but are unlikely to find the book itself unless it includes a title page.

    While both you, fgh, and Dave are correct, the point here is simply the indexing: Logos runs searches against its index - no index, no search hits. Searching for CoC gets about half a million hits in my library (which is meaningless since Logos counts all individual hits of the AND-connected words Creeds, Of, and Christendom), including the three volumes themselves, since they have title pages and may mention their title in a foreword. 

    Have joy in the Lord! Smile

  • fgh
    fgh Member Posts: 8,948 ✭✭✭

    NB.Mick said:

    While both you, fgh, and Dave are correct, the point here is simply the indexing: Logos runs searches against its index - no index, no search hits.

    True, but knowing that doesn't much help someone who doesn't understand how the index works. Content is indexed, metadata is not. Which is why I've usually found it most helpful to visualize it by comparing with the inside and outside of a physical book.

    Mac Pro (late 2013) OS 12.6.2

  • abondservant
    abondservant Member Posts: 4,796 ✭✭✭

    Hmm... Both my computers are experiencing the same issue.

    Told my desktop to rebuild index... It doesn't look or act like its trying to index till I bring up that particular title, and then I get the warning that search results may be incomplete.

    L2 lvl4 (...) WORDsearch, all the way through L10,

  • Dave Hooton
    Dave Hooton MVP Posts: 36,095

    Told my desktop to rebuild index... It doesn't look or act like its trying to index till I bring up that particular title,

    Logs are better than speculation, but you need to repeat the rebuild after enabling logs e.g. start Logos with CTRL key held, type the rebuild command, wait a while, upload zipped logs (logosindexer.log and logos.log).

    Dave
    ===

    Windows 11 & Android 13

  • abondservant
    abondservant Member Posts: 4,796 ✭✭✭

    looks like I had a bad stick of ram... Replaced it, re-installed, and everything seems happy now.

    L2 lvl4 (...) WORDsearch, all the way through L10,

  • abondservant
    abondservant Member Posts: 4,796 ✭✭✭

    don't want to mess with my laptop until after school lets out. can't afford to have it down that long.

    But will generate the logs today.

    L2 lvl4 (...) WORDsearch, all the way through L10,

  • Keep Smiling 4 Jesus :)
    Keep Smiling 4 Jesus :) MVP Posts: 23,148

    fgh said:



    Or to express it differently:
    Search searches the content (inside) of a book.
    Library searches the metadata for it (essentially the outside of the cover).

    So using Search to find a title means that you will find every mention of that book in other books, but are unlikely to find the book itself unless it includes a title page.

    Library metadata search can include book description (back cover or inside cover flap).

    NB.Mick said:

    Searching for CoC gets about half a million hits in my library (which is meaningless since Logos counts all individual hits of the AND-connected words Creeds, Of, and Christendom)

    FYI: searching for three words Creeds of Christendom that all appear anywhere in a resource found 1,417,797 results.

    Search for:

    Creeds NEAR Christendom 

    in Heading Text, Large Text, and Title found some Title Pages and articles:

    Command can be used for Title Search:

    Search for:

    Creeds NEAR Christendom 

    in All Text in Entire Library found many references to Creeds of Christendom plus some more results.

    Keep Smiling [:)]

  • abondservant
    abondservant Member Posts: 4,796 ✭✭✭

    generated the log and found this:

    [quote] Program Version: 5.2a SR-3 (5.2.1.0107)
    Time: 2014-05-07 23:43:00 -04:00 (2014-05-08T03:43:00Z)
    Failed to merge indexes; will reindex.
    Libronix.SearchEngine.CorruptIndexException: The SQLite lexicon at 'LibraryIndex/index-build.lxn' could not be opened: database disk image is malformed
    database disk image is malformed ---> System.Data.SQLite.SQLiteException: database disk image is malformed
    database disk image is malformed
       at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
       at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
       at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
       at System.Data.SQLite.SQLiteDataReader.NextResult()
       at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
       at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
       at System.Data.SQLite.SQLiteConnection.Open()
       at Libronix.SearchEngine.FileSystemIndexInfo.OpenConnectionCore(IndexComponent component, IndexMode mode)
       --- End of inner exception stack trace ---
       at Libronix.SearchEngine.FileSystemIndexInfo.OpenConnectionCore(IndexComponent component, IndexMode mode)
       at Libronix.SearchEngine.SqliteTextTermLexicon..ctor(IndexParameters parameters)
       at Libronix.SearchEngine.Lexicon..ctor(IndexParameters parameters)
       at Libronix.SearchEngine.Indexer.ReplaceLexicon(FileSystemIndexInfo sourceInfo, IWorkState state)
       at Libronix.SearchEngine.Indexer.MergeIndexes(FileSystemIndexInfo infoToMergeLeft, FileSystemIndexInfo infoToMergeRight, IWorkState state, IIndexerProgress progress, ISet`1 allDocumentIdsInRight, Func`1 fnIsInsufficientDiskSpace)
       at Libronix.DigitalLibrary.LibraryIndex.MergeIndexes(ILibraryIndexWorkState state, String strBigIndexName, String strSmallIndexName, String strNewIndexName)

    I updated to stable, and forced a rebuild. We'll see whats going on after that.

    L2 lvl4 (...) WORDsearch, all the way through L10,

  • Dave Hooton
    Dave Hooton MVP Posts: 36,095

    I updated to stable, and forced a rebuild.

    There's several possibilities from this snippet:

    • insuifficient disk space -> check you have at least 15 GB free space
    • disk errors -> check your hard drive for errors
    • malformed database only ->  delete the LibraryIndex to remove the database and force a rebuild

    Consider these if your rebuild does not work.

    Dave
    ===

    Windows 11 & Android 13

  • abondservant
    abondservant Member Posts: 4,796 ✭✭✭

    Its on a 1.5tb hard drive, so space isn't an issue, it is old (seatools says 33k hrs), I'll run chkdsk.

    Rebuilding seems to have fixed the issue, but if my hard drive is failing that could have been the source in the first place.

    L2 lvl4 (...) WORDsearch, all the way through L10,