perhaps useful, here is an open source implementation with near[digit] support, incl analysis of proximity tokens. When days become longer maybe itwill be packaged into a nice lib...:-)
https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/grammars/ADS.g On 25 Mar 2014 00:14, "Salman Akram" <salman.ak...@northbaysolutions.net> wrote: > Basically we just created this syntax for the ease of users, otherwise on > back end it uses W or N operators. > > > On Tue, Mar 25, 2014 at 4:21 AM, Ahmet Arslan <iori...@yahoo.com> wrote: > > > Hi, > > > > There is no w/<int> syntax in surround. > > /* Query language operators: OR, AND, NOT, W, N, (, ), ^, *, ?, " and > > comma */ > > > > Ahmet > > > > > > > > On Monday, March 24, 2014 9:46 PM, T. Kuro Kurosaka <k...@healthline.com > > > > wrote: > > On 3/19/14 5:13 PM, Otis Gospodnetic wrote:> Hi, > > > > > > Guessing it's surround query parser's support for "within" backed by > span > > > queries. > > > > > > Otis > > > > You mean this? > > http://wiki.apache.org/solr/SurroundQueryParser > > > > I guess this parser needs improvement in documentation area. > > It doesn't explain or have an example of the w/<int> syntax at all. > > (Is this the infix notation of W?) > > An example would help explaining difference between W and N; > > some readers may not understand what "ordered" and "unordered" > > in this context mean. > > > > > > Kuro > > > > > > -- > Regards, > > Salman Akram >