After the tutorial the other day, I wanted to migrate a database that I had to a local OPTIMADE server with a mongodb backend. Since my database has none of the OPTIMADE required fields, I have to use the BaseResourceMapper to transform it, something I’m still figuring out. One other thing I realized while playing around with the test_structures is that while I can add my own fields and they show up in both the structures and /info/structures endpoints (with the description, type and all in the latter, this took some time to figure out), I still can not filter results using this provider specific field. The field I’m trying to filter has a type of float so that’s the type I’m using when adding this OptimadeField and it also shows up as float in info/structures but unfortunately filtering returns an empty list. There is no errors with the response, it’s just that there isn’t anything returned.
I also tried changing the type to int but I still can’t seem to filter using this field. Is there something I am missing here?