Hello Adi, Try SpanFirstQuery. It limits the search to within the Nth term in the field.
Regards, Markus -----Original message----- > From:Kaminski, Adi <adi.kamin...@verint.com> > Sent: Tuesday 15th October 2019 8:25 > To: solr-user@lucene.apache.org > Subject: Position search > > Hi, > What's the recommended way to search in Solr (assuming 8.2 is used) for > specific terms/phrases/expressions while limiting the search from position > perspective. > For example to search only in the first/last 100 words of the document ? > > Is there any built-in functionality for that ? > > Thanks in advance, > Adi > > > This electronic message may contain proprietary and confidential information > of Verint Systems Inc., its affiliates and/or subsidiaries. The information > is intended to be for the use of the individual(s) or entity(ies) named > above. If you are not the intended recipient (or authorized to receive this > e-mail for the intended recipient), you may not use, copy, disclose or > distribute to anyone this message or any information contained in this > message. If you have received this electronic message in error, please notify > us by replying to this e-mail. >