Hello again!
Of course that the part that parses the URL requests must be in Servlet
side. However, if the project is well modularized, that Java classes,
dependencies... whatever, could be re-used inside SolrJ project, so I don´t
think that it would be an enourmous extra work. That´s the magic of
In some sense, if all you want to do is send over a URL, e.g.
http://localhost:8993/, it's not out of the question to
use the java url stuff as exemplified at
http://www.cafeaulait.org/course/week12/22.html
or
http://stackoverflow.com/questions/7500342/using-sockets-to-fetch-a-webpage-with-java
Bu
On 5/14/2013 3:13 AM, Luis Cappa Banda wrote:
> I know that, but I was wondering if it exists another way just to set the
> complete query (including q, fq, sort, etc.) embedded in a SolrQuery object
> as the same way that you query using some kind of RequestHandler. That way
> would be more flexib
I'm developing a custom SolrServer that executes raw queries. Those raw
queries are the ones I mentioned before: String ones. The idea is that that
custom SolrServer execute internally the raw String query via HttpClient
(GET or POST) and then returns a QueryResponse. I want to be respectful
with S
Why are you parsing te response to a QueryResponse object? I think it's
much easier to parse a json format response to you business object.
2013/5/14 Luis Cappa Banda
> Yeah, unfortunately that's what I'm doing right now, but parsing the
> resultant String from the HttpClient response into a Qu
Yeah, unfortunately that's what I'm doing right now, but parsing the
resultant String from the HttpClient response into a QueryResponse seems to
be imposible... I think that this would be a great feature to include in
next Solr release. I'm sure that many people will find useful to execute
raw Stri
I don't see any method in SolrServer like what you want.But I think you
just need write some code with HttpClient ,make a http request use the
complete query string.
2013/5/14 Luis Cappa Banda
> I know that, but I was wondering if it exists another way just to set the
> complete query (including
Hey, hello!
Which class or classes do you suggest to check out it's source code?
Thank you,
2013/5/14 Upayavira
> Look at the source code for SolrJ, you'll find it is just a glorified
> HashMap, and you might find a way to interact with it that suits you (I
> think the end URL is just the res
Look at the source code for SolrJ, you'll find it is just a glorified
HashMap, and you might find a way to interact with it that suits you (I
think the end URL is just the result of calling toString() on the
HashMap).
Upayavira
On Tue, May 14, 2013, at 10:13 AM, Luis Cappa Banda wrote:
> I know t
I know that, but I was wondering if it exists another way just to set the
complete query (including q, fq, sort, etc.) embedded in a SolrQuery object
as the same way that you query using some kind of RequestHandler. That way
would be more flexible because you don't need to parse the complete query
hi,
the solrQuery.setQuery() method just set the 'q' param in the query string.
You need call other method to set up all necessary param:
solrQuery.setFields(); --> this set up the 'fl' param
solrQuery.setStart(); --> this set up the 'start' param
solrQuery.setRows(); --> this set up the 'rows' par
11 matches
Mail list logo