lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danutclapa <>
Subject SolR response encapsulation
Date Sun, 29 Mar 2015 18:04:04 GMT
i am new in SolR and i didn't figured out if in SolR the encapsulation of
response can be in such a way to allow
directly mapping the response into an object like in ORM using JPA.

what i have in SolR:
- i have some fields that are unique and others that are not like this:
lastName, firstName, productsId (multivalued setted in Solr), productsName
(also multivalued)

the actual response of Solr is like (lets consider JSON resonse):

 {"lastName": "John", "firstName": "Doe", "productsId ": [{"1","2","3"}],
"productsName": [{"prod1","prod2","prod3"}]}

what i want is that the response to have subobjects  - the productId and the
productName obviously are an object and should be encapsulated like an

and the response should look like:
 {"lastName": "John", "firstName": "Doe", "products":

Is there possible to response to be such that?

Thank you,

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message