Re: Unusual scoring

2011-01-24 Thread Dmytro Barabash
Thanks a lot, Umesh! 2011/1/24 Umesh Prasad : >  DisjunctionMaxQuery may be one you are looking for. > http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/DisjunctionMaxQuery.html >   *This is useful when searching for a word in multiple fields with > different boost factors (so that

Re: Unusual scoring

2011-01-24 Thread Umesh Prasad
DisjunctionMaxQuery may be one you are looking for. http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/DisjunctionMaxQuery.html *This is useful when searching for a word in multiple fields with different boost factors (so that the fields cannot be combined equivalently into a sing

Unusual scoring

2011-01-24 Thread Dmytro Barabash
Hi! My index contains a few (really 7) fields and I need to search by all of them. I use BooleanQuery and seven TermQueries added to this one. Problem: result must to be sorted by max(field.boost), not by Lucene’s default formula. I think, for this I need to implement MySimilarity (it will simply r