Re: Still see document after delete with commit in solr 4.0

2012-09-05 Thread Chris Hostetter

: Actually, I didn't technically "upgrade". I downloaded the new
: version, grabbed the example, and pasted in the fields from my schema
: into the new one. So the only two files I changed from the example are
: schema.xml and solr.xml.

ok -- so with the fix for SOLR-3432, anyone who tries similar steps with 
4.0-final will get a clear error on startup -- that was my main concern.  
thanks for clarifying.


-Hoss


Re: Still see document after delete with commit in solr 4.0

2012-09-05 Thread Jack Krupansky
And when you pasted your 3.5 fields into the 4.0 schema, did you delete the 
existing fields (including _version_) at the same time?


-- Jack Krupansky

-Original Message- 
From: Paul

Sent: Wednesday, September 05, 2012 4:32 PM
To: solr-user@lucene.apache.org
Subject: Re: Still see document after delete with commit in solr 4.0

Actually, I didn't technically "upgrade". I downloaded the new
version, grabbed the example, and pasted in the fields from my schema
into the new one. So the only two files I changed from the example are
schema.xml and solr.xml.

Then I reindexed everything from scratch so there was no old index
involved, either.

On Wed, Sep 5, 2012 at 2:42 PM, Chris Hostetter
 wrote:


: That was exactly it. I added the following line to schema.xml and it now 
works.

:
: 

Just to be clear: how exactly did you "upgraded to solr 4.0 from solr 3.5"
-- did you throw out your old solrconfig.xml and use the example
solrconfig.xml from 4.0, but keep your 3.5 schema.xml?  Do you in fact
have an  in your solrconfig.xml?

(if so: then this is all known as part of SOLR-3432, and won't affect any
users of 4.0-final -- but i want to be absolutely sure there isn't some
other edge case of this bug)


-Hoss 




Re: Still see document after delete with commit in solr 4.0

2012-09-05 Thread Paul
Actually, I didn't technically "upgrade". I downloaded the new
version, grabbed the example, and pasted in the fields from my schema
into the new one. So the only two files I changed from the example are
schema.xml and solr.xml.

Then I reindexed everything from scratch so there was no old index
involved, either.

On Wed, Sep 5, 2012 at 2:42 PM, Chris Hostetter
 wrote:
>
> : That was exactly it. I added the following line to schema.xml and it now 
> works.
> :
> : 
>
> Just to be clear: how exactly did you "upgraded to solr 4.0 from solr 3.5"
> -- did you throw out your old solrconfig.xml and use the example
> solrconfig.xml from 4.0, but keep your 3.5 schema.xml?  Do you in fact
> have an  in your solrconfig.xml?
>
> (if so: then this is all known as part of SOLR-3432, and won't affect any
> users of 4.0-final -- but i want to be absolutely sure there isn't some
> other edge case of this bug)
>
>
> -Hoss


Re: Still see document after delete with commit in solr 4.0

2012-09-05 Thread Chris Hostetter

: That was exactly it. I added the following line to schema.xml and it now 
works.
: 
: 

Just to be clear: how exactly did you "upgraded to solr 4.0 from solr 3.5" 
-- did you throw out your old solrconfig.xml and use the example 
solrconfig.xml from 4.0, but keep your 3.5 schema.xml?  Do you in fact 
have an  in your solrconfig.xml?

(if so: then this is all known as part of SOLR-3432, and won't affect any 
users of 4.0-final -- but i want to be absolutely sure there isn't some 
other edge case of this bug)


-Hoss


Re: Still see document after delete with commit in solr 4.0

2012-09-05 Thread Paul
That was exactly it. I added the following line to schema.xml and it now works.




On Wed, Sep 5, 2012 at 10:13 AM, Jack Krupansky  wrote:
> Check to make sure that you are not stumbling into SOLR-3432: "deleteByQuery
> silently ignored if updateLog is enabled, but {{_version_}} field does not
> exist in schema".
>
> See:
> https://issues.apache.org/jira/browse/SOLR-3432
>
> -- Jack Krupansky
>
> -Original Message- From: Paul
> Sent: Wednesday, September 05, 2012 10:05 AM
> To: solr-user
> Subject: Still see document after delete with commit in solr 4.0
>
>
> I've recently upgraded to solr 4.0 from solr 3.5 and I think my delete
> statement used to work, but now it doesn't seem to be deleting. I've
> been experimenting around, and it seems like this should be the URL
> for deleting the document with the uri of "network_24".
>
> In a browser, I first go here:
>
> http://localhost:8983/solr/MYCORE/update?stream.body=%3Cdelete%3E%3Cquery%3Euri%3Anetwork_24%3C%2Fquery%3E%3C%2Fdelete%3E&commit=true
>
> I get this response:
>
> 
>  
>0
>5
>  
> 
>
> And this is in the log file:
>
> (timestamp) org.apache.solr.update.DirectUpdateHandler2 commit
> INFO: start
> commit{flags=0,_version_=0,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false}
> (timestamp) org.apache.solr.search.SolrIndexSearcher 
> INFO: Opening Searcher@646dd60e main
> (timestamp) org.apache.solr.update.DirectUpdateHandler2 commit
> INFO: end_commit_flush
> (timestamp) org.apache.solr.core.QuerySenderListener newSearcher
> INFO: QuerySenderListener sending requests to Searcher@646dd60e
> main{StandardDirectoryReader(segments_2v:447 _4p(4.0.0.1):C3244)}
> (timestamp) org.apache.solr.core.QuerySenderListener newSearcher
> INFO: QuerySenderListener done.
> S(timestamp) org.apache.solr.core.SolrCore registerSearcher
> INFO: [MYCORE] Registered new searcher Searcher@646dd60e
> main{StandardDirectoryReader(segments_2v:447 _4p(4.0.0.1):C3244)}
> (timestamp) org.apache.solr.update.processor.LogUpdateProcessor finish
> INFO: [MYCORE] webapp=/solr path=/update
> params={commit=true&stream.body=uri:network_24}
> {deleteByQuery=uri:network_24,commit=} 0 5
>
> But if I then go to this URL:
>
> http://localhost:8983/solr/MYCORE/select?q=uri%3Anetwork_24&wt=xml
>
> I get this response:
>
> 
>  
>0
>1
>
>  xml
>  uri:network_24
>
>  
>  
>
>  network24
>  network_24
>
>  
> 
>
> Why didn't that document disappear?


