Hi Jack,
Thank you for the suggestions.
I'm using DIH and the field names mobile,home,office comes as database
fields. And 'phones' field is defined in schema.xml as multiValued.
in DIH I'm using sub-entity for 'phones' fields.
Let me give a try based on your suggestion :-).
Thank you
--
View
Hi Tamanjit,
Not really :-).
**phones** is an multiValued. Usually solr will produce list of array of
values without naming each row something like this
Micheal
Schumacher
090933434343
052323232323
073628362782
I wanted to be this way.
Micheal
Schumacher
090933434343
Unfortunately, no. Multivalued fields are a great and powerful, but very
simple feature, with the emphasis on simplicity. There are all sorts of
hacks that you can use to get around that limitation, but no direct feature
for "nested documents".
1. You can form a composite string: "home: 052323
So your doc would look something like this:
Micheal
Schumacher
090933434343
052323232323
073628362782
090933434343
052323232323
073628362782
--
View this message in context:
http://lucene.472066.n3.nabble.com/multiValued-How-do-I-specify-name-to-each-value-returned-by-multi
I think what you require here is to have different fields for mobile/landline
etc. Based on where and what data you fetch these fields will be populated.
You can also have a multivalued field that will contain all these fields
(copyField can come in handy) for search etc.
--
View this message in