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 Isaac Foster <is...@gmail.com> on 2009/08/27 00:33:53 UTC
Sorting by Unindexed Fields
Hi,
I have a situation where a particular kind of document can be categorized in
different ways, and depending on the categories it is in it will have
different fields that describe it (in practice the number of fields will be
fairly small, but whatever). These documents will each have a full-text
field that Solr is perfect for, and it seems like Solr's dynamic fields
ability makes it an even more perfect solution.
I'd like to be able to sort by any of the fields, but indexing them all
seems somewhere between unwise and impossible. Will Solr sort by fields that
are unindexed?
iSac
Re: Sorting by Unindexed Fields
Posted by Avlesh Singh <av...@gmail.com>.
>
> Is it also the case that it will not narrow by them?
If "narrowing" means faceting, then again a no.
Cheers
Avlesh
On Thu, Aug 27, 2009 at 6:36 AM, Isaac Foster <is...@gmail.com>wrote:
> Is it also the case that it will not narrow by them?
>
> Isaac
>
> On Wed, Aug 26, 2009 at 8:59 PM, Avlesh Singh <av...@gmail.com> wrote:
>
> > >
> > > Will Solr sort by fields that are unindexed?
> > >
> > Unfortunately, No.
> >
> > Cheers
> > Avlesh
> >
> > On Thu, Aug 27, 2009 at 4:03 AM, Isaac Foster <isaac.z.foster@gmail.com
> > >wrote:
> >
> > > Hi,
> > >
> > > I have a situation where a particular kind of document can be
> categorized
> > > in
> > > different ways, and depending on the categories it is in it will have
> > > different fields that describe it (in practice the number of fields
> will
> > be
> > > fairly small, but whatever). These documents will each have a full-text
> > > field that Solr is perfect for, and it seems like Solr's dynamic fields
> > > ability makes it an even more perfect solution.
> > >
> > > I'd like to be able to sort by any of the fields, but indexing them all
> > > seems somewhere between unwise and impossible. Will Solr sort by fields
> > > that
> > > are unindexed?
> > >
> > > iSac
> > >
> >
>
Re: Sorting by Unindexed Fields
Posted by Isaac Foster <is...@gmail.com>.
Is it also the case that it will not narrow by them?
Isaac
On Wed, Aug 26, 2009 at 8:59 PM, Avlesh Singh <av...@gmail.com> wrote:
> >
> > Will Solr sort by fields that are unindexed?
> >
> Unfortunately, No.
>
> Cheers
> Avlesh
>
> On Thu, Aug 27, 2009 at 4:03 AM, Isaac Foster <isaac.z.foster@gmail.com
> >wrote:
>
> > Hi,
> >
> > I have a situation where a particular kind of document can be categorized
> > in
> > different ways, and depending on the categories it is in it will have
> > different fields that describe it (in practice the number of fields will
> be
> > fairly small, but whatever). These documents will each have a full-text
> > field that Solr is perfect for, and it seems like Solr's dynamic fields
> > ability makes it an even more perfect solution.
> >
> > I'd like to be able to sort by any of the fields, but indexing them all
> > seems somewhere between unwise and impossible. Will Solr sort by fields
> > that
> > are unindexed?
> >
> > iSac
> >
>
Re: Sorting by Unindexed Fields
Posted by Avlesh Singh <av...@gmail.com>.
>
> Will Solr sort by fields that are unindexed?
>
Unfortunately, No.
Cheers
Avlesh
On Thu, Aug 27, 2009 at 4:03 AM, Isaac Foster <is...@gmail.com>wrote:
> Hi,
>
> I have a situation where a particular kind of document can be categorized
> in
> different ways, and depending on the categories it is in it will have
> different fields that describe it (in practice the number of fields will be
> fairly small, but whatever). These documents will each have a full-text
> field that Solr is perfect for, and it seems like Solr's dynamic fields
> ability makes it an even more perfect solution.
>
> I'd like to be able to sort by any of the fields, but indexing them all
> seems somewhere between unwise and impossible. Will Solr sort by fields
> that
> are unindexed?
>
> iSac
>
Re: Sorting by Unindexed Fields
Posted by Isaac Foster <is...@gmail.com>.
Hi Erik,
Sorry it took me a while to get back to your response. I appreciate any help
I can get.
The number of documents will start out small, but if we do well we'll have a
lot. The fields would all be numeric (we'll map categorical fields to
integers), and I would imagine the number of fields will be between 2 and 5,
but we're not going to limit it.
I think for this particular issue we may try to keep the solution "in the
database" so that that particular information can live in as few places as
possible.
Thanks as always for the help.
iSac
On Wed, Aug 26, 2009 at 9:32 PM, Erik Hatcher <er...@gmail.com>wrote:
> Solr sorts on indexed fields only, currently. And only a single value per
> document per sort field (careful with analyzed fields, and no multiValued
> fields).
>
> Unwise and impossible - of course this depends on the scale you're speaking
> of. How many documents? What types of fields? How small is fairly small
> number of fields?
>
> Erik
>
>
>
> On Aug 26, 2009, at 6:33 PM, Isaac Foster wrote:
>
> Hi,
>>
>> I have a situation where a particular kind of document can be categorized
>> in
>> different ways, and depending on the categories it is in it will have
>> different fields that describe it (in practice the number of fields will
>> be
>> fairly small, but whatever). These documents will each have a full-text
>> field that Solr is perfect for, and it seems like Solr's dynamic fields
>> ability makes it an even more perfect solution.
>>
>> I'd like to be able to sort by any of the fields, but indexing them all
>> seems somewhere between unwise and impossible. Will Solr sort by fields
>> that
>> are unindexed?
>>
>> iSac
>>
>
>
Re: Sorting by Unindexed Fields
Posted by Erik Hatcher <er...@gmail.com>.
Solr sorts on indexed fields only, currently. And only a single value
per document per sort field (careful with analyzed fields, and no
multiValued fields).
Unwise and impossible - of course this depends on the scale you're
speaking of. How many documents? What types of fields? How small
is fairly small number of fields?
Erik
On Aug 26, 2009, at 6:33 PM, Isaac Foster wrote:
> Hi,
>
> I have a situation where a particular kind of document can be
> categorized in
> different ways, and depending on the categories it is in it will have
> different fields that describe it (in practice the number of fields
> will be
> fairly small, but whatever). These documents will each have a full-
> text
> field that Solr is perfect for, and it seems like Solr's dynamic
> fields
> ability makes it an even more perfect solution.
>
> I'd like to be able to sort by any of the fields, but indexing them
> all
> seems somewhere between unwise and impossible. Will Solr sort by
> fields that
> are unindexed?
>
> iSac