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 Scott Schneider <Sc...@symantec.com> on 2013/09/18 02:16:41 UTC
Querying a non-indexed field?
Hello,
Is it possible to restrict query results using a non-indexed, stored field? e.g. I might index fewer fields to reduce the index size. I query on a few indexed fields, getting a small # of results. I want to restrict this further based on values from non-indexed, stored fields. I can obviously do this myself, but it would be nice if Solr could do this for me.
Thanks,
Scott
RE: Querying a non-indexed field?
Posted by Scott Schneider <Sc...@symantec.com>.
Ok, thanks for your answers!
Scott
> -----Original Message-----
> From: Otis Gospodnetic [mailto:otis.gospodnetic@gmail.com]
> Sent: Wednesday, September 18, 2013 5:36 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Querying a non-indexed field?
>
> Moreover, you may be trying to save/optimize in a wrong place. Maybe
> these
> additional indexed fields are not so costly. Maybe you can optimize in
> some
> other part of your setup.
>
> Otis
> Solr & ElasticSearch Support
> http://sematext.com/
> On Sep 18, 2013 5:47 PM, "Chris Hostetter" <ho...@fucit.org>
> wrote:
>
> >
> > : Subject: Re: Querying a non-indexed field?
> > :
> > : No. --wunder
> >
> > To elaborate just a bit...
> >
> > : query on a few indexed fields, getting a small # of results. I
> want to
> > : restrict this further based on values from non-indexed, stored
> fields.
> > : I can obviously do this myself, but it would be nice if Solr could
> do
> >
> > ...you could implement this in a custom SearchComponent, or custom
> qparser
> > that would generate PostFilter compatible queries, that looked at the
> > stored field values -- but it's extremeley unlikeley that you would
> ever
> > convince any of the lucene/solr devs to agree to commit a general
> purpose
> > version of this type of logic into the code base -- because in the
> general
> > case (arbitrary unknown number of documents matching the main query)
> it
> > would be extremely inefficient and would encourage "bad" user
> behavior.
> >
> > -Hoss
> >
Re: Querying a non-indexed field?
Posted by Otis Gospodnetic <ot...@gmail.com>.
Moreover, you may be trying to save/optimize in a wrong place. Maybe these
additional indexed fields are not so costly. Maybe you can optimize in some
other part of your setup.
Otis
Solr & ElasticSearch Support
http://sematext.com/
On Sep 18, 2013 5:47 PM, "Chris Hostetter" <ho...@fucit.org> wrote:
>
> : Subject: Re: Querying a non-indexed field?
> :
> : No. --wunder
>
> To elaborate just a bit...
>
> : query on a few indexed fields, getting a small # of results. I want to
> : restrict this further based on values from non-indexed, stored fields.
> : I can obviously do this myself, but it would be nice if Solr could do
>
> ...you could implement this in a custom SearchComponent, or custom qparser
> that would generate PostFilter compatible queries, that looked at the
> stored field values -- but it's extremeley unlikeley that you would ever
> convince any of the lucene/solr devs to agree to commit a general purpose
> version of this type of logic into the code base -- because in the general
> case (arbitrary unknown number of documents matching the main query) it
> would be extremely inefficient and would encourage "bad" user behavior.
>
> -Hoss
>
Re: Querying a non-indexed field?
Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Re: Querying a non-indexed field?
:
: No. --wunder
To elaborate just a bit...
: query on a few indexed fields, getting a small # of results. I want to
: restrict this further based on values from non-indexed, stored fields.
: I can obviously do this myself, but it would be nice if Solr could do
...you could implement this in a custom SearchComponent, or custom qparser
that would generate PostFilter compatible queries, that looked at the
stored field values -- but it's extremeley unlikeley that you would ever
convince any of the lucene/solr devs to agree to commit a general purpose
version of this type of logic into the code base -- because in the general
case (arbitrary unknown number of documents matching the main query) it
would be extremely inefficient and would encourage "bad" user behavior.
-Hoss
Re: Querying a non-indexed field?
Posted by Walter Underwood <wu...@wunderwood.org>.
No. --wunder
On Sep 17, 2013, at 5:16 PM, Scott Schneider wrote:
> Hello,
>
> Is it possible to restrict query results using a non-indexed, stored field? e.g. I might index fewer fields to reduce the index size. I query on a few indexed fields, getting a small # of results. I want to restrict this further based on values from non-indexed, stored fields. I can obviously do this myself, but it would be nice if Solr could do this for me.
>
> Thanks,
> Scott
>