Hi Markus, Thanks for the guidance. Is there any official Solr documentation for that ? Tried some googling, only some Stackoverflow / Lucene posts are available.
Also, will that approach work for the other use case of searching from end of documents ? For example if I need to perform some term search from the end, e.g. "book" in the last 30 or 100 words. Is there SpanLastQuery ? Thanks, Adi -----Original Message----- From: Markus Jelsma <markus.jel...@openindex.io> Sent: Tuesday, October 15, 2019 11:04 AM To: solr-user@lucene.apache.org Subject: RE: Position search 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. > 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.