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 "Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]" <ti...@nasa.gov> on 2009/04/22 19:18:58 UTC
fl parameter
Since SOLR uses variable fields per record it would be useful to not only be able to specify which fields to return in a query via the fl parameter, but to also specify which fields to *not* return in the query. Especially if you use dynamic fields as there may be no way to tell ahead of time what the field names are and you may not want all the fields.
Is there a way to do this?
Thanks,
Tim
RE: fl parameter
Posted by Chris Hostetter <ho...@fucit.org>.
: Anyone able to help with the question below?
dealing with "fl" is a delicate dance in Solr right now .. complicated by
both FieldSelector logic and distributed search (where both DocList and
SolrDocumentList objects need to be dealt with).
I looked at this recently and even I can't remember what does what at the
moment ... i think you can do what you want just by writing a
QueryResponseWriter, but it might also be possible to do it as a
SearchComponent that prunes any SolrDocumentList objects and actaullizes
any DocList objects using just the fields you want.
The way to be sure is to look for all uses of CommonParams.FL in the code
base.
: Yonik, I couldn't find the issues you speak of can you point me in the right direction?
http://wiki.apache.org/solr/FieldAliasesAndGlobsInParams
-Hoss
RE: fl parameter
Posted by "Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]" <ti...@nasa.gov>.
Anyone able to help with the question below?
Yonik, I couldn't find the issues you speak of can you point me in the right direction?
Thanks
Tim
-----Original Message-----
From: Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS] [mailto:timothy.j.harsch@nasa.gov]
Sent: Wednesday, April 22, 2009 1:36 PM
To: solr-user@lucene.apache.org; yonik@lucidimagination.com
Subject: RE: fl parameter
If I were to add that capability, could I do it simply by registering my own RequestHandler and subclassing StandarRequestHandler?
Or would I have to add an enhancement to Solr?
-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik Seeley
Sent: Wednesday, April 22, 2009 11:22 AM
To: solr-user@lucene.apache.org
Subject: Re: fl parameter
On Wed, Apr 22, 2009 at 1:18 PM, Harsch, Timothy J. (ARC-SC)[PEROT
SYSTEMS] <ti...@nasa.gov> wrote:
> Since SOLR uses variable fields per record it would be useful to not only be able to specify which fields to return in a query via the fl parameter, but to also specify which fields to *not* return in the query. Especially if you use dynamic fields as there may be no way to tell ahead of time what the field names are and you may not want all the fields.
>
> Is there a way to do this?
Not yet, but it's not a bad idea.
fl=*,-big_field
There are issues open for wildcarding in field lists too.
-Yonik
http://www.lucidimagination.com
RE: fl parameter
Posted by "Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]" <ti...@nasa.gov>.
If I were to add that capability, could I do it simply by registering my own RequestHandler and subclassing StandarRequestHandler?
Or would I have to add an enhancement to Solr?
-----Original Message-----
From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik Seeley
Sent: Wednesday, April 22, 2009 11:22 AM
To: solr-user@lucene.apache.org
Subject: Re: fl parameter
On Wed, Apr 22, 2009 at 1:18 PM, Harsch, Timothy J. (ARC-SC)[PEROT
SYSTEMS] <ti...@nasa.gov> wrote:
> Since SOLR uses variable fields per record it would be useful to not only be able to specify which fields to return in a query via the fl parameter, but to also specify which fields to *not* return in the query. Especially if you use dynamic fields as there may be no way to tell ahead of time what the field names are and you may not want all the fields.
>
> Is there a way to do this?
Not yet, but it's not a bad idea.
fl=*,-big_field
There are issues open for wildcarding in field lists too.
-Yonik
http://www.lucidimagination.com
Re: fl parameter
Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Wed, Apr 22, 2009 at 1:18 PM, Harsch, Timothy J. (ARC-SC)[PEROT
SYSTEMS] <ti...@nasa.gov> wrote:
> Since SOLR uses variable fields per record it would be useful to not only be able to specify which fields to return in a query via the fl parameter, but to also specify which fields to *not* return in the query. Especially if you use dynamic fields as there may be no way to tell ahead of time what the field names are and you may not want all the fields.
>
> Is there a way to do this?
Not yet, but it's not a bad idea.
fl=*,-big_field
There are issues open for wildcarding in field lists too.
-Yonik
http://www.lucidimagination.com