Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quassel-rest-search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
quassel-rest-search
Commits
57b89d9c
Verified
Commit
57b89d9c
authored
4 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Improve readme
parent
f24dba27
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+58
-4
58 additions, 4 deletions
README.md
qrs_config.default.php
+30
-1
30 additions, 1 deletion
qrs_config.default.php
with
88 additions
and
5 deletions
README.md
+
58
−
4
View file @
57b89d9c
...
...
@@ -42,23 +42,77 @@ CREATE TRIGGER tsvectorupdate
Fourth, populate the
`tsv`
column:
```
sql
UPDATE
backlog
SET
messageid
=
messageid
;
UPDATE
backlog
SET
messageid
=
messageid
;
```
Setting up the search
---------------------
First,
rename
the file
`qrs_config.default.php`
to
`qrs_config.php`
.
First,
copy
the file
`qrs_config.default.php`
to
`qrs_config.php`
.
Then configure the database access, backend (currently only
`pgsql-smart`
is available), and the prefix of the path.
Your qrs_config.php should look something like this
```
injectablephp
<?php
// Here you should put the hostname of your postgres database
define('qrs_db_host', 'example.com');
// This is the port of your postgres database, usually it should stay at 5432
define('qrs_db_port', 5432);
// The username of the database in the postgres database
define('qrs_db_name', 'quassel');
// Only change this if you know what you are doing
define('qrs_db_connector', null);
// Username and password QRS should use to connect to your database
// (not your quassel user/pass)
define('qrs_db_user', 'quassel');
define('qrs_db_pass', 'password');
// Configure the primary language of your database here. Supported are:
// - simple (works for every language, but worse than configuring the correct language)
// - arabic
// - danish
// - dutch
// - english
// - finnish
// - french
// - german
// - hungarian
// - indonesian
// - irish
// - italian
// - lithuanian
// - nepali
// - norwegian
// - portuguese
// - romanian
// - russian
// - spanish
// - swedish
// - tamil
// - turkish
define('qrs_db_option_tsqueryfunction', "websearch_to_tsquery('english', :query)");
// Timeout in milliseconds
define('qrs_db_option_timeout', 5000);
define('qrs_backend', 'pgsql-smart');
define('qrs_enable_ranking', false);
// If you install QRS in a subfolder, put the path to the subfolder, without trailing /, here.
define('qrs_path_prefix', '');
```
Development
-----------
Please install the required libraries for development with
`npm install`
Before every commit, git will automatically run
`npm run jsx`
, but you can do so yourself during testing.
The project
uses
`nativejsx`
Before every commit, git will automatically run
`npm run jsx`
, but you can do so yourself during testing.
The project
uses
`nativejsx`
License and Credits
-------------------
...
...
This diff is collapsed.
Click to expand it.
qrs_config.default.php
+
30
−
1
View file @
57b89d9c
<?php
// Here you should put the hostname of your postgres database
define
(
'qrs_db_host'
,
'example.com'
);
// This is the port of your postgres database, usually it should stay at 5432
define
(
'qrs_db_port'
,
5432
);
// The username of the database in the postgres database
define
(
'qrs_db_name'
,
'quassel'
);
// Only change this if you know what you are doing
define
(
'qrs_db_connector'
,
null
);
// Username and password QRS should use to connect to your database
// (not your quassel user/pass)
define
(
'qrs_db_user'
,
'quassel'
);
define
(
'qrs_db_pass'
,
'password'
);
define
(
'qrs_db_option_tsqueryfunction'
,
"plainto_tsquery('english', :query)"
);
// Configure the primary language of your database here. Supported are:
// - simple (works for every language, but worse than configuring the correct language)
// - arabic
// - danish
// - dutch
// - english
// - finnish
// - french
// - german
// - hungarian
// - indonesian
// - irish
// - italian
// - lithuanian
// - nepali
// - norwegian
// - portuguese
// - romanian
// - russian
// - spanish
// - swedish
// - tamil
// - turkish
define
(
'qrs_db_option_tsqueryfunction'
,
"websearch_to_tsquery('english', :query)"
);
// Timeout in milliseconds
define
(
'qrs_db_option_timeout'
,
5000
);
define
(
'qrs_backend'
,
'pgsql-smart'
);
define
(
'qrs_enable_ranking'
,
false
);
// If you install QRS in a subfolder, put the path to the subfolder, without trailing /, here.
define
(
'qrs_path_prefix'
,
''
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment