View Single Post
Old 08-06-2022, 10:05 AM   #5
albell
Member
albell began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2016
Device: Onyx Boox N96ML
Quote:
Originally Posted by kovidgoyal View Post
That's just how the FTS engine works (indeed most fts engines work). Think of for example a google search. They dont return multiple matches per webpage.

As for replicating near queries, you can do so in the viewer, using regular expressions. So for example to find the words one and two near each other you can search for

(?s)\bone\b.{3,150}\btwo\b

The only caveat is that the numbers above are characters not words, so its not quite as precise as in the FTS search.
Thank you, this is a great workaround. Another caveat, I think, is that with regular expression the words are only searched in the order established in the expression, but that's not a big deal.

BTW I have another question:

I noticed that if I perform ocr on a scanned pdf that is already in the library (by launching an external app such as Acrobat), and then I save it overwriting the previous one, this is not automatically indexed and in fact remains "invisible" to FTS engine.
Is there a way to force indexing of a book (other than delete it and re-import it into the library)?

Thank you!
albell is offline   Reply With Quote