Initial commit: nimforum with BaraDB backend
- Replaced SQLite with BaraDB via TCP wire protocol - Added baradb_client.nim and baradb_sqlite.nim adapter - Renamed SQL keywords: status->usrStatus, key->sessionKey, like->postLike - Added NOW() support for datetime defaults - Switched Jester to asynchttpserver (-d:useStdLib) to avoid thread/GC issues - Frontend built and favicon added
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
Full-text search for Nim forum
|
||||
==============================
|
||||
|
||||
Syntax (using *SQLite* dll compiled without *Enhanced Query Syntax* support):
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
- Only alphanumeric characters are searched.
|
||||
- Only full words and words beginnings (e.g. ``Nim*`` for both ``Nimrod`` and ``Nim``) are searched
|
||||
- All words are joined with implicit **AND** operator; there's no explicit one
|
||||
- There's explicit **OR** operator (upper-case) and it has higher priority
|
||||
- Words can be prepended with **-** to be excluded from search
|
||||
- No parentheses support
|
||||
- Quotes for phrases search, e.g. ``"programming language"``
|
||||
- Distances between words/phrases can be specified putting ``NEAR`` or ``NEAR/some_number`` between them
|
||||
|
||||
Syntax - differences in *Enhanced Query Syntax* (should be enabled in *SQLite* dll):
|
||||
------------------------------------------------------------------------------------
|
||||
|
||||
- **AND** and **NOT** logical operators available
|
||||
- Precedence of operators is, from highest to lowest: **NOT**, **AND**, **OR**
|
||||
- Parentheses for grouping are supported
|
||||
|
||||
Where search is performed:
|
||||
--------------------------
|
||||
|
||||
- **Threads' titles** - these results are outputed first
|
||||
- **Posts' titles** - middle precedence
|
||||
- **Posts' contents** - the latest
|
||||
|
||||
How results are shown:
|
||||
----------------------
|
||||
|
||||
- All results are ordered by date (posts' edits don't affect)
|
||||
- Matched tokens in text are marked (bold or dotted underline)
|
||||
- Threads title is the link to the thread and posts title is the link to the post
|
||||
Reference in New Issue
Block a user