On 8/8/07, Matthew Runo <[EMAIL PROTECTED]> wrote: > I've been using the standard query handler to do searches like > > q=department_exact:"Foo>Bar>Baz>Qux" > > Now, lets assume I have lots of records, with various department > trees... > 1. Foo>Bar>Baz>Qux > 2. Foo>Bar>Baz>Put > 3. Foo>Bar>Something With Spaces>Elese > 4. Foo>Totaly>Different>Tree > > I'd like to get all the products at various levels, and all the > levels below. > > I have a tokenzied department field, and a copyField department_exact. > > I've been doing searches on the department_exact feild, thinking I > could do this.. > > q=department_exact:"Foo>Bar*"
A "*" inside quotes is literal. Try q=department_exact:Foo>Bar* Or if ">" is a reserved character, escape it with "\" q=department_exact:Foo\>Bar* If "Bar" is unique (only under Foo), you could use a copyfield to copy it to a regex tokenizer to split on ">" and then do a simple search on "Bar" -Yonik