It could be that you should be providing an implementation of
"SortComparatorSource"
I have missed the earlier part of this thread, I assume you're trying to
implement some form of custom search?
B
dontthinktwice wrote:
Marc Sturlese wrote:
I have been able to create my custom field. The problem is that I have
laoded in the solr core a couple of HashMaps<id_doc,value_influence_sort>
from a DB with values that will influence in the sort. My problem is that
I don't know how to let my custom sort have access to this HashMaps.
I am a bit confused now. I think that would be easy to reach my goal
using:
CustomSortComponent extends SearchComponent implements SolrCoreAware
This way, I would load the HashMaps in the "inform" method and would
create de custom sort using the HashMaps in the "preprare" method.
Don't know how to do that with the CustomField (similar to the
RandomField)... any advice?
Marc, did you get this working somehow? I'm looking at doing something
similar, and before I make a custom sort field (like RandomSortField) I
would be delighted to know that I can give it access to a the data structure
it will need to calculate the sort...