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/09/01 00:52:17 UTC

Re: Sorting by Unindexed Fields

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
>>
>
>