Re: Boosting on field-not-empty

2014-10-30 Thread Erick Erickson
bq: ...while the fields are not part of the search query I'm really confused. The presence or absence of fields that aren't part of the search should be totally irrelevant to scoring. Are you perhaps sorting by a different field? It'd help if you showed us the query you're sending, a sample of th

Re: Boosting on field-not-empty

2014-10-30 Thread Håvard Wahl Kongsgård
Thanks :) On Thu, Oct 30, 2014 at 7:49 PM, Ramzi Alqrainy wrote: > You can use FunctionQuery that allows one to use the actual value of a > field > and functions of those fields in a relevancy score. > > Two function will help you, which are : > > *exists* > > exists(field|function) returns true

Re: Boosting on field-not-empty

2014-10-30 Thread Ramzi Alqrainy
You can use FunctionQuery that allows one to use the actual value of a field and functions of those fields in a relevancy score. Two function will help you, which are : *exists* exists(field|function) returns true if a value exists for a given document. Example use: exists(myField) will return