Re: Delete documents from the Solr index using SolrJ

2019-11-05 Thread Erick Erickson
wly added > docs. I hope this is possible, but how ? > Because, currently I am using SolrJ and it re-index complete data each time. > > -Original Message- > From: Peter Lancaster [mailto:peter.lancas...@findmypast.com] > Sent: 04 November 2019 21:35 > To: solr-user@luc

RE: Delete documents from the Solr index using SolrJ

2019-11-05 Thread Khare, Kushal (MIND)
November 2019 21:35 To: solr-user@lucene.apache.org Subject: RE: Delete documents from the Solr index using SolrJ You can delete documents in SolrJ by using deleteByQuery. Using this you can delete any number of documents from your index or all your documents depending on the query you specify as the

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Erick Erickson
gt; On Mon, Nov 4, 2019 at 9:30 AM Khare, Kushal (MIND) < >> kushal.kh...@mind-infotech.com> wrote: >> >>> Could you please let me know how to achieve that ? >>> >>> >>> -Original Message- >>> From: Jörn Franke

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Walter Underwood
20:04 > To: solr-user@lucene.apache.org > Subject: Re: Delete documents from the Solr index using SolrJ > > when you add a new document using the same "id" value as another it just over > writes it > > On Mon, Nov 4, 2019 at 9:30 AM Khare, Kushal (MIND) < > kus

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Peter Lancaster
You can delete documents in SolrJ by using deleteByQuery. Using this you can delete any number of documents from your index or all your documents depending on the query you specify as the parameter. How you use it is down to your application. You haven't said if your application perfo

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
carry on with the solution that you proposed. Please guide ! -Original Message- From: David Hastings [mailto:hastings.recurs...@gmail.com] Sent: 04 November 2019 20:10 To: solr-user@lucene.apache.org Subject: Re: Delete documents from the Solr index using SolrJ delete them by query would

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread David Hastings
In my case, id won't be same. > Suppose, I have a doc with id : 20 > Now, it's newer version would be either 20.1 or 22 > What in this case? > -Original Message- > From: David Hastings [mailto:hastings.recurs...@gmail.com] > Sent: 04 November 2019 20:04 > To: solr

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
ubject: Re: Delete documents from the Solr index using SolrJ when you add a new document using the same "id" value as another it just over writes it On Mon, Nov 4, 2019 at 9:30 AM Khare, Kushal (MIND) < kushal.kh...@mind-infotech.com> wrote: > Could you please le

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
more clear now. -Original Message- From: Khare, Kushal (MIND) [mailto:kushal.kh...@mind-infotech.com] Sent: 04 November 2019 20:00 To: solr-user@lucene.apache.org Subject: RE: Delete documents from the Solr index using SolrJ Could you please let me know how to achieve that

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread David Hastings
age- > From: Jörn Franke [mailto:jornfra...@gmail.com] > Sent: 04 November 2019 19:59 > To: solr-user@lucene.apache.org > Subject: Re: Delete documents from the Solr index using SolrJ > > I don’t understand why it is not possible. > > However why don’t you simply overwrite th

RE: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
Could you please let me know how to achieve that ? -Original Message- From: Jörn Franke [mailto:jornfra...@gmail.com] Sent: 04 November 2019 19:59 To: solr-user@lucene.apache.org Subject: Re: Delete documents from the Solr index using SolrJ I don’t understand why it is not possible

Re: Delete documents from the Solr index using SolrJ

2019-11-04 Thread Jörn Franke
I don’t understand why it is not possible. However why don’t you simply overwrite the existing document instead of add+delete > Am 04.11.2019 um 15:12 schrieb Khare, Kushal (MIND) > : > > Hello mates! > I want to know how we can delete the documents from the Solr index . Suppose > for my sys

Delete documents from the Solr index using SolrJ

