Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get rid of None values in prepareData @collective.solr/src/collective/solr/utils.py #276

Open
zmijunkie opened this issue Oct 30, 2020 · 1 comment

Comments

@zmijunkie
Copy link

zmijunkie commented Oct 30, 2020

Hi - I just made prepareData(data) on my computer leave like this:

# get rid of None values
filtered = {k: v for k, v in data.items() if v is not None}
data.clear()
data.update(filtered)

Does this make sense for anybody else ? My usecase is: I have a plentyful of
attibutes and want to store only these with are not None. Also I found it weird to
store Strings in Solr with a value of "None" but YUMV ?

thx for your input,
Sascha

@tisto
Copy link
Member

tisto commented Jan 31, 2023

@reebalazs could this be related to your investigations regarding Null values in c.solr? Just wondering...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants