Re: lucene wildcard query with stop character

2008-06-16 Thread Chris Hostetter
: Hrm.. can we see a more specific example of the type of data you are trying to : query against here? As i understand the question, this is a fairly classic hierarchical organization of documents. Documents Foo>Bar>Baz and Foo>Bar>Bax are both children of Document Foo>Bar ... Foo>Barber is th

Re: lucene wildcard query with stop character

2008-06-12 Thread Matthew Hall
Hrm.. can we see a more specific example of the type of data you are trying to query against here? Matt Cam Bazz wrote: 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

Re: lucene wildcard query with stop character

2008-06-12 Thread Cam Bazz
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 ...000A but i am hoping there is a better method. if we could tell lucene

Re: lucene wildcard query with stop character

2008-06-12 Thread Matthew Hall
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 documen

lucene wildcard query with stop character

2008-06-12 Thread Cam Bazz
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 > cha