2019-11-04 Thread Khare, Kushal (MIND)
Hello mates! I want to know how we can delete the documents from the Solr index . Suppose for my system, I have a document that has been indexed, now its newer version is into use, so I want to use the latest one, for that I want the previous one to be deleted from the index. Kindly help me a wa

Re: Cloud Solr 5.3.1 + 6.0.1 cannot delete documents

2016-06-07 Thread Erick Erickson
OK, let's see the code you're using, including how you open your solrClient, how you commit, and how you show that the deleted doc is still there. This should be translatable into a test case. Like I said, this is tested in the unit tests, so it would be good to see the difference between the test

Re: Cloud Solr 5.3.1 + 6.0.1 cannot delete documents

2016-06-05 Thread Moritz Becker
I just checked the shards again (with &distrib=false) and it seems that I was mistaken, the document does *not* reside in _different_ shards - everything good in this respect. However, I still have the issue that deleteById those not work whereas deleteByQuery works. Specifically, the following li

Re: Cloud Solr 5.3.1 + 6.0.1 cannot delete documents

2016-05-30 Thread Erick Erickson
bq: I checked in the Solr Admin and noticed that the same document resided in both shards on the same node If this means two _different_ shards (as opposed to two replicas in the _same_ shard) showed the document, then that's the proverbial "smoking gun", somehow your setup isn't what you thin

Cloud Solr 5.3.1 + 6.0.1 cannot delete documents

2016-05-30 Thread Moritz Becker
Hi,   I have the following issue: I initially started with a Solr 5.3.1 + Zookeeper 3.4.6 cloud setup with 2 solr nodes and with one collection consisting of 2 shards and 2 replicas. I am accessing the cluster using the CloudSolrClient. When I tried to delete a document, no error occurred but af

Re: SolrCloud - Fails to delete documents when some shard is down

2016-03-21 Thread Renaud Delbru
On 21/03/16 14:43, Erick Erickson wrote: Hmmm, you say "where I have many shards and can't have one problem causing no deletion of old data.". You then have a shard that, when it comes back up still has all the old data and that _is_ acceptable? Seems like that would be jarring to the users whe

Re: SolrCloud - Fails to delete documents when some shard is down

2016-03-21 Thread Erick Erickson
Hmmm, you say "where I have many shards and can't have one problem causing no deletion of old data.". You then have a shard that, when it comes back up still has all the old data and that _is_ acceptable? Seems like that would be jarring to the users when some portion of the docs in their collect

SolrCloud - Fails to delete documents when some shard is down

2016-03-21 Thread Tali Finelt
Hi, I am using Solr 4.10.2. When one of the shards in my environment is down and fails to recover - The process of deleting documents from other shards fails as well. For example, When running: https://:8983/solr//update?stream.body= *:*&commit=true I get the following error message: No regis

Re: Delete Documents

2015-07-18 Thread Nagasharath
rote: >> Hey, >> >> I understand that "DocExpirationUpdateProcessorFactory" in the config.xml >> can be specified to delete documents based on the expiration. >> >> I would like to understand whether there is a chance of these deleted >> documents getting re-indexed? >> >> Solr 5.2 >> >> Thanks

Re: Delete Documents

2015-07-18 Thread Erick Erickson
seeing some symptom or are you just curious? Best, Erick On Fri, Jul 17, 2015 at 11:54 PM, naga sharathrayapati wrote: > Hey, > > I understand that "DocExpirationUpdateProcessorFactory" in the config.xml > can be specified to delete documents based on the expiration. > >

Delete Documents

2015-07-17 Thread naga sharathrayapati
Hey, I understand that "DocExpirationUpdateProcessorFactory" in the config.xml can be specified to delete documents based on the expiration. I would like to understand whether there is a chance of these deleted documents getting re-indexed? Solr 5.2 Thanks

RE: How to delete documents

2014-03-31 Thread Suresh Soundararajan
: Kaushik Sent: Tuesday, April 1, 2014 12:07 AM To: solr-user@lucene.apache.org Subject: How to delete documents >From a database table, we have figured out a way to do the full load and the delta loads. However, there are scenarios where some of the DB rows get deleted. How can we have s

