Re: Creating Span Queries from Boolean Queries

2012-08-22 Thread mark harwood
.g. ( ) * ~ The syntax and its interpretation is outlined here: http://goo.gl/6gni1 (I saw someone else was asking for this recently) - Original Message - From: Dave Seltzer To: java-user@lucene.apache.org Cc: Sent: Wednesday, 22 August 2012, 1:37 Subject: Re: Creating Span Queries fr

Re: Creating Span Queries from Boolean Queries

2012-08-21 Thread Dave Seltzer
So I've taken my first shot at solving my problem using the three functions below. When I set the slop to 10 it produces the following result: This BooleanQuery +content:"london olympics" +(+content:football +content:or +content:soccer) -content:nfl becomes this SpanQuery: spanNot(spanNear([spanN

Re: Creating Span Queries from Boolean Queries

2012-08-21 Thread Dave Seltzer
ansky > > -Original Message- From: Dave Seltzer > Sent: Tuesday, August 21, 2012 6:53 PM > To: java-user@lucene.apache.org > Subject: Creating Span Queries from Boolean Queries > > Hi Everyone, > > If there was a straightforward way to take a Boolean Query created by

Re: Creating Span Queries from Boolean Queries

2012-08-21 Thread Jack Krupansky
distance. That gives you a basic BooleanQuery with AND clauses converted to spans. -- Jack Krupansky -Original Message- From: Dave Seltzer Sent: Tuesday, August 21, 2012 6:53 PM To: java-user@lucene.apache.org Subject: Creating Span Queries from Boolean Queries Hi Everyone, If there was a

Creating Span Queries from Boolean Queries

2012-08-21 Thread Dave Seltzer
Hi Everyone, If there was a straightforward way to take a Boolean Query created by the Lucene Query Parser and convert it to a Span Query. Ideally I'd like to take any ANDed clauses and require them to occur withing $SPAN of the other ANDs. I can't quite wrap my head around how to solve the prob