You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Fergus McMenemie <fe...@twig.me.uk> on 2009/04/06 11:34:35 UTC

Re: DIH API for specifying a either specific or all configurations imported

>Good Morning,
>
>Is there any way to specify or debug a specific DIH configuration via the
>API/http request?
>
>I have the following:
>
><lst name="defaults">
><str name="config">dih_pc_default_feed.xml</str>
></lst>
><lst name="pc_cms_article">
><str name="config">dih_pc_cms_article_feed.xml</str>
></lst>
><lst name="pc_local_event">
><str name="config">dih_pc_local_event_feed.xml</str>
></lst>
>
>For example, is there any to specific only the "pc_local_event" be process
>(imported)?
>
>Another questions, if command=full-import, this should effectively mean that
>all DIH configuration are executed in sequential order.  Is that correct?  I
>am not seeing that behaviour at present.
>

Wesley,

I do not think the above is valid syntactically.

I am a still coming up to speed on DIH, however I have taken to storing all
my DIH import configurations in a single file. Each of your different
configurations would be within its own top level entity tag. Each of which
MUST be named. It is also a good idea to explicitly name each of your
datasource descriptions, and then have the entities reference there datasource
by name. I can then invoke only that entity from the URL as follows:-

http://localhost:8080/apache-solr-1.4-dev/dataimport?command=full-import&entity=jc

See the docs at:-

http://wiki.apache.org/solr/DataImportHandler#head-1582242c1bfc1f3e89f4025bf2055791848acefb

Fergus.

-- 

===============================================================
Fergus McMenemie               Email:fergus@twig.me.uk
Techmore Ltd                   Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer
===============================================================