How to delete documents

2014-03-31 Thread Kaushik
>From a database table, we have figured out a way to do the full load and the delta loads. However, there are scenarios where some of the DB rows get deleted. How can we have such documents deleted from SOLR indices? Thanks, Kaushik

Re: Delete documents in SOLR 1.4.1

2012-11-29 Thread Illu.Y.Ying (mis.sh04.Newegg) 41417
件人: solr-user@lucene.apache.org 主题: Delete documents in SOLR 1.4.1 Question: We have Solr 1.4.1 in Production currently. We need to delete documents identified by ids on daily basis from solr. --Following deletes by keys and delta data load works-- -- snippet of db-data-config.xml

Delete documents in SOLR 1.4.1

2012-11-27 Thread RPSolrUser
Question: We have Solr 1.4.1 in Production currently. We need to delete documents identified by ids on daily basis from solr. --Following deletes by keys and delta data load works-- -- snippet of db-data-config.xml -- snippet of solrconfig.xml

Re: Fwd: Delete documents

2012-05-11 Thread Tolga
r/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: Th

Re: Fwd: Delete documents

2012-05-10 Thread Jack Krupansky
ansky -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 To: solr-user@lucene.apache.org

Re: Fwd: Delete documents

2012-05-10 Thread Otis Gospodnetic
, May 11, 2012 12:31 AM > Subject: Fwd: Delete documents > > Anyone at all? > > Original Message > Subject:     Delete documents > Date:     Thu, 10 May 2012 22:59:49 +0300 > From:     Tolga > To:     solr-user@lucene.apache.org > > > >

Fwd: Delete documents

2012-05-10 Thread Tolga
Anyone at all? Original Message Subject:Delete documents Date: Thu, 10 May 2012 22:59:49 +0300 From: Tolga 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 "Del

Delete documents

2012-05-10 Thread Tolga
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=no -jar post.jar "$f";done, went on to the stats page only to find no

Re: Delete documents with empty fields

2011-09-15 Thread Massimo Schiavon
On 15/09/2011 13:01, Ahmet Arslan wrote: +*:* -title:[* TO *] Worked fine. Thanks a lot! Massimo

Re: Delete documents with empty fields

2011-09-15 Thread Ahmet Arslan
> I want to delete all documents with > empty title field. > If i run the query -title:[* TO *] I obtain the correct > list of documents but when I submit to solr the delete > command: > > curl http://localhost:8080/solr/web/update\?commit=true -H > 'Content-Type: text/xml' --data-binary \ > '-tit

Delete documents with empty fields

2011-09-15 Thread Massimo Schiavon
I want to delete all documents with empty title field. If i run the query -title:[* TO *] I obtain the correct list of documents but when I submit to solr the delete command: curl http://localhost:8080/solr/web/update\?commit=true -H 'Content-Type: text/xml' --data-binary \ '-title:[* TO *]'

Re: How to delete documents from a SOLR cloud / balance the shards in the cloud?

2010-09-10 Thread James Liu
Stephan and all, I am evaluating this like you are. You may want to check http://www.tomkleinpeter.com/2008/03/17/programmers-toolbox-part-3-consistent-hashing/. I would appreciate if others can shed some light on this, too. Bests, James On Fri, Sep 10, 2010 at 6:07 AM, Stephan Raemy wrote: > Hi

How to delete documents from a SOLR cloud / balance the shards in the cloud?

2010-09-10 Thread Stephan Raemy
Hi solr-cloud users, I'm currently setting up a solr-cloud/zookeeper instance and so far, everything works out fine. I downloaded the source from the cloud branch yesterday and build it from source. I've got 10 shards distributed across 4 servers and a zookeeper instance. Searching documents with

RE: How to delete documents from SOLR index using DIH

