From: Andrea A. <and...@ge...> - 2012-06-24 13:12:59
|
On Fri, Jun 22, 2012 at 2:22 PM, Mark Paxton <ma...@in...> wrote: > I'm reading data from a KML file into MemoryStore. I think the problem > lies in that I'm using the "description" property and this has some '\n' > characters which confuses things. The following works, but not on my > description property: > > filterFactory.like(filterFactory.property("name"), "*56*"); > > Yep, the Pattern created in LikeFilterImpl does not have the Pattern.MULTILINE flag, so it will only match the first line. Not sure the spec says anything about this one, but it seem like a bug, since there is no way to control single line vs multiline behavior. Can you open a bug report at jira.codehaus.org? Patch + test welcomed :-) Cheers Andrea -- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf |