Field boosting in DataImportHandler transformer

2010-11-01 Thread Brad Kellett
It's not looking very promising, but is there something I'm missing to be able 
to apply a field boost from within a transformer in the DataImportHandler? Not 
a boost defined within the schema, but a boost applied to the field from the 
transformer itself.

I know you can do a document boost, but I can't see anything for a field boost.

~bck



Custom scoring

2010-08-30 Thread Brad Kellett
Hi all,

I'm looking for examples or pointers to some info on implementing custom 
scoring in solr/lucene. Basically, what we're looking at doing is to augment 
the score from a dismax query with some custom signals based on data in fields 
from the row initially matched. There will be several of these features 
dynamically scored at query-time (due to the nature of the data, pre-computed 
stuff isn't really what we're looking for).

I do apologize for the vagueness of this, but a lot of this data is stuff we 
want to keep under wraps. Essentially, I'm just looking for a place to use some 
custom java code to be able to manipulate the score for a row matched in a 
dismax query.

I've been Googling like a mad man, but haven't really hit on something that 
seems ideal yet. Custom similarity appears to just allow changing the 
components of the TF-IDF score, for example. Can someone point me to an example 
of doing something like this?

~Brad