On Tue, Nov 1, 2011 at 11:07 PM, Radha Krishna Reddy
<radhakrishn...@gmail.com> wrote:
[...]
> 1. I have an enum column in my sql table.i want to index that column.which
> fieldtype should i specify in the schema.xml for enum?

I presume that you are using the DataImportHandler for indexing.

You will need to convert the enum value into an int (or, whatever is
appropriate). This can be done in the SQL statement that fetches
the data, or in a script processor in data-config.xml.

> 2. Normally we can index one column in a table using the  column header as
> entity name and the column data as value of the entity.Can i index 2 column
> where one column will be the entity name and the other will be the value of
> the entity in the data-config.xml?

Yes, you can.

Regards,
Gora

Reply via email to