There is a very cool debugger for the DataImportHandler:

http://www.lucidimagination.com/search/document/CDRG_ch06_6.4.9?q=dataimport
debug jsp

It is not mentioned on the wiki, nor are there any links to it in the
Solr admin console.

On Mon, Mar 22, 2010 at 8:36 AM, stocki <[email protected]> wrote:
>
> Helloooooo.
>
> i have the same database like in this example:
> http://wiki.apache.org/solr/DataImportHandler?highlight=(dih)#Full_Import_Example
>
> this is my data-config.xml
>
> <document>
>    <entity name="item"
>            query="select id, shop_id, is_active, order_index,
> shop_item_number, manufacturer, name, ean, isbn, modified from shop_items">
>       <field column="id"                               name="id"/>
>       <field column="shop_id"                          name="shop_id"/>
>       <field column="order_index"                      name="popularity"/>
>       <field column="shop_item_number"         name="shop_item_number" />
>       <field column="manufacturer"             name="manufacturer" />
>       <field column="name"                             name="name"/>
>       <field column="ean"                                      name="ean"/>
>       <field column="isbn"                             name="isbn"/>
>           <field column="is_active"                    name="is_active"/>
>           <field column="modified"                     name="modified"
> dateTimeFormat="yyyy-MM-'hh:mm:ss'Z'" />
>
>                <entity name="item_category" query="select shop_category_id 
> FROM
> shop_item_category_mappings where shop_item_id='${item.ID}'">
>                        <field column="shop_category_id" 
> name="shop_category_id" />
>
>                        <entity name="categoryName" query="select name from 
> shop_categories where
> id =            '${item_category.shop_category_id}'">
>                                <field column="name" name="category" />
>                        </entity>
>                </entity>
>
>    </entity>
>  </document>
>
>
> i have absolute no idea why solr didnt index the category name and
> category_id...
>
> one product can have more than one values.
>
> please help meeeeeee someone .. ^^ ;)
>
> --
> View this message in context: 
> http://old.nabble.com/DIH---Categories-not-indexed------tp27988126p27988126.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
Lance Norskog
[email protected]

Reply via email to