Hi Erick,
I am using SolrQuery.setFields and following are my code :
query.setParam("fq", "type:Livescore");
query.addSortField("last_updated", ORDER.desc);
query.setRows(5);
I think solr is connecting to server because with same query I am
getting field value other than special char field value.
regards
Ranveer
On Sunday 25 September 2011 12:11 AM, Erick Erickson wrote:
I can't imagine that the ( or ) is a problem. So I think we need to see
how you're using SolrJ. In particular, are you asking for the
field in question to be returned (e.g. SolrQuery.setFields or addField)?
Second question: Are you sure your SolrJ is connecting to the server you
connect to with the browser? You should see activity in the logs for both
cases.
Best
Erick
On Tue, Sep 20, 2011 at 6:23 PM, Ranveer Kumar<ranveer.s...@gmail.com> wrote:
Is any help.. I am unable to figure out..
On 20-Sep-2011 2:22 PM, "Ranveer"<ranveer.s...@gmail.com> wrote:
Hi All,
I am facing problem to get value from solr server for a particular field.
My environment is :
Red hat 5.3
Solr 3.3
Jdk 1.6.24
Tomcat 6.2x
Fetching value using SolrJ
When using *:* on browser it show but when using solrj all value coming
except few fields those have special char.
<str name="fetch_value1">Scoring (TEST)</str>
<str name="fetch_value2">Scoring rate 3/4 (5)</str>
above value coming on browser but getting blank in solrj. I also noticed
that all field with '(' or ')' have this kind of problem.
If this is related to '(' then how to skip special char so can get value
in solrj.
regards
Ranveer