Adi, If you are looking for something specific you might want to try something different. Before you would search 'the end of a document', you might think about segmenting the document and searching specific segments. At the end of a lot of things like email will be signatures. Those are fairly standard language, although mostly the same in meaning, do differ in specific language. They are a common segment.
If you are searching something like research papers, then you would be thinking about the conclusion (?), bibliography (?). It does not matter, but there will be specific segments. I think you will find the last N tokens of a document have some odd categories within the search results. I might guess you have a different purpose in mind. Either way, you would likely do better to segment what you are searching. tim On Mon, Oct 14, 2019 at 11:25 PM 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. >