lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKinley <ryan...@gmail.com>
Subject Re: aaah, using trunk is fun! -- Illegal sort type: 2
Date Thu, 18 Jun 2009 00:16:01 GMT
thanks!

I replaced my code with this and it works fine now:

        SortSpec sortSpec = builder.getSortSpec();
        if( sortSpec.getSort() == null ) {
          SchemaField sf = builder.req.getCore().getSchema()
            .getField( "somefield" );
          sortSpec.setSort( new Sort( new SortField[] {
              sf.getSortField( true )
          }));
        }

thanks mark!


On Wed, Jun 17, 2009 at 8:07 PM, Mark Miller<markrmiller@gmail.com> wrote:
>
>> ... grab the field type from Solr and set it rather than using AUTO, ...
>
> This constructor  public SortField (String field, int type, boolean reverse)
>
>

Mime
View raw message