Re: custom scoring phrase queries

2010-06-18 Thread Marco Martinez
Hi Otis, Finally i construct my own function query that gives more score if the value is at the start of the field. But, its possible to tell solr to use spanFirstQuery without coding. I think i have read that its no possible. Thanks, Marco Martínez Bautista http://www.paradigmatecnologico.com

Re: custom scoring phrase queries

2010-06-18 Thread Otis Gospodnetic
Marco, I don't think there is anything in Solr to do that (is there?), but you could do it with some coding if you combined the "regular query" with SpanFirstQuery with bigger boost: http://search-lucene.com/jd/lucene/org/apache/lucene/search/spans/SpanFirstQuery.html Oh, here are some exampl