I'm working on analyzing texts in RQDA and am using the Firefox SQLite Manager to access the database so that I can search files more easily. I've created and populated virtual table:
CREATE VIRTUAL TABLE texts USING fts4(filename, content)
Then I did a snippet search
SELECT snippet(texts, '_', '_', '...') FROM texts WHERE texts MATCH 'great OR Great';
This returns results where the snippet term is highlighted with an underscore.
My questions:
Thanks in advance for your help.
So I figured it out! Documentation on 6th parameter was not so clear...
SELECT filename, snippet(texts, '_', '_', '...', -30, 30) FROM texts WHERE texts MATCH 'great OR Great';
This displays the filename and snippet with 30 words before and after search term.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With