You can store both the non-reverted and reverted terms in one field, so
that you can do leading wildcard and other searches against one field. So
your schema may look something like this:

    <fieldType name="text" class="solr.TextField"
positionIncrementGap="100" omitNorms="true">
  <analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.ReversedWildcardFilterFactory" withOriginal="true"
maxPosAsterisk="3" maxPosQuestion="2" maxFractionAsterisk="0.33"/>
      </analyzer>
      <analyzer type="query">
  <tokenizer class="solr.StandardTokenizerFactory"/>
  <filter class="solr.StandardFilterFactory"/>
  <filter class="solr.LowerCaseFilterFactory"/>
    </analyzer>
    </fieldType>


On Wed, Jan 18, 2012 at 4:19 PM, Jamie Johnson <jej2...@gmail.com> wrote:

> I'm trying to determine when it is appropriate to use the
> solr.ReversedWildcardFilterFactory, specifically if I have a field
> content of type text (from default schema) which I want to be able to
> search with leading wildcards do I need to index this information into
> both a text field and a text_rev field, or is it sufficient to just
> index the information into a text_rev field?  I *think* that it only
> needs to be in text_rev, but I want to make sure before I go mucking
> with my schema.
>



-- 
Regards,

Dmitry Kan

Reply via email to