Re: Using stored fields for scoring

2008-05-09 Thread Erick Erickson
Well, all things are possible But I don't think there's a way to get the field from each document at scoring time efficiently. It looks like you're already lazy-loading the field, which was going to be my suggestion. You could get it much faster if you *did* index it (UN_TOKENIZED?) and went

Using stored fields for scoring

2008-05-09 Thread Paolo Capriotti
Hi all, I am looking for a way to include a stored (non-indexed) field in the computation of scores for a query. I have tried using a ValueSourceQuery with a ValueSource subclass that simply retrieves the document and gets the field, like: public float floatVal(int doc) { reader.document(doc