lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: How to custom solr sort?
Date Sat, 12 Apr 2008 00:34:14 GMT

: I have inherited a new class from the org.apache.solr.schema.StrField and
: customed a new sort algorithm by implementing the SortComparatorSource
: interface.Then to export the jar file to the solr lib directory, and
: configure the schema.xml file.But when I test the new feature, It does't
: work at all.Can you give some suggestions?Thanks.

1) you have to be more specific about "does't work at all" ... does it 
cause an error? do the documents come back in some other order? etc...

2) can you show us the code for the "getSortField" method of your StrField 
subclass?




-Hoss


Mime
View raw message