philomena-dev / philomena

Next-generation imageboard
GNU Affero General Public License v3.0
84 stars 29 forks source link

Split out query features to PhilomenaQuery namespace #266

Closed liamwhite closed 4 weeks ago

liamwhite commented 1 month ago

This deletes all of the Elastic-specific language and adds a new namespace under the root named PhilomenaQuery, which contains all the mechanism behavior for search:

This also adds a policy module to the main Philomena namespace which defines the names of each index module. This allows the entire query namespace to effectively be used and unit tested as a library.

Documentation and typespecs are intended to be comprehensive. I intend to add tests and coverage requirements at a later date to ensure they remain so.