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> > > > ------------------------------ > > >