Pawan,

just separating multiple values by comma does not make them
multi-value in solr-speak. But if you're already using DIH, you may
try the http://wiki.apache.org/solr/DataImportHandler#RegexTransformer
to 'splitBy' the field and get the expected field-values

Regards
Stefan

On Thu, Jun 9, 2011 at 6:14 AM, Pawan Darira <pawan.dar...@gmail.com> wrote:
> Hi
>
> I am trying to index 2 fields with multiple values. BUT, it is only putting
> 1 value for each & ignoring rest of the values after comma(,). I am fetching
> query through DIH. It works fine if i have only 1 value each of the 2 fields
>
> E.g. Field1 - 150,178,461,151,310,306,305,179,137,162
> & Field2 - Chandigarh,Gurgaon,New
> Delhi,Ahmedabad,Rajkot,Surat,Mumbai,Nagpur,Pune,India - Others
>
> *Schema.xml*
>
> <field name="city_type" type="text" indexed="true" stored="true"/>
> <field name="city_desc" type="text" indexed="true" stored="true"/>
>
>
> p.s. i tried multivalued=true but of no help.
>
> --
> Thanks,
> Pawan Darira
>

Reply via email to