You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "anurag.jain" <an...@gmail.com> on 2013/06/06 16:01:19 UTC

Download CSV, Strange thing is happening !!

I have two field in solr, Named as 10th_mark, 12th_mark. Now I want to
download that field in csv so i tried,

http://localhost:8983/solr?q=*:*&wt=csv&start=0&rows=10&fl=10th_mark,12th_mark

But output is something like that,

th_mark
""
""
""
""
""
""
""
""
""
""



But If i put *th_mark it is giving me correct output. But If I Put * then
output comes in Random order, Please give me a way to solve this type of
problem.

Please Reply ASAP,

Thanks 



--
View this message in context: http://lucene.472066.n3.nabble.com/Download-CSV-Strange-thing-is-happening-tp4068599.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Download CSV, Strange thing is happening !!

Posted by "anurag.jain" <an...@gmail.com>.
fl=field(10th_mark),field(12th_mark) 

if I use wt=csv, It is giving me No output, when wt=json it is giving me
output. 




--
View this message in context: http://lucene.472066.n3.nabble.com/Download-CSV-Strange-thing-is-happening-tp4068599p4068633.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Download CSV, Strange thing is happening !!

Posted by Jack Krupansky <ja...@basetechnology.com>.
Yeah, Java-like identifiers are best.

You should be able to wrap non-Java names in a "field" function:

fl=field(10th_mark),field(12th_mark)

-- Jack Krupansky

-----Original Message----- 
From: Raymond Wiker
Sent: Thursday, June 06, 2013 10:12 AM
To: solr-user@lucene.apache.org
Subject: Re: Download CSV, Strange thing is happening !!

I think you'd be better off using field names that look like Java
identifiers - e.g, mark10 instead of 10th_mark.

Actually, let me rephrase that: you SHOULD be using field names that look
like Java identifiers - less headache, all round.


On Thu, Jun 6, 2013 at 4:01 PM, anurag.jain <an...@gmail.com> wrote:

> I have two field in solr, Named as 10th_mark, 12th_mark. Now I want to
> download that field in csv so i tried,
>
>
> http://localhost:8983/solr?q=*:*&wt=csv&start=0&rows=10&fl=10th_mark,12th_mark
>
> But output is something like that,
>
> th_mark
> ""
> ""
> ""
> ""
> ""
> ""
> ""
> ""
> ""
> ""
>
>
>
> But If i put *th_mark it is giving me correct output. But If I Put * then
> output comes in Random order, Please give me a way to solve this type of
> problem.
>
> Please Reply ASAP,
>
> Thanks
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Download-CSV-Strange-thing-is-happening-tp4068599.html
> Sent from the Solr - User mailing list archive at Nabble.com.
> 


Re: Download CSV, Strange thing is happening !!

Posted by Raymond Wiker <rw...@gmail.com>.
I think you'd be better off using field names that look like Java
identifiers - e.g, mark10 instead of 10th_mark.

Actually, let me rephrase that: you SHOULD be using field names that look
like Java identifiers - less headache, all round.


On Thu, Jun 6, 2013 at 4:01 PM, anurag.jain <an...@gmail.com> wrote:

> I have two field in solr, Named as 10th_mark, 12th_mark. Now I want to
> download that field in csv so i tried,
>
>
> http://localhost:8983/solr?q=*:*&wt=csv&start=0&rows=10&fl=10th_mark,12th_mark
>
> But output is something like that,
>
> th_mark
> ""
> ""
> ""
> ""
> ""
> ""
> ""
> ""
> ""
> ""
>
>
>
> But If i put *th_mark it is giving me correct output. But If I Put * then
> output comes in Random order, Please give me a way to solve this type of
> problem.
>
> Please Reply ASAP,
>
> Thanks
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Download-CSV-Strange-thing-is-happening-tp4068599.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>