: 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
> 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
: 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
> 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
: > 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
> 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
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_
> 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