跳转至

foundryts.search.Property

class foundryts.search.Property(name, property_type, field, should_normalize=False, force_analyze=False)

A FoundryTS wrapper for an Ontology object property.

This class is used internally for evaluating Search queries. As a result of ontology(), instances of Property will be evaluated for Search expressions.

  • Parameters:
  • name (str) – Name of the Ontology object property.
  • property_type (type) – The type of values in the property as a Python time. Review corresponding supported types in the ↗ Platform documentation.
  • should_normalize (bool , optional) – Whether to normalize the name of the Ontology property. (default is False).
  • force_analyze (bool , optional) – (DEPRECATED) Whether to reference raw properties. (default is False).

中文翻译


foundryts.search.Property

class foundryts.search.Property(name, property_type, field, should_normalize=False, force_analyze=False)

一个用于封装 Ontology 对象属性(Property)的 FoundryTS 包装器。

该类在内部用于评估 Search 查询。通过 ontology() 返回的 Property 实例将被用于 Search 表达式的评估。

  • 参数说明:
  • name (str) – Ontology 对象属性的名称。
  • property_type (type) – 属性值的 Python 类型。请参考 ↗ 平台文档 中对应的支持类型。
  • should_normalize (bool , 可选) – 是否对 Ontology 属性名称进行规范化处理(默认值为 False)。
  • force_analyze (bool , 可选) – (已弃用)是否引用原始属性(默认值为 False)。