projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update priv/repo/migrations/20190501125843_add_fts_index_to_objects.exs, priv/repo...
[akkoma]
/
lib
/
pleroma
/
activity
/
search.ex
diff --git
a/lib/pleroma/activity/search.ex
b/lib/pleroma/activity/search.ex
index babf9520ba680398f5c434daebe752dbc78bc7a3..ed898ba4ff847a79c93c15f6d9b6c7355057d50b 100644
(file)
--- a/
lib/pleroma/activity/search.ex
+++ b/
lib/pleroma/activity/search.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Activity.Search do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Activity.Search do
@@
-64,7
+64,7
@@
defmodule Pleroma.Activity.Search do
from([a, o] in q,
where:
fragment(
from([a, o] in q,
where:
fragment(
- "to_tsvector(
'english', ?->>'content') @@ plainto_tsquery('english',
?)",
+ "to_tsvector(
?->>'content') @@ plainto_tsquery(
?)",
o.data,
^search_query
)
o.data,
^search_query
)
@@
-75,7
+75,7
@@
defmodule Pleroma.Activity.Search do
from([a, o] in q,
where:
fragment(
from([a, o] in q,
where:
fragment(
- "to_tsvector(
'english', ?->>'content') @@ websearch_to_tsquery('english',
?)",
+ "to_tsvector(
?->>'content') @@ websearch_to_tsquery(
?)",
o.data,
^search_query
)
o.data,
^search_query
)
@@
-86,7
+86,7
@@
defmodule Pleroma.Activity.Search do
from([a, o] in q,
where:
fragment(
from([a, o] in q,
where:
fragment(
- "? @@ plainto_tsquery(
'english',
?)",
+ "? @@ plainto_tsquery(?)",
o.fts_content,
^search_query
),
o.fts_content,
^search_query
),
@@
-98,7
+98,7
@@
defmodule Pleroma.Activity.Search do
from([a, o] in q,
where:
fragment(
from([a, o] in q,
where:
fragment(
- "? @@ websearch_to_tsquery(
'english',
?)",
+ "? @@ websearch_to_tsquery(?)",
o.fts_content,
^search_query
),
o.fts_content,
^search_query
),