Hello I'm exactly in the same situation as you. I've got some structured 
subject ( as subjects:main subject/sub subject/sub sub subject ) and want to 
search them as litteral from a given level (subjects:main subject/*). As you 
know subjects:"main subject/"* doesn't work (but it should, shouldn't it ?), so 
what i've done is to replace the space caracter by the wildcard '?'  in my 
query, as this : subjects:main?subject/*. It works, even if it isn't very 
elegant.Is it a great loss, performance-wise ? Could somebody tell ?Sure, a 
better solution would be appreciated.Kind regards,Pierre-Yves Landron> From: 
[EMAIL PROTECTED]> Subject: Re: Best use of wildcard searches> Date: Wed, 8 Aug 
2007 14:59:36 -0700> To: solr-user@lucene.apache.org> > OK.> > So a followup 
question..> > ?q=department_exact:Apparel%3EMen's% > 
20Apparel*&fq=country_code:US&fq=brand_exact:adidas&fq=hibernated:true> > 
returns 0 results. Note the %20 in there for the space character.> > 
?q=department_exact:Apparel% > 
3EMen's*&fq=country_code:US&fq=brand_exact:adidas&fq=hibernated:true> returns 
several, and the only change is that I've truncated "Men's  > Apparel*" to be 
"Men's*".> > (example department_exacts from this result set below..)> > 
Apparel>Men's Apparel>Sweatshirts>Hooded> Apparel>Men's Apparel>Shirts>Tank 
Top>Workout> Apparel>Men's Apparel>Sweatshirts> Apparel>Men's 
Apparel>Sweatshirts> Apparel>Men's Apparel>Jackets>Windbreaker> > ----> > Any 
ideas why "Apparel>Men's*" would work, but "Apparel>Men's  > Apparel*" would 
not?> > +--------------------------------------------------------+>   | Matthew 
Runo>   | Zappos Development>   | [EMAIL PROTECTED]>   | 702-943-7833> 
+--------------------------------------------------------+> > > On Aug 8, 2007, 
at 2:42 PM, Yonik Seeley wrote:> > > 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> 
>> 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Reply via email to