You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Charlie <ch...@gmail.com> on 2006/07/25 03:26:04 UTC

Re[4]: Span Query NLE

Thanks Erik,

"surround" query parser is surely interesting to me.

I really wish surround.txt could explain more in detail and add more
examples, especially in its test cases, it will be very instrumental
to add similar test cases like what
org.apache.lucene.queryParser.TestQueryParser offered and show
assertQueryEquals().

Anyways, so what's the proper interpretation of the following:

         3w(a?a or bb?, cc+)

can "surround" be nested

    3w(4n(a?a AND bb?) AND cc+)

And have you seen/written examples to actually use "surround" query
parser? (not the proprietary one you have mentioned.) I am currently
looking at the package, not much doc to read though.

-- 
Best regards,
 Charlie                            


---
Monday, July 24, 2006, 12:44:16 PM, you wrote:

> The "surround" query parser in Lucene's contrib area implements a  
> language to construct SpanQuery's.  Check out surround.txt in  
> Subversion:

>        
> <http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/surround/>

> I have written a query parser for a client that allows construction
> of very sophisticated queries including the full spectrum of  
> SpanQuery's, but the language is legacy and not something I'd wish  
> upon the general public, and the code is proprietary anyway.  It does
> take some time for someone unfamiliar with JavaCC, such as myself  
> initially, to implement a custom parser but it can be a huge success
> for a project to have this capability.

>         Erik






---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Span Query NLE

Posted by Paul Elschot <pa...@xs4all.nl>.
On Tuesday 25 July 2006 03:26, Charlie wrote:
...
> 
> can "surround" be nested
> 
>     3w(4n(a?a AND bb?) AND cc+)

Yes, but iirc the "arguments" need to be separated by comma's:
3w( 4n( ... , ...) , ...)
instead of by AND.

Regards,
Paul Elschot

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org