lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Hermann" <Marc.Herm...@isb-ag.de>
Subject Is Solr always trimming result objects ?
Date Mon, 04 Feb 2013 16:40:36 GMT
Hi everyone,

i am new to SOLR and I have experienced a strange behavior:

I have defined a field "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 ... as if all values always get a trim() before
they are returned.

Any suggestions ? 
Is this a standard behavior ?

Best regards,

M. Hermann

Mime
View raw message