Re: solrj question

2018-03-26 Thread Shawn Heisey
On 3/26/2018 11:19 AM, Webster Homer wrote: > You may say that the String in the constructor is "meant to be query > syntax", nothing in the Javadoc says anything about the expected syntax. > Since there is also a method to set the query, it seemed reasonable to > expect that it would take the outp

Re: solrj question

2018-03-26 Thread Webster Homer
You may say that the String in the constructor is "meant to be query syntax", nothing in the Javadoc says anything about the expected syntax. Since there is also a method to set the query, it seemed reasonable to expect that it would take the output of the toString method. (or some other serializat

Re: solrj question

2018-03-23 Thread Shawn Heisey
On 3/23/2018 3:24 PM, Webster Homer wrote: > I see this in the output: > Lexical error at line 1, column 1759. Encountered: after : > "/select?defType=edismax&start=0&rows=25&... > It has basically the entire solr query which it obviously couldn't parse. > > solrQuery = new SolrQuery(log.getQuery

Re: SolrJ Question about Bad Request Root cause error

2011-01-11 Thread Savvas-Andreas Moysidis
good point! that's an enhancement we would definitely welcome as well. currently, we too have to remote desktop to the Sol machine and search through the logs.. Any thoughts? Cheers, -- Savvas On 11 January 2011 19:59, roz dev wrote: > Hi All > > We are using SolrJ client (v 1.4.1) to integra

Re: Solrj Question

2010-07-04 Thread Chris Hostetter
: Subject: Solrj Question : In-Reply-To: <36b99395-9f0b-45ad-ac05-1d2415833...@yahoo.com> : References: <36b99395-9f0b-45ad-ac05-1d2415833...@yahoo.com> http://people.apache.org/~hossman/#threadhijack Thread Hijacking on Mailing Lists When starting a new discussion on a mailing list, please do n

Re: SolrJ question

2009-08-17 Thread Paul Tomblin
On Mon, Aug 17, 2009 at 5:47 PM, Paul Tomblin wrote: > Hmmm.  It's not working right.  I've added a 5 documents, 3 with the > URL set to "http://xcski.com/pharma/"; and 2 with the URL set to > "http://xcski.com/nano/";.  Doing other sorts of queries seems to be > pulling back the right data: Of

Re: SolrJ question

2009-08-17 Thread Paul Tomblin
On Mon, Aug 17, 2009 at 5:36 PM, Ensdorf Ken wrote: >> Does this mean I should have converted my objects to string before >> writing them to the server? >> > > I believe SolrJ takes care of that for you by calling toString(), but you > would need to convert explicitly when you query (and then esca

RE: SolrJ question

2009-08-17 Thread Ensdorf Ken
> Does this mean I should have converted my objects to string before > writing them to the server? > I believe SolrJ takes care of that for you by calling toString(), but you would need to convert explicitly when you query (and then escape).

Re: SolrJ question

2009-08-17 Thread Paul Tomblin
On Mon, Aug 17, 2009 at 5:30 PM, Ensdorf Ken wrote: > You can escape the string with > > org.apache.lucene.queryParser.QueryParser.escape(String query) > > http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/queryParser/QueryParser.html#escape%28java.lang.String%29 > Does this mean I should

Re: SolrJ question

2009-08-17 Thread Paul Tomblin
On Mon, Aug 17, 2009 at 5:28 PM, Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS] wrote: > Assuming you have written the SolrInputDocument to the server, you would next > query. I'm sorry, I don't understand what you mean by "you would next query." There appear to be some words missing from that sente

RE: SolrJ question

2009-08-17 Thread Ensdorf Ken
You can escape the string with org.apache.lucene.queryParser.QueryParser.escape(String query) http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/queryParser/QueryParser.html#escape%28java.lang.String%29 > -Original Message- > From: ptomb...@gmail.com [mailto:ptomb...@gmail.com]

RE: SolrJ question

2009-08-17 Thread Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]
Assuming you have written the SolrInputDocument to the server, you would next query. See ClientUtils.escapeQueryChars. Also you need to be cognizant of URLEncoding at times. -Original Message- From: ptomb...@gmail.com [mailto:ptomb...@gmail.com] On Behalf Of Paul Tomblin Sent: Monday,