Re: How could I set multi-value for a field in DataImporter

2011-03-31 Thread kun xiong
I found the answer from source code. Using a Collection as value. Thanks any way 2011/4/1 kun xiong > Stefan, > > Thanks very much for your quick reply. > > Actually I have to write a CustomDataImporter class to full-import data and > index them all. > > So it should be done in java code and s

Re: How could I set multi-value for a field in DataImporter

2011-03-31 Thread kun xiong
Stefan, Thanks very much for your quick reply. Actually I have to write a CustomDataImporter class to full-import data and index them all. So it should be done in java code and schema.xml. When I write a CustomDataImporter, I have to implement a nextRow() method, which return a map. And also s

Re: How could I set multi-value for a field in DataImporter

2011-03-31 Thread Stefan Matheis
Kun, it should be enough to use the same field second time, like this: value2 Regards Stefan On Thu, Mar 31, 2011 at 11:39 AM, kun xiong wrote: > Since the interface of DataImporter return a Map, I can't put multi value > for a same field, right? > > Example: > > I write a class extending Data

How could I set multi-value for a field in DataImporter

2011-03-31 Thread kun xiong
Since the interface of DataImporter return a Map, I can't put multi value for a same field, right? Example: I write a class extending DataImporter, and want to index {"value1", "value2"} for field "name". How should I do? Many thanks. Kun