project Utilities / File Location Listing avatar

utilities/file_location_listing#11: fu support in searches



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.1
Created: 29-Dec-23 11:44



Description

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.



Toggle State Changes

Activity


assigned to @btasker

Other possible operators might be

  • matchtype (currently one of url or title)
  • domain
  • hastitle (one of true/false)

I'd also like to add - support (for example concrete -posts would search for concrete and then strip anything with posts in the match).

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 match how to install concrete posts but not posts about concrete.

That probably needs defining before giving the appearance of there being advanced search term processing.

verified

mentioned in commit e81fec93b6c588732596bc21561201d8bdc6e0fe

Commit: e81fec93b6c588732596bc21561201d8bdc6e0fe 
Author: B Tasker                            
                            
Date: 2023-12-29T12:16:38.000+00:00 

Message

feat: implement support for NOT matching via - prefix (utilities/file_location_listing#11)

+36 -14 (50 lines changed)

It's now possible to exclude terms by prefixing them with -

Screenshot_20231229_121709

verified

mentioned in commit 2a297e5c6f04fcac1c638458922e89b304c30526

Commit: 2a297e5c6f04fcac1c638458922e89b304c30526 
Author: B Tasker                            
                            
Date: 2023-12-29T12:24:51.000+00:00 

Message

feat: add support for content-type operator (utilities/file_location_listing#11)

+36 -10 (46 lines changed)
verified

mentioned in commit c2bb803211b875b97f08242bfc3e455edb0dac52

Commit: c2bb803211b875b97f08242bfc3e455edb0dac52 
Author: B Tasker                            
                            
Date: 2023-12-29T12:27:13.000+00:00 

Message

feat: add support for matchtype operator (utilities/file_location_listing#11)

+5 -3 (8 lines changed)
verified

mentioned in commit fc3b106ec9e0829b11583cf337971667551494f4

Commit: fc3b106ec9e0829b11583cf337971667551494f4 
Author: B Tasker                            
                            
Date: 2023-12-29T13:28:15.000+00:00 

Message

Add support for domain operator (utilities/file_location_listing#11)

+40 -2 (42 lines changed)
verified

mentioned in commit 6f2d155d5baae271edb435cd45a475374e624b6c

Commit: 6f2d155d5baae271edb435cd45a475374e624b6c 
Author: B Tasker                            
                            
Date: 2023-12-29T13:40:36.000+00:00 

Message

feat: Add hastitle operator (utilities/file_location_listing#11)

Supports true, false, 1,0,y,n as values

+22 -6 (28 lines changed)
verified

mentioned in commit 4761756efafd461d301bb14b9e3a2e7d7b415edf

Commit: 4761756efafd461d301bb14b9e3a2e7d7b415edf 
Author: B Tasker                            
                            
Date: 2023-12-29T13:47:14.000+00:00 

Message

feat: add ext operator to allow filtering by filename extension (utilities/file_location_listing#11)

+9 -1 (10 lines changed)

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