lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tolga <to...@ozses.net>
Subject Re: Fwd: Delete documents
Date Fri, 11 May 2012 08:49:52 GMT
That worked, thanks a lot Jack :)

On 5/11/12 7:44 AM, Jack Krupansky wrote:
> Try using the actual id of the document rather than the shell 
> substitution variable - if you're trying to delete one document.
>
> To delete all documents, use delete by query:
>
> <delete><query>*:*</query></delete>
>
> See:
> http://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F 
>
>
> -- Jack Krupansky
>
> -----Original Message----- From: Tolga
> Sent: Friday, May 11, 2012 12:31 AM
> To: solr-user@lucene.apache.org
> Subject: Fwd: Delete documents
>
> Anyone at all?
>
> -------- Original Message --------
> Subject: Delete documents
> Date: Thu, 10 May 2012 22:59:49 +0300
> From: Tolga <tolga@ozses.net>
> To: solr-user@lucene.apache.org
>
>
>
> Hi,
> I've been reading
> http://lucene.apache.org/solr/api/doc-files/tutorial.html and in the
> section "Deleting Data", I've edited schema.xml to include a field named
> id, issued the command for f in *;java -Ddata=args -Dcommit=yes -jar
> post.jar "<delete><id>$f</id></delete>";done, went on to the
stats page
> only to find no files were de-indexed. How can I do that?
>
> Regards,
>

Mime
View raw message