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 Dmitriy Shvadskiy <ds...@gmail.com> on 2011/01/12 20:41:09 UTC

Specifying returned fields

Hello,

I know you can explicitly specify list of fields returned via
fl=field1,field2,field3

Is there a way to specify "return all fields but field1 and field2"?

Thanks,
Dmitriy

Re: Specifying returned fields

Posted by Erik Hatcher <er...@gmail.com>.
On Jan 12, 2011, at 12:53 , Dmitriy Shvadskiy wrote:

> 
> Thanks Gora
> The workaround of loading fields via LukeRequestHandler and building fl from
> it will work for what we need. However it takes 15 seconds per core and we
> have 15 cores. 
> The query I'm running is /admin/luke?show=schema
> Is there a way to limit query to return just fields?

Yes, add &numTerms=0 and it'll speed up the luke request handler dramatically.

	Erik


Re: Specifying returned fields

Posted by Dmitriy Shvadskiy <ds...@gmail.com>.
Thanks Gora
The workaround of loading fields via LukeRequestHandler and building fl from
it will work for what we need. However it takes 15 seconds per core and we
have 15 cores. 
The query I'm running is /admin/luke?show=schema
Is there a way to limit query to return just fields?

Thanks,
Dmitriy
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Specifying-returned-fields-tp2243423p2243923.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Specifying returned fields

Posted by Gora Mohanty <go...@mimirtech.com>.
On Thu, Jan 13, 2011 at 1:11 AM, Dmitriy Shvadskiy <ds...@gmail.com> wrote:
> Hello,
>
> I know you can explicitly specify list of fields returned via
> fl=field1,field2,field3
>
> Is there a way to specify "return all fields but field1 and field2"?

Not that I know of, but below is an earlier discussion thread
on this subject. Please take a look at the links referenced
there. IMHO, this would be a desirable feature.

http://osdir.com/ml/solr-user.lucene.apache.org/2010-12/msg00171.html

Regards,
Gora