At the moment searches are pretty simple - enter a keyword and you'll get results back containing that substring.
I'd like to add support for operators though, allowing something like
concrete content-type:text/html
with the effect that only results with that content-type
get returned.
Activity
29-Dec-23 11:44
assigned to @btasker
29-Dec-23 11:47
Other possible operators might be
matchtype
(currently one ofurl
ortitle
)domain
hastitle
(one of true/false)I'd also like to add
-
support (for exampleconcrete -posts
would search for concrete and then strip anything withposts
in the match).29-Dec-23 11:49
The catch with this is that we haven't yet defined how to handle search terms with multiple words in - currently they're taken as one term, so searching
concrete posts
will matchhow to install concrete posts
but notposts about concrete
.That probably needs defining before giving the appearance of there being advanced search term processing.
29-Dec-23 12:17
mentioned in commit e81fec93b6c588732596bc21561201d8bdc6e0fe
Message
feat: implement support for NOT matching via
-
prefix (utilities/file_location_listing#11)29-Dec-23 12:17
It's now possible to exclude terms by prefixing them with
-
29-Dec-23 12:27
mentioned in commit 2a297e5c6f04fcac1c638458922e89b304c30526
Message
feat: add support for
content-type
operator (utilities/file_location_listing#11)29-Dec-23 12:27
mentioned in commit c2bb803211b875b97f08242bfc3e455edb0dac52
Message
feat: add support for
matchtype
operator (utilities/file_location_listing#11)29-Dec-23 13:28
mentioned in commit fc3b106ec9e0829b11583cf337971667551494f4
Message
Add support for
domain
operator (utilities/file_location_listing#11)29-Dec-23 13:41
mentioned in commit 6f2d155d5baae271edb435cd45a475374e624b6c
Message
feat: Add
hastitle
operator (utilities/file_location_listing#11)Supports
true
,false
,1
,0
,y
,n
as values29-Dec-23 13:47
mentioned in commit 4761756efafd461d301bb14b9e3a2e7d7b415edf
Message
feat: add
ext
operator to allow filtering by filename extension (utilities/file_location_listing#11)29-Dec-23 13:47
To summarise, the operators added are:
content-type:<content type>
domain:<domain>
ext:<filename extension>
hastitle:<y|n|true|false|0|1>
matchtype:<title|url>
Negation is also supported:
concrete -posts