Commit graph

24 commits

Author SHA1 Message Date
Damir Jelić
5dfe5ac135 Searching: More docs and a bit of simplification. 2020-06-04 17:06:59 +02:00
Damir Jelić
bf13032d5b Searching: Fix a lint issue and expand some docs. 2020-06-04 17:06:58 +02:00
Damir Jelić
94d4aa17ee Searching: Remove some debug logs. 2020-06-04 17:06:58 +02:00
Damir Jelić
46fd36568a Searching: Always set the limit when searching.
The spec doesn't mention any default limit so different homeservers
might use different defaults, since we don't want Riot to behave
differently depending on the homeserver bite the bullet of sending an
additional 10 or so bytes when searching.
2020-06-04 17:06:58 +02:00
Damir Jelić
96ca47381c Searching: Add more docs explaining what's going on in the pagination. 2020-06-04 17:06:58 +02:00
Damir Jelić
df06594314 Searching: Refactor out some code that combines the search results. 2020-06-04 17:06:58 +02:00
Damir Jelić
c6462e11ec Searching: Fix some lint issues. 2020-06-04 17:06:58 +02:00
Damir Jelić
28f7d23bfc Searching: Correctly order the combined search results. 2020-06-04 17:06:58 +02:00
Damir Jelić
c2e0e10553 Searching: Split out more logic that combines the events. 2020-06-04 17:06:58 +02:00
Damir Jelić
b6198e0ab9 Searching: Combine the events before letting the client process them. 2020-06-04 17:06:58 +02:00
Damir Jelić
c1ef193e3a Searching: Add initial pagination for combined searches. 2020-06-04 17:06:58 +02:00
Damir Jelić
e94f3422df Searching: Add support to paginate Seshat search results. 2020-06-04 17:06:58 +02:00
Damir Jelić
759f71cb53 Searching: Return an empty result if the search term is an empty string.
This mimics the behaviour we get from synapse as, this fixes
https://github.com/vector-im/riot-web/issues/12715.
2020-03-20 11:38:43 +01:00
Travis Ralston
042bd35d79 Fix MatrixClientPeg imports 2019-12-22 21:15:54 -07:00
Damir Jelić
e9df973c82 EventIndex: Move the event indexing files into a separate folder. 2019-11-19 14:05:00 +01:00
Damir Jelić
2bb331cdf0 Searching: Fix a typo. 2019-11-18 10:58:57 +01:00
Damir Jelić
0e3a0008df Searching: Remove the func suffix from our search functions. 2019-11-18 10:58:54 +01:00
Damir Jelić
a4ad8151f8 Searching: Use the short form to build the search arguments object. 2019-11-18 10:58:53 +01:00
Damir Jelić
b4a6123295 Searching: Move a comment to the correct place. 2019-11-18 10:58:50 +01:00
Damir Jelić
ab93745460 Fix the copyright headers from New Vector to The Matrix Foundation. 2019-11-18 10:58:36 +01:00
Damir Jelić
80b28004e1 Searching: Define the room id in the const object. 2019-11-13 11:02:54 +01:00
Damir Jelić
1df28c7526 Fix some lint errors. 2019-11-13 10:30:38 +01:00
Damir Jelić
1cc64f2426 Searching: Move the small helper functions out of the eventIndexSearch function. 2019-11-13 10:10:35 +01:00
Damir Jelić
e296fd05c0 RoomView: Move the search logic into a separate module. 2019-11-12 15:39:26 +01:00