Re: Position search

2019-10-16 Thread Tim Casey
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

Re: Position search

2019-10-16 Thread Alexandre Rafalovitch
Regards, > Adi > > -Original Message- > From: Alexandre Rafalovitch > Sent: Wednesday, October 16, 2019 12:48 PM > To: solr-user > Subject: Re: Position search > > So are these really text locations or rather actually sections of the > document. If later, can you p

Re: Position search

2019-10-16 Thread Erick Erickson
identify scripts/specific word ocuurences. >> >> So I guess copy field won't work here. >> >> Any other suggestions/thoughts ? >> Maybe some hidden position filters in native level to limit from start/end >> of the document ? >> >> Thanks, >> Adi >

RE: Position search

2019-10-16 Thread Kaminski, Adi
nt (greeting part for example), and not in the middle/end part of the document. Regards, Adi -Original Message- From: Alexandre Rafalovitch Sent: Wednesday, October 16, 2019 12:48 PM To: solr-user Subject: Re: Position search So are these really text locations or rather actually sections of th

Re: Position search

2019-10-16 Thread Alexandre Rafalovitch
al Message- > From: Tim Casey > Sent: Tuesday, October 15, 2019 11:05 PM > To: solr-user@lucene.apache.org > Subject: Re: Position search > > If this is about a normalized query, I would put the normalization text > into a specific field. The reason for this is

RE: Position search

2019-10-16 Thread Kaminski, Adi
Original Message- From: Tim Casey Sent: Tuesday, October 15, 2019 11:05 PM To: solr-user@lucene.apache.org Subject: Re: Position search If this is about a normalized query, I would put the normalization text into a specific field. The reason for this is you may want to search the overall t

Re: Position search

2019-10-15 Thread Tim Casey
If this is about a normalized query, I would put the normalization text into a specific field. The reason for this is you may want to search the overall text during any form of expansion phase of searching for data. That is, maybe you want to know the context of up to the 120th word. At least

Re: Position search

2019-10-15 Thread Alexandre Rafalovitch
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.

RE: Position search

2019-10-15 Thread Markus Jelsma
019 10:57 > To: solr-user@lucene.apache.org > Subject: RE: Position search > > 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

RE: Position search

2019-10-15 Thread Kaminski, Adi
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 Sent: Tuesday, October 15, 2019 11:04 AM To: solr-user@lucene.apache.org Subject: RE: Position search Hello Adi, Try SpanFirstQuery.

RE: Position search

2019-10-15 Thread Markus Jelsma
Hello Adi, Try SpanFirstQuery. It limits the search to within the Nth term in the field. Regards, Markus -Original message- > From:Kaminski, Adi > Sent: Tuesday 15th October 2019 8:25 > To: solr-user@lucene.apache.org > Subject: Position search > > Hi, > What'

Position search

2019-10-15 Thread Kaminski, Adi
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