esmero / format_strawberryfield

Set of Display formatters, extractors and utils to make Strawberry field data glow
GNU Lesser General Public License v3.0
6 stars 9 forks source link

Join Flavors on ADO Full Text search #287

Closed DiegoPino closed 1 year ago

DiegoPino commented 1 year ago

What?

Allow Unified Full Text Experience by enabling an additional custom Views Filter that modifies the Query to selectively, by inheriting a Full Text Search Filter's options and Input, bring Matched ADOs results based on their Children SBF Solr Documents.

@alliomeria will explain how this works tomorrow. Won't show the how 'just yet' bc I want to have the full solution working and tested first (in code, it actually works already!)

DiegoPino commented 1 year ago

Note: this is much easier for the Normal Full Text Search API Filter. The advanced one needs extra processing since the multiple Fields searched against need to be separated between datasources. Probably the best solution is to allow that Special Advanced Filter to deal with this need by itself instead of depending on this new one.

DiegoPino commented 1 year ago

Learned some new stuff today. Because we have the need to OR the results. e.g, Means basically Anything that matches OCR given a search Token + Anything that matches also Metadata from an ADO, the actual query behavior is a bit more complex but Solarium provides all the pieces I need for an dereferenced query (for that use case), but also, this allows us (inverse need happened to fall into my lap!) to e.g Filter for any ADO that produced OCR, or Text Extraction, etc. Expanding our Faceting (harder but possible) or filtering capabilities (Show me only/ Search only for ADOs that have OCR). @giancarlobi I think you will enjoy this (miss you friend!)

DiegoPino commented 1 year ago

Resolved via https://github.com/esmero/format_strawberryfield/pull/288 and https://github.com/esmero/strawberryfield/pull/258 Will open a new one that selectively does this for advanced search

DiegoPino commented 1 year ago

Resolved via https://github.com/esmero/format_strawberryfield/pull/288 and https://github.com/esmero/strawberryfield/pull/258