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 Yves Zoundi <Yv...@bibl.ulaval.ca> on 2008/06/11 20:01:28 UTC

Ignore fields in XML response

Hi guys,

 

            Is it possible to remove some fields from the XML response?
I have a field which can contains a huge amount of data and I would like
it to be ignore it in the XML response. Can it be achieved without
writing a custom XMLResponseWriter?

 

Thanks


RE: Ignore fields in XML response

Posted by Yves Zoundi <Yv...@bibl.ulaval.ca>.
Thank you guys!

-----Message d'origine-----
De : Erik Hatcher [mailto:erik@ehatchersolutions.com] 
Envoyé : 11 juin 2008 14:07
À : solr-user@lucene.apache.org
Objet : Re: Ignore fields in XML response

Yves - you can control which fields are returned from a search using  
the fl (field list) parameter.  &fl=* provides all fields except  
score.  &fl=id,title,score provides only those selected fields, etc.

	Erik

On Jun 11, 2008, at 2:01 PM, Yves Zoundi wrote:

> Hi guys,
>
>
>
>            Is it possible to remove some fields from the XML response?
> I have a field which can contains a huge amount of data and I would  
> like
> it to be ignore it in the XML response. Can it be achieved without
> writing a custom XMLResponseWriter?
>
>
>
> Thanks
>


Re: Ignore fields in XML response

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Yves - you can control which fields are returned from a search using  
the fl (field list) parameter.  &fl=* provides all fields except  
score.  &fl=id,title,score provides only those selected fields, etc.

	Erik

On Jun 11, 2008, at 2:01 PM, Yves Zoundi wrote:

> Hi guys,
>
>
>
>            Is it possible to remove some fields from the XML response?
> I have a field which can contains a huge amount of data and I would  
> like
> it to be ignore it in the XML response. Can it be achieved without
> writing a custom XMLResponseWriter?
>
>
>
> Thanks
>


Re: Ignore fields in XML response

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Sure, use the fl parameter to specify the fields that you want
(comma-separated)

On Wed, Jun 11, 2008 at 11:31 PM, Yves Zoundi <Yv...@bibl.ulaval.ca>
wrote:

> Hi guys,
>
>
>
>            Is it possible to remove some fields from the XML response?
> I have a field which can contains a huge amount of data and I would like
> it to be ignore it in the XML response. Can it be achieved without
> writing a custom XMLResponseWriter?
>
>
>
> Thanks
>
>


-- 
Regards,
Shalin Shekhar Mangar.