Re: WildcardQuery and SpanQuery

2007-07-19 Thread Cedric Ho
Thanks so much for helping ~ I will try it out tomorrow. Regards, Cedric On 7/19/07, Paul Elschot <[EMAIL PROTECTED]> wrote: On Wednesday 18 July 2007 12:30, Cedric Ho wrote: > Thanks for the quick response Paul =) > > However I am lost while looking at the surround package. That is not reall

Re: WildcardQuery and SpanQuery

2007-07-18 Thread Paul Elschot
On Wednesday 18 July 2007 12:30, Cedric Ho wrote: > Thanks for the quick response Paul =) > > However I am lost while looking at the surround package. That is not really surprising, the code is factored to the bone, and it is hardly documented. You could have a look at the test code to start. Al

Re: WildcardQuery and SpanQuery

2007-07-18 Thread Mark Miller
You could give this a shot (From my Qsol query parser): package com.mhs.qsol.spans; /** * Copyright 2006 Mark Miller ([EMAIL PROTECTED]) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy

Re: WildcardQuery and SpanQuery

2007-07-18 Thread Cedric Ho
Thanks for the quick response Paul =) However I am lost while looking at the surround package. Are you suggesting I can solve my problem at hand using the surround package? On 7/18/07, Paul Elschot <[EMAIL PROTECTED]> wrote: On Wednesday 18 July 2007 05:58, Cedric Ho wrote: > Hi everybody, > >

Re: WildcardQuery and SpanQuery

2007-07-17 Thread Paul Elschot
On Wednesday 18 July 2007 05:58, Cedric Ho wrote: > Hi everybody, > > We recently need to support wildcard search terms "*", "?" together > with SpanQuery. It seems that there's no SpanWildcardQuery available. > After looking into the lucene source code for a while, I guess we can > either: > > 1

WildcardQuery and SpanQuery

2007-07-17 Thread Cedric Ho
Hi everybody, We recently need to support wildcard search terms "*", "?" together with SpanQuery. It seems that there's no SpanWildcardQuery available. After looking into the lucene source code for a while, I guess we can either: 1. Use SpanRegexQuery, or 2. Write our own SpanWildcardQuery, and