lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: per-field similarity
Date Wed, 25 Jun 2008 13:48:34 GMT
+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: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message