lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roopesh P Raj <roop...@digitalglue.in>
Subject Re: DeleteByQuery python syntax for delte all
Date Thu, 19 Jul 2007 11:56:27 GMT
This should work :
c.deleteByQyery('id:[* TO *]')
c.commit()

Regards
Roopesh

vanderkerkoff wrote:
> Hello everyone
>
> Loving solr, got an idiot question for you.
>
> I have been manually deleting our index in the python interpretor when
> testing
>
> from solr import SolrConnection
> c = SolrConnection(host='localhost:8983', persistent=False)
> allgone = '[ * : * ]'
> c.deleteByQuery(query=allgone)
> c.commit(optimize-True)
>
> I've forgotten the exact syntax for this line
> allgone = '[ * : * ]'
>
> Can't seem to get it right, anyone know what it should be?
>
> Is it '[all:all]' or something?
>
> Any help, greatly appreciated
>
>
>
>
>   


------------------
DigitalGlue, India




Mime
View raw message