Question on filter element/params / sort modifier or sort ranking

Discussion related to "Everything" 1.5.
Post Reply
20dots
Posts: 1
Joined: Fri Apr 25, 2025 7:33 pm

Question on filter element/params / sort modifier or sort ranking

Post by 20dots »

Apologies if this belongs in another category.

I'm trying to accomplish a few related things. Primarily find results that match <title phrase> and then prioritize the sort if they also include <actor name>.

Eventually i stumbled upon the filters and multi params and got something sort of working:

Code: Select all

<[element:$param:,",",1] a:=1>|<[element:$param:,",",2] a:=2> sort:column-a
Configured as a macro optname: I can successfully do a search like `optname:"actor name", movie title` and it accomplishes what I want, mostly. I couldn't get it working without an explicit "" around the "actor name" for example <actor name> as a group for the first param so it isn't just exact matches but instead matches for both words independent of location in name. Is there a way to accomplish this?

It would be great to have some clear documentation on the whole element and param stuff as it wasn't very intuitive and I still don't 100% understand it.

Somewhat related I considered just simple searches like: one|two wouldn't it make sense to sort results by most matches? For example prioritize results that match both terms first? That would mostly accomplish my original goal (except also returning a bunch of extras just for two).

Also on a further tangent have you considered adding a vector embeddings based semantic type search ranking feature to everything?
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Question on filter element/params / sort modifier or sort ranking

Post by void »

Is there a way to accomplish this?
Macros are really only designed to accept a single word parameter.

The quotes are required to escape the spaces:

optname:"actor name","movie title"




Consider the following filter search to check for word1 AND word2:

Code: Select all

<[element:$param:,",",1] [element:$param:,",",2] a:=1>|<[element:$param:,",",1] a:=2>|<[element:$param:,",",2] a:=3> sort:column-a
This will show results that contain both words higher.



Consider using name: to allow ; OR-lists:

Code: Select all

<name:[element:$param:,",",1] name:[element:$param:,",",2] a:=1>|<name:[element:$param:,",",1] a:=2>|<name:[element:$param:,",",2] a:=3> sort:column-a
This will allow you to search for:
optname:john;jane,"movie title"


; = OR when using name:



Search Preprocessor
Post Reply