You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You don't declare the mapping for the ObjectField but i guess it is because your mapping is kind of dynamic ? it can be one time {1: [{'taglevel': 1, 'name': Foo'}], 2: [{'taglevel': 2, 'name': Bar'}} another time {1: [{'taglevel': 1, 'name': Foo'}]} and so on ?
You need to declare the mapping of your data in ObjectField, but as your data is formated now, it will not work.
Can you put you data in a list of objects instead, like this ? [{'find_name_1': 1, 'find_name_2': [{'taglevel': 1, 'name': Foo'}]}, {'find_name_1': 2', 'find_a_name_2': [{'taglevel': 2, 'name': Bar'}] } ]
Sorry for the dummy example i don't know how to call these fields :)
Then you need to declare the mapping in Objectfield.
I haven't test theses examples it's just some indications.
You probably shouldn't use a small library, not release on pip and with not many contrib/stargazers, if you don't really know exactly what you want from it.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to return data from a function, but the result is empty:
For example, the result is:
But should be:
I have tried both the
NestedField
andObjectField
options. Both gave the same traceback (as per below).I used
pdb
to debug, and I can see the correct result atreturn grouped_tags
but it never arrives in elasticsearch.IF THIS ISN'T POSSIBLE PLEASE tell me as I have spent weeks on this, and raised issues here and StackOverflow.
Otherwise, how can I get the results from my function?
Thanks
documents.py
models.py
The text was updated successfully, but these errors were encountered: