Catman...r::CQL(3pm)

πŸ’– Catmandu::Store::Solr::CQL β€” the manual, but make it slay πŸ’–

okay bestie, so this is the page for Catman...r::CQL(3pm), filed under User Contributed Perl Documentation β€” and it's literally the little glow-up machine that takes your CQL query string and turns it into a Solr query string. no cap. let's get into it πŸ¦‹


✨ NAME ✨

Catmandu::Store::Solr::CQL β€” she converts a CQL query string into a Solr query string. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

like, this is the moment:

$solr_query_string = Catmandu::Store::Solr::CQL->parse($cql_query_string);

one line. one call. iconic. ✨


πŸŽ€ DESCRIPTION πŸŽ€

so rn this package parses most of CQL 1.1, and here's the full guest list of everything it currently handles β€” every single one, no gatekeeping:

and
or
not
prox
prox/distance<$n
srw.allRecords
srw.serverChoice
srw.anywhere
cql.allRecords
cql.serverChoice
cql.anywhere
=
scr
=/fuzzy
scr/fuzzy
<
>
<=
>=
<>
exact
all
any
within

that's it, that's the list, and yes it's giving "most of CQL 1.1" and not "all of it" β€” read the TODO if you wanna know what's still missing πŸ‘€


🧚 METHODS 🧚

🌈 parse

she parses the CQL query string you hand her using CQL::Parser, then converts it into a Solr query string. glow-up complete. πŸ’–

🌈 visit

she converts the given CQL::Node into a Solr query string. same energy, different entry point. ✨


πŸ’€ TODO πŸ’€

the "we'll get to it bestie" list, fr fr:

  • support cql 1.2
  • more modifiers (esp. masked)
  • sortBy
  • encloses

manifesting these for a future release πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

  • CQL::Parser. πŸ’…

and that's the whole page, bestie β€” thanks for reading, ily 🫢

this was perl v5.36.0, dated 2023-02-05, and it lives under Catman...r::CQL(3pm). periodt. πŸ’œ
πŸ“¦ where this page comes from