+1 24 jun 2008 kl. 22.28 skrev Yonik Seeley:
Something to consider for Lucene 3 is to have something to retrieve Similarity per-field rather than passing the field name into some functions... benefits: - Would allow customizing most Similarity functions per-field - Performance: Similarity for a field could be looked up once at the beginning of a query and reused, eliminating hash lookups for every Similarity function called that needs to be different depending on the field name. Might also consider passing in more optional context when retrieving the similarity for a field (such as a Query, if searching). Something like Similarity.getSimilarity(String field, Query q). Multi-field queries (boolean query) could pass null for the field. Perhaps it could even be back compatible... -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]