Is the 100 words a hard boundary or a soft one? If it is a hard one (always 100 words), the easiest is probably copy field and in the (unstored) copy, trim off whatever you don't want to search. Possibly using regular expressions. Of course, "what's a word" is an important question here.
Similarly, you could do that with Update Request Processors and clone/process field even before it hits the schema. Then you could store the extract for highlighting purposes. Regards, Alex. On Tue, 15 Oct 2019 at 02:25, Kaminski, Adi <adi.kamin...@verint.com> wrote: > > 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.