well the ? would work if the length of each token be same. however, instead of A>B>C I want tags that change dynamically from 1 to unlimited length.
I just I could just pad every token to a normalized length such as 00000000...000A but i am hoping there is a better method. if we could tell lucene to do it like in a regular expression until a > is there to insert ??'s ... Another way could be to do the regularexpression outside lucene, but then still there is need for fetching the hits. Best. -C.B. On Thu, Jun 12, 2008 at 8:47 PM, Matthew Hall <[EMAIL PROTECTED]> wrote: > I assume you want all of your queries to function in this way? > > If so, you could just translate the * character into a ? at search time, > which should give you the functionality you are asking for. > > Unless I'm missing something. > > Matt > > > Cam Bazz wrote: > >> Hello, >> >> Imagine I have the following documents having keys >> >> A >> A>B >> A>B>C >> A>B>D >> A>B>C>D >> >> now Imagine a query with keyword analyzer and a wildcard: A>B>* >> >> which will bring me A>B>C , A>B>D and A>B>C>D >> >> but I just want to get A>B>C and A>B>D >> >> so can I make a query like A>B>* but does not have the > character after >> A>B> >> >> Best Regards, >> -C.B. >> >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >