Re: preImportDeleteQuery

2009-05-08 Thread wojtekpia

I'm using full-import, not delta-import. I tried it with delta-import, and it
would work, except that I'm querying for a large number of documents so I
can't afford the cost of deltaImportQuery for each document.

It sounds like $deleteDocId will work. I just need to update from 1.3 to
trunk. Thanks!


Noble Paul നോബിള്‍  नोब्ळ्-2 wrote:
 
 are you doing a full-import or a delta-import?
 
 for delta-import there is an option of deletedPkQuery which should
 meet your needs
 
 

-- 
View this message in context: 
http://www.nabble.com/preImportDeleteQuery-tp23437674p23450308.html
Sent from the Solr - User mailing list archive at Nabble.com.



preImportDeleteQuery

2009-05-07 Thread wojtekpia

Hi,
I'm importing data using the DIH. I manage all my data updates outside of
Solr, so I use the full-import command to update my index (with
clean=false). Everything works fine, except that I can't delete documents
easily using the DIH. I noticed the preImportDeleteQuery attribute, but
doesn't seem to do what I'm looking for. I'm looking to do something like:

preImportDeleteQuery=ItemId={select ItemId from table where
status='delete'}

http://issues.apache.org/jira/browse/SOLR-1059 SOLR-1059  seems to address
this, but I couldn't find any documentation for it in the wiki. Can someone
provide an example of how to use this?

Thanks,

Wojtek
-- 
View this message in context: 
http://www.nabble.com/preImportDeleteQuery-tp23437674p23437674.html
Sent from the Solr - User mailing list archive at Nabble.com.



Re: preImportDeleteQuery

2009-05-07 Thread Martin Davidsson

On May 7, 2009, at 4:52 PM, wojtekpia wrote:


Hi,
I'm importing data using the DIH. I manage all my data updates  
outside of

Solr, so I use the full-import command to update my index (with
clean=false). Everything works fine, except that I can't delete  
documents
easily using the DIH. I noticed the preImportDeleteQuery attribute,  
but
doesn't seem to do what I'm looking for. I'm looking to do something  
like:


preImportDeleteQuery=ItemId={select ItemId from table where
status='delete'}

http://issues.apache.org/jira/browse/SOLR-1059 SOLR-1059  seems to  
address
this, but I couldn't find any documentation for it in the wiki. Can  
someone

provide an example of how to use this?

Thanks,

Wojtek
--
View this message in context: 
http://www.nabble.com/preImportDeleteQuery-tp23437674p23437674.html
Sent from the Solr - User mailing list archive at Nabble.com.


I haven't used those special variables but I noticed an example of  
$skipDoc in the wiki under the Indexing Wikipedia example (http://wiki.apache.org/solr/DataImportHandler 
).


-- Martin

Re: preImportDeleteQuery

2009-05-07 Thread Noble Paul നോബിള്‍ नोब्ळ्
are you doing a full-import or a delta-import?

for delta-import there is an option of deletedPkQuery which should
meet your needs

On Fri, May 8, 2009 at 5:22 AM, wojtekpia wojte...@hotmail.com wrote:

 Hi,
 I'm importing data using the DIH. I manage all my data updates outside of
 Solr, so I use the full-import command to update my index (with
 clean=false). Everything works fine, except that I can't delete documents
 easily using the DIH. I noticed the preImportDeleteQuery attribute, but
 doesn't seem to do what I'm looking for. I'm looking to do something like:

 preImportDeleteQuery=ItemId={select ItemId from table where
 status='delete'}

 http://issues.apache.org/jira/browse/SOLR-1059 SOLR-1059  seems to address
 this, but I couldn't find any documentation for it in the wiki. Can someone
 provide an example of how to use this?

 Thanks,

 Wojtek
 --
 View this message in context: 
 http://www.nabble.com/preImportDeleteQuery-tp23437674p23437674.html
 Sent from the Solr - User mailing list archive at Nabble.com.





-- 
-
Noble Paul | Principal Engineer| AOL | http://aol.com