What does $meta
mean?
#34536
Answered
by
yhmo
secsilm
asked this question in
Q&A and General discussion
What does `$meta` mean?
#34536
-
Below is a piece of code generated by attu. What does # python search code
res = client.search(
collection_name="en_tmp", # Collection name
data=query_vector, # Replace with your query vector
search_params={
"metric_type": "COSINE",
"params": {}, # Search parameters
}, # Search parameters
limit=50, # Max. number of search results to return
output_fields=["news_id","country","publish_time","$meta"], # Fields to return in the search results
consistency_level="Strong"
) |
Beta Was this translation helpful? Give feedback.
Answered by
yhmo
Jul 10, 2024
Replies: 1 comment
-
$meta is the name of the dynamic field. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
secsilm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$meta is the name of the dynamic field.
If you turn on the "enable_dynamic_field", the collection will have a build-in JSON type field whose name is "$meta" to store all the dynamic fields values.
schema = CollectionSchema(fields=fields, enable_dynamic_field=True)