Re: Still see document after delete with commit in solr 4.0

2012-09-05 Thread Jack Krupansky
Check to make sure that you are not stumbling into SOLR-3432: "deleteByQuery 
silently ignored if updateLog is enabled, but {{_version_}} field does not 
exist in schema".


See:
https://issues.apache.org/jira/browse/SOLR-3432

-- Jack Krupansky

-Original Message- 
From: Paul

Sent: Wednesday, September 05, 2012 10:05 AM
To: solr-user
Subject: Still see document after delete with commit in solr 4.0

I've recently upgraded to solr 4.0 from solr 3.5 and I think my delete
statement used to work, but now it doesn't seem to be deleting. I've
been experimenting around, and it seems like this should be the URL
for deleting the document with the uri of "network_24".

In a browser, I first go here:

http://localhost:8983/solr/MYCORE/update?stream.body=%3Cdelete%3E%3Cquery%3Euri%3Anetwork_24%3C%2Fquery%3E%3C%2Fdelete%3E&commit=true

I get this response:


 
   0
   5
 


And this is in the log file:

(timestamp) org.apache.solr.update.DirectUpdateHandler2 commit
INFO: start 
commit{flags=0,_version_=0,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false}

(timestamp) org.apache.solr.search.SolrIndexSearcher 
INFO: Opening Searcher@646dd60e main
(timestamp) org.apache.solr.update.DirectUpdateHandler2 commit
INFO: end_commit_flush
(timestamp) org.apache.solr.core.QuerySenderListener newSearcher
INFO: QuerySenderListener sending requests to Searcher@646dd60e
main{StandardDirectoryReader(segments_2v:447 _4p(4.0.0.1):C3244)}
(timestamp) org.apache.solr.core.QuerySenderListener newSearcher
INFO: QuerySenderListener done.
S(timestamp) org.apache.solr.core.SolrCore registerSearcher
INFO: [MYCORE] Registered new searcher Searcher@646dd60e
main{StandardDirectoryReader(segments_2v:447 _4p(4.0.0.1):C3244)}
(timestamp) org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: [MYCORE] webapp=/solr path=/update
params={commit=true&stream.body=uri:network_24}
{deleteByQuery=uri:network_24,commit=} 0 5

But if I then go to this URL:

http://localhost:8983/solr/MYCORE/select?q=uri%3Anetwork_24&wt=xml

I get this response:


 
   0
   1
   
 xml
 uri:network_24
   
 
 
   
 network24
 network_24
   
 


Why didn't that document disappear? 



Still see document after delete with commit in solr 4.0

2012-09-05 Thread Paul
I've recently upgraded to solr 4.0 from solr 3.5 and I think my delete
statement used to work, but now it doesn't seem to be deleting. I've
been experimenting around, and it seems like this should be the URL
for deleting the document with the uri of "network_24".

In a browser, I first go here:

http://localhost:8983/solr/MYCORE/update?stream.body=%3Cdelete%3E%3Cquery%3Euri%3Anetwork_24%3C%2Fquery%3E%3C%2Fdelete%3E&commit=true

I get this response:


  
0
5
  


And this is in the log file:

(timestamp) org.apache.solr.update.DirectUpdateHandler2 commit
INFO: start 
commit{flags=0,_version_=0,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false}
(timestamp) org.apache.solr.search.SolrIndexSearcher 
INFO: Opening Searcher@646dd60e main
(timestamp) org.apache.solr.update.DirectUpdateHandler2 commit
INFO: end_commit_flush
(timestamp) org.apache.solr.core.QuerySenderListener newSearcher
INFO: QuerySenderListener sending requests to Searcher@646dd60e
main{StandardDirectoryReader(segments_2v:447 _4p(4.0.0.1):C3244)}
(timestamp) org.apache.solr.core.QuerySenderListener newSearcher
INFO: QuerySenderListener done.
S(timestamp) org.apache.solr.core.SolrCore registerSearcher
INFO: [MYCORE] Registered new searcher Searcher@646dd60e
main{StandardDirectoryReader(segments_2v:447 _4p(4.0.0.1):C3244)}
(timestamp) org.apache.solr.update.processor.LogUpdateProcessor finish
INFO: [MYCORE] webapp=/solr path=/update
params={commit=true&stream.body=uri:network_24}
{deleteByQuery=uri:network_24,commit=} 0 5

But if I then go to this URL:

http://localhost:8983/solr/MYCORE/select?q=uri%3Anetwork_24&wt=xml

I get this response:


  
0
1

  xml
  uri:network_24

  
  

  network24
  network_24

  


Why didn't that document disappear?