Is there a bug entry for this ? Have you been able to reproduce this behaviour ?
-----Ursprüngliche Nachricht----- Von: Otis Gospodnetic [mailto:otis.gospodne...@gmail.com] Gesendet: Dienstag, 5. Februar 2013 12:52 An: solr-user@lucene.apache.org Betreff: Re: Is Solr always trimming result objects ? Looks like a bug to me. Otis Solr & ElasticSearch Support http://sematext.com/ On Feb 5, 2013 5:44 AM, "Marc Hermann" <marc.herm...@isb-ag.de> wrote: > > Hi everyone, > > i am new to SOLR and I have experienced a strange behavior: > > I have defined a field called name of type "string". This field > contains values with trailing spaces such as " John". > This is intended and the space needs to "survive". > > The space is in the index as I can see when using Luke. > > But when I am retrieving documents from the index using : > > final CommonsHttpSolrServer sorlServer = > server.connection(query.retrieveCore()); > final SolrQuery solrQuery = query.getSolrQuery(); > final QueryResponse response = sorlServer.query(solrQuery); > > final Result result = new Result(); > final SolrDocumentList documents = response.getResults(); > > > ... I don´t get the spaces (so I get "John") ... as if all values > always get a trim() before they are returned. > > Any suggestions ? > Is this a standard behavior ? > > Best regards, > > M. Hermann >