Freetext

class pyvo.registry.Freetext(*words: str)[source]

Bases: Constraint

A contraint using plain text to match against title, description, subjects, and person names.

Parameters
*wordstuple of str

It is recommended to pass multiple words in multiple strings arguments. You can pass in phrases (i.e., multiple words separated by space), but behaviour might then vary quite significantly between different registries.

Methods Summary

get_search_condition(service)

Formats this constraint to an ADQL fragment.

Methods Documentation

get_search_condition(service)[source]

Formats this constraint to an ADQL fragment.

This takes the service the constraint is being executed on as an argument because constraints may be written differently depending on the service’s features or refuse to run altogether.

Parameters
serviceTAPService

The RegTAP service the query is supposed to be run on (that is relevant because we adapt to the features available on given services).

Returns
str

A string ready for inclusion into a WHERE clause.