kuhumcst / glossematics

The life of Louis Hjelmslev.
https://glossematics.dk
4 stars 1 forks source link

Implement NOT for search criteria #65

Open simongray opened 2 years ago

simongray commented 2 years ago

The current search functionality is quite powerful, but sometimes you probably want e.g. only letters of third parties mentioning someone without that person themselves being a correspondent in that exchange which is often the case. This requires being able to make search criteria like

[ mentioned: Daniel Jones ]
[ NOT correspondent: Daniel Jones ]

Ways to implement

  1. Double the amount of options in the dropdown adding the negatives, perhaps with a heading. This is probably the easiest way to solve this, however, it might get unruly with that many options.
simongray commented 2 years ago

Things that are more difficult to solve:

Perhaps the NOT part is better kept in the value part? e.g.

?document.recipient=!#np56&...
simongray commented 2 years ago

This is proving much more difficult to implement than I had first anticipated. Abandoning for now.

Work-in-progress changes can be found in https://github.com/kuhumcst/glossematics/tree/feature/65-not-criteria.