lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "XMLResponseFormat" by scottchu
Date Fri, 23 Nov 2012 07:46:54 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "XMLResponseFormat" page has been changed by scottchu:

  The default behavior is not to indent.
+ == 'newline/line break character' ==
+ When your output contains newline character (Windows = CRLF, Linux=LF, MAC=CR as far as
we know), the xml output in browser won't show line break effect. If you select 'view source',
you can see there're indeed line break, though, i.e. Solr doesn't affect stored data). For
other writer types, such as php, json, csv ,etc, they don't have this problem (json writer
type even escapes newline). People normally read data from solr and show html page, if this
is your request, you can use this regular expression to issue a statement, e.g. value.replaceWith("/\r\n/",
to replace newline to <br> tag. Adapt the syntax to the language you use before you
execute this statement.

View raw message