You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jörg Agatz <jo...@googlemail.com> on 2009/11/12 13:41:39 UTC

Re: Wildcards at the Beginning of a Search.

is in solr 1.4 maby a way to search with an wildcard at the beginning?

in 1.3 i cant activate it.

KingArtus

Re: Wildcards at the Beginning of a Search.

Posted by Jay Hill <ja...@gmail.com>.
There is a "text_rev" field type in the example schema.xml file in the
official release of 1.4. It uses the ReversedWildcardFilterFactory to revers
a field. You can do a copyField from the field you want to use for leading
wildcard searches to a field using the text_rev field, and then do a regular
trailing wildcard search on the reversed field.

-Jay
http://www.lucidimagination.com


On Thu, Nov 12, 2009 at 4:41 AM, Jörg Agatz <jo...@googlemail.com>wrote:

> is in solr 1.4 maby a way to search with an wildcard at the beginning?
>
> in 1.3 i cant activate it.
>
> KingArtus
>