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

-- 
View this message in context: 
http://www.nabble.com/Custom-sort-tp23722921p24432604.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to