2010-08-26 Thread Ephraim Ofir
Sent: Thursday, August 26, 2010 9:01 AM To: solr-user@lucene.apache.org Subject: Re: How to delete documents from SOLR index using DIH Thanks Erick. Your solution do make sense. Actually i wanted to know, how to use delete via query or unique id through DIH? Is there any specific query to be ment

Re: How to delete documents from SOLR index using DIH

2010-08-26 Thread Grijesh.singh
olr/update?stream.body= -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-delete-documents-from-SOLR-index-using-DIH-tp1323794p1346743.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to delete documents from SOLR index using DIH

2010-08-25 Thread Pawan Darira
gt; delete the old one and insert the new document. > > If this makes no sense, could you explain what the underlying problem > you're > trying to solve is? > > HTH > Erick > > On Tue, Aug 24, 2010 at 8:56 PM, Pawan Darira >wrote: > > > Hi > > >

Re: How to delete documents from SOLR index using DIH

2010-08-25 Thread Erick Erickson
the underlying problem you're trying to solve is? HTH Erick On Tue, Aug 24, 2010 at 8:56 PM, Pawan Darira wrote: > Hi > > I am using data import handler to build index. How can i delete documents > from my index using DIH. > > -- > Thanks, > Pawan Darira >

How to delete documents from SOLR index using DIH

2010-08-24 Thread Pawan Darira
Hi I am using data import handler to build index. How can i delete documents from my index using DIH. -- Thanks, Pawan Darira

RE: expire/delete documents

2010-02-12 Thread Fuad Efendi
> or since you specificly asked about delteing anything older > then X days (in this example i'm assuming x=7)... > > createTime:[NOW-7DAYS TO *] createTime:[* TO NOW-7DAYS]

Re: expire/delete documents

2010-02-12 Thread Chris Hostetter
: You could easily have a scheduled job that ran delete by query to : remove posts older than a certain date... or since you specificly asked about delteing anything older then X days (in this example i'm assuming x=7)... createTime:[NOW-7DAYS TO *] -Hoss

Re: expire/delete documents

2010-02-12 Thread Mat Brown
You could easily have a scheduled job that ran delete by query to remove posts older than a certain date... On Fri, Feb 12, 2010 at 13:00, Matthieu Labour wrote: > HiIs there a way for solr or lucene to expire documents based on a field in a > document. Let's say that I have a createTime field w

expire/delete documents

2010-02-12 Thread Matthieu Labour
HiIs there a way for solr or lucene to expire documents based on a field in a document. Let's say that I have a createTime field whose type is date, can i set a policy in schema.xml for solr to delete the documents older than X days?Thank you

Re: Delete documents from index with dataimport

2009-05-14 Thread Fergus McMenemie
>Hi > >Yes I'd like the document deleted from Solr and yes, there is a unique >document id field in Solr. > I that case try the following. Create a field in the entity:- Notes. 1) the entity is assumed to have name="jc". 2) the uniqueKey field is assumed to called "id".

Re: Delete documents from index with dataimport

2009-05-14 Thread Andrew McCombe
Hi Yes I'd like the document deleted from Solr and yes, there is a unique document id field in Solr. Regards Andrew Andrew 2009/5/13 Fergus McMenemie : >>Hi >> >>Is it possible, through dataimport handler to remove an existing >>document from the Solr index? >> >>I import/update from my databas

Re: Delete documents from index with dataimport

2009-05-13 Thread Fergus McMenemie
>Hi > >Is it possible, through dataimport handler to remove an existing >document from the Solr index? > >I import/update from my database where the active field is true. >However, if the client then set's active to false, the document stays >in the Solr index and doesn't get removed. > >Regards >A

Delete documents from index with dataimport

2009-05-13 Thread Andrew McCombe
Hi Is it possible, through dataimport handler to remove an existing document from the Solr index? I import/update from my database where the active field is true. However, if the client then set's active to false, the document stays in the Solr index and doesn't get removed. Regards Andrew