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 andreas owen <a....@gmx.net> on 2013/09/16 20:47:52 UTC

dih delete doc per $deleteDocById

i am using dih and want to delete indexed documents by xml-file with ids. i have seen $deleteDocById used in <entity query="...">

data-config.xml:
<entity name="rec" processor="XPathEntityProcessor" url="file:///C:\ColdFusion10\cfusion\solr\solr\tkbintranet\docImportDelete.xml" forEach="/docs/doc" dataSource="main" >
	<field column="$deleteDocById" xpath="//id" />	
</entity>

xml-file:
<docs>
	<doc>
		<id>2345</id>
	</doc>
</docs>

Re: dih delete doc per $deleteDocById

Posted by Andreas Owen <ao...@conx.ch>.
sorry, it works like this, i had a typo in my conf :-(

On 17. Sep 2013, at 2:44 PM, Andreas Owen wrote:

> i would like to know how to get it to work and delete documents per xml and dih.
> 
> On 17. Sep 2013, at 1:47 PM, Shalin Shekhar Mangar wrote:
> 
>> What is your question?
>> 
>> On Tue, Sep 17, 2013 at 12:17 AM, andreas owen <a....@gmx.net> wrote:
>>> i am using dih and want to delete indexed documents by xml-file with ids. i have seen $deleteDocById used in <entity query="...">
>>> 
>>> data-config.xml:
>>> <entity name="rec" processor="XPathEntityProcessor" url="file:///C:\ColdFusion10\cfusion\solr\solr\tkbintranet\docImportDelete.xml" forEach="/docs/doc" dataSource="main" >
>>>       <field column="$deleteDocById" xpath="//id" />
>>> </entity>
>>> 
>>> xml-file:
>>> <docs>
>>>       <doc>
>>>               <id>2345</id>
>>>       </doc>
>>> </docs>
>> 
>> 
>> 
>> -- 
>> Regards,
>> Shalin Shekhar Mangar.


Re: dih delete doc per $deleteDocById

Posted by Andreas Owen <ao...@conx.ch>.
i would like to know how to get it to work and delete documents per xml and dih.

On 17. Sep 2013, at 1:47 PM, Shalin Shekhar Mangar wrote:

> What is your question?
> 
> On Tue, Sep 17, 2013 at 12:17 AM, andreas owen <a....@gmx.net> wrote:
>> i am using dih and want to delete indexed documents by xml-file with ids. i have seen $deleteDocById used in <entity query="...">
>> 
>> data-config.xml:
>> <entity name="rec" processor="XPathEntityProcessor" url="file:///C:\ColdFusion10\cfusion\solr\solr\tkbintranet\docImportDelete.xml" forEach="/docs/doc" dataSource="main" >
>>        <field column="$deleteDocById" xpath="//id" />
>> </entity>
>> 
>> xml-file:
>> <docs>
>>        <doc>
>>                <id>2345</id>
>>        </doc>
>> </docs>
> 
> 
> 
> -- 
> Regards,
> Shalin Shekhar Mangar.


Re: dih delete doc per $deleteDocById

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
What is your question?

On Tue, Sep 17, 2013 at 12:17 AM, andreas owen <a....@gmx.net> wrote:
> i am using dih and want to delete indexed documents by xml-file with ids. i have seen $deleteDocById used in <entity query="...">
>
> data-config.xml:
> <entity name="rec" processor="XPathEntityProcessor" url="file:///C:\ColdFusion10\cfusion\solr\solr\tkbintranet\docImportDelete.xml" forEach="/docs/doc" dataSource="main" >
>         <field column="$deleteDocById" xpath="//id" />
> </entity>
>
> xml-file:
> <docs>
>         <doc>
>                 <id>2345</id>
>         </doc>
> </docs>



-- 
Regards,
Shalin Shekhar Mangar.