RE: Id As URL for Solrj

2014-03-04 Thread Markus Jelsma
You are not escaping the Lucene query parser special characters:


+ -  || ! ( ) { } [ ] ^  ~ * ? : \ /

 
 
-Original message-
 From:Furkan KAMACI furkankam...@gmail.com
 Sent: Tuesday 4th March 2014 16:57
 To: solr-user@lucene.apache.org
 Subject: Id As URL for Solrj
 
 Hi;
 
 This maybe a simple question but when I query from Admin interface:
 
 id:am.mobileworld.www:http/
 
 returns me one document as well. However when I do it from Solrj with
 deleteById it does not. Also when I send a query via Solrj it returns me
 all documents (for id, id:am.mobileworld.www:http/ ). I've escaped the
 terms, URL encoded  and ...
 
 What is the mos appropriate for it?
 
 Thanks;
 Furkan KAMACI
 


Re: Id As URL for Solrj

2014-03-04 Thread Jack Krupansky
Or, maybe he is and shouldn't since deleteById is a SolrXML update handler 
feature, not a query parser feature.


For example:
http://stackoverflow.com/questions/2657409/deleting-index-from-solr-using-solrj-as-a-client

-- Jack Krupansky

-Original Message- 
From: Markus Jelsma

Sent: Tuesday, March 4, 2014 10:58 AM
To: solr-user@lucene.apache.org
Subject: RE: Id As URL for Solrj

You are not escaping the Lucene query parser special characters:


+ -  || ! ( ) { } [ ] ^  ~ * ? : \ /



-Original message-

From:Furkan KAMACI furkankam...@gmail.com
Sent: Tuesday 4th March 2014 16:57
To: solr-user@lucene.apache.org
Subject: Id As URL for Solrj

Hi;

This maybe a simple question but when I query from Admin interface:

id:am.mobileworld.www:http/

returns me one document as well. However when I do it from Solrj with
deleteById it does not. Also when I send a query via Solrj it returns me
all documents (for id, id:am.mobileworld.www:http/ ). I've escaped the
terms, URL encoded  and ...

What is the mos appropriate for it?

Thanks;
Furkan KAMACI