-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Support search expression (currently limited) #2826
Support search expression (currently limited) #2826
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
If we are going to start adding special clauses to search requests, then this definitely needs a thorough spec written for matrix-doc. I'm kinda erring on the side of using a recognized standard for searching such as Lucene Query format as oppose to writing our own implementation because search is notoriously hard to get right without causing bugs, and it helps other homeserver and client writers out there since comprehensive docs exist for these formats. |
I'm ok with recognized standard, but there may be some consequences. |
my feeling on this is that, rather than either implementing our own search expression language, or adopting something like lucene, we ought rather to improve upon the "filter" support already provided by the search api (https://matrix.org/docs/spec/client_server/r0.3.0.html#post-matrix-client-r0-search / https://matrix.org/docs/spec/client_server/r0.3.0.html#filter). [a couple of other notes about PRs in general: firstly, this PR includes a bunch of unrelated changes, which makes it hard to review and unlikely to be accepted. secondly, we require sign-off for any contributions as per https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst#sign-off] |
and yes, anything like this will need discussion and agreement before it will be accepted. See https://github.com/matrix-org/matrix-doc/blob/master/CONTRIBUTING.rst#specification-changes for notes on our preferred workflow for this. // cc also @t3chguy |
Thanks for the feedback. |
…be handled Signed-off-by: Xiaodong HU <gotmyname2018@outlook.com>
ab23e8f
to
ea2c4f0
Compare
Whatever, I updated this pull request with squashed commits and get rid of the unrelated changes to make your review more easy, and this time also with my sign-off. |
ok I'm going to close this I'm afraid. I'd rather see us improving the filter support. |
As part of work to fix riot-web issue 2928, add support of search expression to synapse.
See https://github.com/vector-im/riot-web/issues/4752 for discussion about this feature.
The search expression could contain 3 kind of expression:
Multiple expressions could be concated with white space, it means Expression1 AND Expression2...
Currently only ":starred" tag expression was handled, but it could be combined with plain words.