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

Overly brittle to bad data #40

Open
foobacca opened this issue Jan 20, 2012 · 1 comment
Open

Overly brittle to bad data #40

foobacca opened this issue Jan 20, 2012 · 1 comment

Comments

@foobacca
Copy link
Contributor

I've regularly had sunburnt tripping over bad data and just flipping out. I added a little info to help debugging with this patch.

I'm wondering if it might be worth having a "non-strict" mode where it just makes the field value null rather than throwing an exception. This would suit my use case fine. It could be set as an argument to the constructor for SolrInterface, or maybe just on a per-query basis.

An example of the data I trip up on is:


I could have a go at writing this myself, but thought I'd just check if you'd be up for a "non-strict" mode.

@foobacca
Copy link
Contributor Author

Oops, github didn't like the pre tag, lets try again with the bad data.

<arr name="publisher_id">
<int/>
</arr>

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

1 participant