Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Unified search query syntax using the full-text search capabilities of the underlying DB #11635

Merged
merged 59 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
d49af47
use websearch_to_tsquery
novocaine Dec 22, 2021
fea2848
Support fallback using plainto_tsquery
novocaine Dec 22, 2021
ccb0d6c
cleanup
novocaine Dec 23, 2021
409afd6
add tests for search_rooms
novocaine Dec 23, 2021
ac002cb
deflake
novocaine Dec 23, 2021
bbbb651
improve docstring
novocaine Dec 23, 2021
02defb2
pass tsquery_func to _find_highlights_in_postgres
novocaine Dec 23, 2021
2eef5ed
Add tests for sqlite
novocaine Dec 23, 2021
28dc642
Don't preprocess sqllite queries
novocaine Dec 23, 2021
8ac3ea1
Also test the size of "results", as its generated by a different quer…
novocaine Dec 23, 2021
5198cb2
fix comment
novocaine Dec 23, 2021
b3c7e0d
Use plainto_tsquery instead of crafting the query ourselves
novocaine Dec 23, 2021
10f181a
black
novocaine Dec 23, 2021
905f572
Merge branch 'develop' of github.com:matrix-org/synapse into use-webs…
novocaine Dec 23, 2021
05a0cdd
Add feature file
novocaine Dec 23, 2021
b0417e9
Use common cases for all tests
novocaine Dec 23, 2021
04c394b
Merge branch 'develop' of github.com:novocaine/synapse into use-webse…
novocaine Jan 10, 2022
4cfb506
Merge branch 'develop' into use-websearch_to_tsquery-for-fts
novocaine May 26, 2022
d30a211
fix for removal of get_datastore()
novocaine May 26, 2022
68cae26
isort
novocaine May 26, 2022
5dbb2c0
add migration
novocaine May 26, 2022
64dd357
comment
novocaine May 26, 2022
20ab98e
black
novocaine May 26, 2022
e5aa916
isort
novocaine May 26, 2022
7941d8a
flake8
novocaine May 26, 2022
f7362f1
import List for python 3.7
novocaine May 26, 2022
f1769f9
create a background job, and don't do anything if the tokenizer is al…
novocaine May 26, 2022
de07c83
When creating a new db, create it with tokenize=porter in the first p…
novocaine May 26, 2022
1170e07
black
novocaine May 27, 2022
b987203
Revert change to 25/fts.py
novocaine May 27, 2022
6ef1ef8
fix json import
novocaine May 27, 2022
63c4270
slightly neater quote formatting
novocaine May 27, 2022
0ddf6b1
fix missing space
novocaine May 30, 2022
9d77bc4
Add a parser to produce uniform results on all DBs
novocaine May 30, 2022
b8b2e28
address flake8
novocaine May 30, 2022
8506b21
give mypy a hint
novocaine May 30, 2022
e279be5
Fix phrase handling of "word"
novocaine May 30, 2022
6a7cf49
Add comment
novocaine May 30, 2022
92ad70a
Merge branch 'develop' into use-websearch_to_tsquery-for-fts
novocaine May 31, 2022
a5f298b
document negation via -
novocaine May 31, 2022
d6ed19e
Merge remote-tracking branch 'origin/develop' into use-websearch_to_t…
clokep Oct 17, 2022
c544409
Move the database schema to the updated directory.
clokep Oct 17, 2022
be742f1
Use a deque.
clokep Oct 17, 2022
52700b0
Add basic tests for _tokenize_query.
clokep Oct 17, 2022
5d9d183
Handle edge-cases.
clokep Oct 17, 2022
219321b
temp
clokep Oct 18, 2022
9166035
Fix phrase handling.
clokep Oct 18, 2022
a7fd4f6
Handle not with a space after.
clokep Oct 18, 2022
6751f5f
Use the int version number to check if the feature is supported.
clokep Oct 18, 2022
6e6ebd9
Lint
clokep Oct 18, 2022
3272819
Simplify schema delta.
clokep Oct 18, 2022
4993e1c
Add docstring.
clokep Oct 18, 2022
9b7bb08
Remove support for parens.
clokep Oct 24, 2022
13f5306
Fix edge cases with double quotes.
clokep Oct 24, 2022
62f6f18
Lint.
clokep Oct 24, 2022
abc56ad
Merge remote-tracking branch 'origin/develop' into use-websearch_to_t…
clokep Oct 24, 2022
b3755ae
Remove backwards compat code for Postgres < 11 since (almost) EOL.
clokep Oct 25, 2022
5e5fc8d
Simplify phrase handling.
clokep Oct 25, 2022
223580a
Fix tests on postgres 10.
clokep Oct 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/11635.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow use of postgres and sqllite full-text search operators in search queries.
Loading