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
12e2b4a0
Commit
12e2b4a0
authored
7 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the Readme
parent
d5027cec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+5
-5
5 additions, 5 deletions
README.md
with
5 additions
and
5 deletions
README.md
+
5
−
5
View file @
12e2b4a0
...
@@ -12,20 +12,20 @@ Setting up search backends
...
@@ -12,20 +12,20 @@ Setting up search backends
First, add a new column to the backlog table:
First, add a new column to the backlog table:
```
sql
```
sql
ALTER
TABLE
public
.
backlog
ADD
COLUMN
tsv
tsvector
;
ALTER
TABLE
backlog
ADD
COLUMN
tsv
tsvector
;
```
```
Second, add the two new indices:
Second, add the two new indices:
```
sql
```
sql
CREATE
INDEX
backlog_tsv_idx
CREATE
INDEX
backlog_tsv_idx
ON
public
.
backlog
ON
backlog
USING
gin
(
tsv
);
USING
gin
(
tsv
);
```
```
```
sql
```
sql
CREATE
INDEX
backlog_tsv_filtered_idx
CREATE
INDEX
backlog_tsv_filtered_idx
ON
public
.
backlog
ON
backlog
USING
gin
(
tsv
)
USING
gin
(
tsv
)
WHERE
(
type
&
23559
)
>
0
;
WHERE
(
type
&
23559
)
>
0
;
```
```
...
@@ -35,14 +35,14 @@ Third, set up a trigger to populate the `tsv` column:
...
@@ -35,14 +35,14 @@ Third, set up a trigger to populate the `tsv` column:
```
sql
```
sql
CREATE
TRIGGER
tsvectorupdate
CREATE
TRIGGER
tsvectorupdate
BEFORE
INSERT
OR
UPDATE
BEFORE
INSERT
OR
UPDATE
ON
public
.
backlog
ON
backlog
FOR
EACH
ROW
FOR
EACH
ROW
EXECUTE
PROCEDURE
tsvector_update_trigger
(
'tsv'
,
'pg_catalog.english'
,
'message'
);
EXECUTE
PROCEDURE
tsvector_update_trigger
(
'tsv'
,
'pg_catalog.english'
,
'message'
);
```
```
Fourth, populate the
`tsv`
column:
Fourth, populate the
`tsv`
column:
```
sql
```
sql
UPDATE
public
.
backlog
SET
public
.
backlog
.
messageid
=
public
.
backlog
.
messageid
;
UPDATE
backlog
SET
backlog
.
messageid
=
backlog
.
messageid
;
```
```
Setting up the search
Setting up the search
...
...
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