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 Wesley Small <We...@mtvstaff.com> on 2009/04/06 11:05:05 UTC

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.

Thanks,
Wesley


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

Posted by Fergus McMenemie <fe...@twig.me.uk>.
>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
===============================================================

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

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Mon, Apr 6, 2009 at 2:35 PM, Wesley Small <We...@mtvstaff.com>wrote:

>
> 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>
>

That is not a valid configuration. There can be only one single config (the
one specified under "defaults") per core.


>
> For example, is there any to specific only the "pc_local_event" be process
> (imported)?


Perhaps what you intend to do, can be achieved through multiple root
entities in the same data-config.xml ?


> 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.


All root entities are executed sequentially. What behavior are you seeing?

-- 
Regards,
Shalin Shekhar Mangar.

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

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
There is a debug mode
http://wiki.apache.org/solr/DataImportHandler#head-0b0ff832aa29f5ba39c22b99603996e8a2f2d801

On Mon, Apr 6, 2009 at 2:35 PM, Wesley Small <We...@mtvstaff.com> wrote:
> 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.
>
> Thanks,
> Wesley
>
>



-- 
--Noble Paul