lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: defining qf in your own request handler
Date Tue, 25 Aug 2009 07:26:26 GMT
On Tue, Aug 25, 2009 at 5:26 AM, darniz <rnizamuddin@edmunds.com> wrote:

>
> Continuing on this i am having a use case where i have to strip out single
> quote for certain fields for example for testing i added teh following
> fieldType in schema.xml file
>
>    <fieldType name="removeComma" class="solr.TextField">
>        <analyzer>
>            <tokenizer class="solr.LetterTokenizerFactory" />
>        </analyzer>
>    </fieldType>
> and then i  declared a field like this.
>   <field name="nocomma" type="removeComma" indexed="true" stored="true"
> required="false"/>
>
> So  i am assuming if i index a document with a field like
>
> <field name="nocomma">this can't be the case</field>
> i am expecting this should be index as "this can t be the case"
>
> But that doesn't seem to happen
>

So what seems to happen?

You may also want to look at PatternReplaceFilter.

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message