Re: Leading Wildcard query strangeness

2010-07-02 Thread Chris Hostetter
: In the default schema.xml, only text_rev fieldType has : ReversedWildcardFilterFactory. The query below (manu_exact:*in) returns : two documents (whose manu_exact is Belkin). : : Am i missing something? : : http://localhost:8983/solr/select/?q=manu_exact%3A*in&version=2.2&start=0&rows=10&in

Re: Leading Wildcard query strangeness

2010-07-02 Thread Ahmet Arslan
> that's how SolrQueryParser works at the moment, yes. In the default schema.xml, only text_rev fieldType has ReversedWildcardFilterFactory. The query below (manu_exact:*in) returns two documents (whose manu_exact is Belkin). Am i missing something? http://localhost:8983/solr/select/?q=manu_e

Re: Leading Wildcard query strangeness

2010-07-02 Thread Chris Hostetter
: Does this mean leading * operator can only be used with fields whose : fieldType definition has ReversedWildcardFilterFactory at index time? that's how SolrQueryParser works at the moment, yes. -Hoss

Re: Leading Wildcard query strangeness

2010-07-02 Thread Ahmet Arslan
> that's not correct  what SolrQueryParser does is > check which field > types use ReversedWildcardFilterFactory at indexing time, > and then when > parsing queries, it allows fields that use field types to > be parsed with a leading wildcard. Does this mean leading * operator can only be u

Re: Leading Wildcard query strangeness

2010-07-02 Thread Chris Hostetter
: > I'm going to guess that is what you meant, that the very : > presence of the : > filter in the schema, whether it is used or not, allows you : > to do wildcard : > searches. : : Exactly. that's not correct what SolrQueryParser does is check which field types use ReversedWildcardFilterFa

Re: Leading Wildcard query strangeness

2010-06-30 Thread Ahmet Arslan
> I'm going to guess that is what you meant, that the very > presence of the > filter in the schema, whether it is used or not, allows you > to do wildcard > searches. Exactly. > Is that documented anywhere and I just missed it?  I'm > sure it is. I knew it from source code of SolrQueryParser. p

Re: Leading Wildcard query strangeness

2010-06-30 Thread dbashford
An update in case someone stumbles upon this... At first I thought you mean the fields I intend to do leading wildcard searches on needed to have ReversedWildcardFilterFactory on them. But that didn't make sense because our prod app isn't using that at all. But our prod app does have the "text_

Re: Leading Wildcard query strangeness

2010-06-29 Thread Ahmet Arslan
> We've got an app in production that executes leading > wildcard queries just > fine. > > >   0 >   1298 >   >     title:*news >   > > > > The same app in dev/qa has undergone a major > schema/solrconfig overhaul, > including introducing multiple cores, and leading wildcard > queries no lon