Netzgemeinde Hubzilla
Anmelden
Registrieren
Netzgemeinde Hubzilla
Anmelden
Registrieren
System Apps
Fehler melden
Hilfe
QRator
Sprache
Suche
Verzeichnis
Zufälliger Kanal
filter and search
Mon, 07 Aug 2023 21:44:28 +0200
Profil ansehen
Hubzilla Support Forum
adminsforum@hubzilla.org
𝓒𝓱𝓻𝓲𝓼
schrieb den folgenden
Beitrag
Mon, 07 Aug 2023 21:44:26 +0200
filter and search
#
filter
and #
search
is there a syntax to combine two filter or search queries - e. g. for searching for two hashtags
like
?f=&tag=hashtag1&tag=hashtag2
( = that does not work )
Link zur Quelle
show all
6 comments
Mon, 07 Aug 2023 22:39:07 +0200
Profil ansehen
Hans
hans@hubzilla.hopto.org
?verb == (#
tag
|| #
othertag)
Might work, just try it
1
𝓒𝓱𝓻𝓲𝓼
Link zur Quelle
Mon, 07 Aug 2023 22:40:52 +0200
Profil ansehen
Hans
hans@hubzilla.hopto.org
Seems the closing ) is seen as part of a string. Seen that with URL's in posts too
Link zur Quelle
Tue, 08 Aug 2023 08:48:27 +0200
Profil ansehen
Jupiter Rowland
jupiter_rowland@hub.netzgemeinde.eu
I've filed
an issue
about it last month. Nothing has happened so far because I can't prove that this is actually wrong.
1
𝓒𝓱𝓻𝓲𝓼
Link zur Quelle
Tue, 08 Aug 2023 18:28:59 +0200
Profil ansehen
𝓒𝓱𝓻𝓲𝓼
chris@im.allmendenetz.de
syntax for a search is
?f=&cat=Hubzilla
?f=&tag=Hubzilla
How to search for more than one item/word ?
Link zur Quelle
Wed, 09 Aug 2023 09:17:42 +0200
Profil ansehen
Jupiter Rowland
jupiter_rowland@hub.netzgemeinde.eu
As for filters, if you use filter syntax (= anything that starts with a question mark), it doesn't support multiple keywords or hashtags in one line. Before you try that, it doesn't support regular expressions either. Only one keyword or hashtag per line.
To make matters worse, if your filter uses filter syntax at the bottom, the lines are connected by
AND
. So if you put multiple
tag=
or
cat=
or
body=
lines in your filter, they will all be used. For example, if you put them into your allow list, the filter will only let messages through that contain
all of them
, not
either of them
as one might expect.
So with filter syntax, you have two choices. Either you filter by only one word. Or you filter by a number of words, but all of these words have to be present or absent for a message to make it past the filter.
If you want to build a traditional filter list, you must not use filter syntax. This, in turn, makes it impossible to limit filters to only posts and deactivate them for comments and direct messages.
I've described this in
another issue
.
In order to fix this, we need someone to actually develop a patch that introduces conditional orders to Hubzilla filters and submit a pull request.
3
𝓒𝓱𝓻𝓲𝓼
_jayrope
Scott M. Stolz
Link zur Quelle
Wed, 09 Aug 2023 20:59:59 +0200
Profil ansehen
𝓒𝓱𝓻𝓲𝓼
chris@im.allmendenetz.de
@
Jupiter Rowland
thanks for that
Link zur Quelle
Konversationsmerkmale
Lädt...
Konversationsmerkmale
Lädt...
Anmelden
E-Mail oder Kennung
Kennwort
Angaben speichern
Anmelden
Registrieren
Zurücksetzen des Kennworts
Entfernte Authentifizierung