Thanks I didn't know about SpanFirstQuery. I can likely get something going with that. I was still hoping that we could affect the scoring formula with the position itself, but maybe this is not feasible.
Luis Luis A Lastras, Ph.D. Research Staff Member & Manager, Concept Analytics, IBM Watson Member of the iBM Academy of Technology IBM Master Inventor email: lastr...@us.ibm.com | Tel: 914-945-3613 | Cell: 914-382-1879 address: 1101 Kitchawan Rd, Office 28-132, Yorktown Heights, NY, 10598 From: Michael McCandless <luc...@mikemccandless.com> To: Lucene Users <java-user@lucene.apache.org> Date: 01/25/2015 08:12 AM Subject: Re: Absolute term position in scoring Maybe SpanFirstQuery? Mike McCandless http://blog.mikemccandless.com On Sat, Jan 24, 2015 at 9:34 PM, Luis A Lastras <lastr...@us.ibm.com> wrote: > Is it possible to incorporate in Lucene's scoring function the position of > a matching term (say as measured from the top of the document). The > scenario is, if the set of documents tend to lk about the most important > stuff at the beginning of the document, then we would like to give > preference to documents that mention a term close to the top. > > Thanks, > > Luis > > > > ------------------------------ > > > > *Luis A Lastras, Ph.D. Research Staff Member & Manager, Concept Analytics, > IBM Watson* > *Member of the iBM Academy of Technology* > > *IBM Master Inventor email: **lastr...@us.ibm.com* <em...@region.ibm.com> > * | Tel: 914-945-3613 <914-945-3613> | Cell: 914-382-1879 <914-382-1879> > address: 1101 Kitchawan Rd, Office 28-132, Yorktown Heights, NY, 10598* > > > > > <http://www.facebook.com/ibmwatson> > > > ------------------------------ > > >