Re: Items disappearing from Solr index

2012-10-30 Thread Kissue Kissue
>> > Thanks. >> > >> > On Wed, Sep 26, 2012 at 8:14 PM, Jack Krupansky < >> j...@basetechnology.com>wrote: >> > >> >> What is the field type for that field - string or text? >> >> >> >> >> >> -- Jack Krupansk

Re: Items disappearing from Solr index

2012-09-27 Thread Kissue Kissue
Wed, Sep 26, 2012 at 8:14 PM, Jack Krupansky >wrote: > > > >> What is the field type for that field - string or text? > >> > >> > >> -- Jack Krupansky > >> > >> -Original Message- From: Kissue Kissue > >> Sent: Wednesday, September 26

Re: Items disappearing from Solr index

2012-09-27 Thread Erick Erickson
26, 2012 at 8:14 PM, Jack Krupansky > wrote: > >> What is the field type for that field - string or text? >> >> >> -- Jack Krupansky >> >> -Original Message- From: Kissue Kissue >> Sent: Wednesday, September 26, 2012 1:43 PM >> &

Re: Items disappearing from Solr index

2012-09-27 Thread Kissue Kissue
> Sent: Wednesday, September 26, 2012 1:43 PM > > To: solr-user@lucene.apache.org > Subject: Re: Items disappearing from Solr index > > # It is looking for documents with "Emory" in the specified field OR "Labs" > in the default search field. > > This d

Re: Items disappearing from Solr index

2012-09-26 Thread Jack Krupansky
What is the field type for that field - string or text? -- Jack Krupansky -Original Message- From: Kissue Kissue Sent: Wednesday, September 26, 2012 1:43 PM To: solr-user@lucene.apache.org Subject: Re: Items disappearing from Solr index # It is looking for documents with "Emor

Re: Items disappearing from Solr index

2012-09-26 Thread Erik Hatcher
On Sep 26, 2012, at 04:47 , Kissue Kissue wrote: > getSolrServer().deleteByQuery(catalogueId + ":" + Emory Labs) [Notice that > there are no quotes surrounding the catalogueId value - Emory Labs] The best way to do this type of query (where the field type is a string with arbitrary characters t

Re: Items disappearing from Solr index

2012-09-26 Thread Kissue Kissue
t; -Original Message- From: Kissue Kissue > Sent: Wednesday, September 26, 2012 7:47 AM > To: solr-user@lucene.apache.org > Subject: Re: Items disappearing from Solr index > > > I have just solved this problem. > > We have a field called catalogueId. One possible value

Re: Items disappearing from Solr index

2012-09-26 Thread Yonik Seeley
On Wed, Sep 26, 2012 at 10:45 AM, Shawn Heisey wrote: > On 9/26/2012 5:47 AM, Kissue Kissue wrote: >> >> getSolrServer().deleteByQuery(catalogueId + ":" + Emory Labs) [Notice >> that >> there are no quotes surrounding the catalogueId value - Emory Labs] > > How did you even get this Java code to

Re: Items disappearing from Solr index

2012-09-26 Thread Shawn Heisey
On 9/26/2012 5:47 AM, Kissue Kissue wrote: getSolrServer().deleteByQuery(catalogueId + ":" + Emory Labs) [Notice that there are no quotes surrounding the catalogueId value - Emory Labs] How did you even get this Java code to compile? I would expect the compiler to throw an error, even if Emo

Re: Items disappearing from Solr index

2012-09-26 Thread Travis Low
gt; To: solr-user@lucene.apache.org > Subject: Re: Items disappearing from Solr index > > I have just solved this problem. > > We have a field called catalogueId. One possible value for this field could > be "Emory Labs". I found out that when the following delete by query is

Re: Items disappearing from Solr index

2012-09-26 Thread Jack Krupansky
It is looking for documents with "Emory" in the specified field OR "Labs" in the default search field. -- Jack Krupansky -Original Message- From: Kissue Kissue Sent: Wednesday, September 26, 2012 7:47 AM To: solr-user@lucene.apache.org Subject: Re: Items disappea

Re: Items disappearing from Solr index

2012-09-26 Thread Kissue Kissue
I have just solved this problem. We have a field called catalogueId. One possible value for this field could be "Emory Labs". I found out that when the following delete by query is sent to solr: getSolrServer().deleteByQuery(catalogueId + ":" + Emory Labs) [Notice that there are no quotes surrou

Re: Items disappearing from Solr index

2012-09-24 Thread Kissue Kissue
Hi Erick, Thanks for your reply. Yes i am using delete by query. I am currently logging the number of items to be deleted before handing off to solr. And from solr logs i can it deleted exactly that number. I will verify further. Thanks. On Mon, Sep 24, 2012 at 1:21 PM, Erick Erickson wrote: >

Re: Items disappearing from Solr index

2012-09-24 Thread Erick Erickson
How do you delete items? By ID or by query? My guess is that one of two things is happening: 1> your delete process is deleting too much data. 2> your index process isn't indexing what you think. I'd add some logging to the SolrJ program to see what it thinks is has deleted or added to the index

Items disappearing from Solr index

2012-09-24 Thread Kissue Kissue
Hi, I am running Solr 3.5, using SolrJ and using StreamingUpdateSolrServer to index and delete items from solr. I basically index items from the db into solr every night. Existing items can be marked for deletion in the db and a delete request sent to solr to delete such items. My process runs a