lucene-solr icon indicating copy to clipboard operation
lucene-solr copied to clipboard

SOLR-13008 Indent JSON/XML formatted field value if indent=true and using DocumentTransformer

Open epugh opened this issue 7 years ago • 3 comments

epugh avatar Nov 22 '18 13:11 epugh

I've run "ant test" and while there are some failures, they don't appear to be related to this feature. I'm testing it now compiling and running Solr.

epugh avatar Nov 23 '18 14:11 epugh

I added some nicer indenting. For a JSON block like:

{
"am I a teapot":true,
"lyrics":[
"I'm a little teapot","Short and stout","Here is my handle","Here is my spout"
]
}

with indent=false: noindent

However, with 'indent=true`: indented

I'd love some feedback, as I am relying on Jackson to parse the XML or JSON string, and their is some assumptions on indentation levels that I made...

epugh avatar Nov 27 '18 18:11 epugh

This whole PR may be too icky to really press forward with. Will think about it some more if htere is a better route.

epugh avatar Mar 23 '20 15:03 epugh